summaryrefslogtreecommitdiffstats
path: root/chromium/net/http/http_request_info.cc
blob: 0f36d557ef87661805c34220d413a6ee3b0612f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/http/http_request_info.h"
#include "net/base/network_anonymization_key.h"
#include "net/base/network_isolation_key.h"
#include "net/dns/public/secure_dns_policy.h"

namespace net {

HttpRequestInfo::HttpRequestInfo() = default;

HttpRequestInfo::HttpRequestInfo(const HttpRequestInfo& other) = default;

HttpRequestInfo::~HttpRequestInfo() = default;

bool HttpRequestInfo::IsConsistent() const {
  return network_anonymization_key ==
         NetworkAnonymizationKey::CreateFromNetworkIsolationKey(
             network_isolation_key);
}

}  // namespace net