• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2024 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_stream_pool_request_info.h"
6 
7 #include "net/base/network_anonymization_key.h"
8 #include "net/base/privacy_mode.h"
9 #include "net/dns/public/secure_dns_policy.h"
10 #include "net/http/alternative_service.h"
11 #include "net/proxy_resolution/proxy_info.h"
12 #include "net/socket/socket_tag.h"
13 #include "url/scheme_host_port.h"
14 
15 namespace net {
16 
HttpStreamPoolRequestInfo(url::SchemeHostPort destination,PrivacyMode privacy_mode,SocketTag socket_tag,NetworkAnonymizationKey network_anonymization_key,SecureDnsPolicy secure_dns_policy,bool disable_cert_network_fetches,AlternativeServiceInfo alternative_service_info,bool is_http1_allowed,int load_flags,ProxyInfo proxy_info)17 HttpStreamPoolRequestInfo::HttpStreamPoolRequestInfo(
18     url::SchemeHostPort destination,
19     PrivacyMode privacy_mode,
20     SocketTag socket_tag,
21     NetworkAnonymizationKey network_anonymization_key,
22     SecureDnsPolicy secure_dns_policy,
23     bool disable_cert_network_fetches,
24     AlternativeServiceInfo alternative_service_info,
25     bool is_http1_allowed,
26     int load_flags,
27     ProxyInfo proxy_info)
28     : destination(std::move(destination)),
29       privacy_mode(privacy_mode),
30       socket_tag(std::move(socket_tag)),
31       network_anonymization_key(NetworkAnonymizationKey::IsPartitioningEnabled()
32                                     ? std::move(network_anonymization_key)
33                                     : NetworkAnonymizationKey()),
34       secure_dns_policy(secure_dns_policy),
35       disable_cert_network_fetches(disable_cert_network_fetches),
36       alternative_service_info(std::move(alternative_service_info)),
37       is_http1_allowed(is_http1_allowed),
38       load_flags(load_flags),
39       proxy_info(std::move(proxy_info)) {}
40 
41 HttpStreamPoolRequestInfo::HttpStreamPoolRequestInfo(
42     HttpStreamPoolRequestInfo&&) = default;
43 
44 HttpStreamPoolRequestInfo& HttpStreamPoolRequestInfo::operator=(
45     HttpStreamPoolRequestInfo&&) = default;
46 
47 HttpStreamPoolRequestInfo::~HttpStreamPoolRequestInfo() = default;
48 
49 }  // namespace net
50