• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2010 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "net/http/http_request_info.h"
6 #include "net/base/network_anonymization_key.h"
7 #include "net/base/network_isolation_key.h"
8 #include "net/dns/public/secure_dns_policy.h"
9 
10 namespace net {
11 
12 HttpRequestInfo::HttpRequestInfo() = default;
13 
14 HttpRequestInfo::HttpRequestInfo(const HttpRequestInfo& other) = default;
15 HttpRequestInfo& HttpRequestInfo::operator=(const HttpRequestInfo& other) =
16     default;
17 HttpRequestInfo::HttpRequestInfo(HttpRequestInfo&& other) = default;
18 HttpRequestInfo& HttpRequestInfo::operator=(HttpRequestInfo&& other) = default;
19 
20 HttpRequestInfo::~HttpRequestInfo() = default;
21 
IsConsistent() const22 bool HttpRequestInfo::IsConsistent() const {
23   return network_anonymization_key ==
24          NetworkAnonymizationKey::CreateFromNetworkIsolationKey(
25              network_isolation_key);
26 }
27 
28 }  // namespace net
29