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 16 HttpRequestInfo::~HttpRequestInfo() = default; 17 IsConsistent() const18bool HttpRequestInfo::IsConsistent() const { 19 return network_anonymization_key == 20 NetworkAnonymizationKey::CreateFromNetworkIsolationKey( 21 network_isolation_key); 22 } 23 24 } // namespace net 25