| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This class is useful for building a simple URLRequestContext. Most creators | 5 // This class is useful for building a simple URLRequestContext. Most creators |
| 6 // of new URLRequestContexts should use this helper class to construct it. Call | 6 // of new URLRequestContexts should use this helper class to construct it. Call |
| 7 // any configuration params, and when done, invoke Build() to construct the | 7 // any configuration params, and when done, invoke Build() to construct the |
| 8 // URLRequestContext. This URLRequestContext will own all its own storage. | 8 // URLRequestContext. This URLRequestContext will own all its own storage. |
| 9 // | 9 // |
| 10 // URLRequestContextBuilder and its associated params classes are initially | 10 // URLRequestContextBuilder and its associated params classes are initially |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 HttpNetworkSessionParams(); | 84 HttpNetworkSessionParams(); |
| 85 ~HttpNetworkSessionParams(); | 85 ~HttpNetworkSessionParams(); |
| 86 | 86 |
| 87 // These fields mirror those in HttpNetworkSession::Params; | 87 // These fields mirror those in HttpNetworkSession::Params; |
| 88 bool ignore_certificate_errors; | 88 bool ignore_certificate_errors; |
| 89 HostMappingRules* host_mapping_rules; | 89 HostMappingRules* host_mapping_rules; |
| 90 uint16_t testing_fixed_http_port; | 90 uint16_t testing_fixed_http_port; |
| 91 uint16_t testing_fixed_https_port; | 91 uint16_t testing_fixed_https_port; |
| 92 bool enable_spdy31; | 92 bool enable_spdy31; |
| 93 bool enable_http2; | 93 bool enable_http2; |
| 94 bool enable_alternative_service_with_different_host; | |
| 95 bool enable_quic; | 94 bool enable_quic; |
| 96 std::string quic_user_agent_id; | 95 std::string quic_user_agent_id; |
| 97 int quic_max_server_configs_stored_in_properties; | 96 int quic_max_server_configs_stored_in_properties; |
| 98 bool quic_delay_tcp_race; | 97 bool quic_delay_tcp_race; |
| 99 int quic_max_number_of_lossy_connections; | 98 int quic_max_number_of_lossy_connections; |
| 100 std::unordered_set<std::string> quic_host_whitelist; | 99 std::unordered_set<std::string> quic_host_whitelist; |
| 101 bool quic_prefer_aes; | 100 bool quic_prefer_aes; |
| 102 float quic_packet_loss_threshold; | 101 float quic_packet_loss_threshold; |
| 103 int quic_idle_connection_timeout_seconds; | 102 int quic_idle_connection_timeout_seconds; |
| 104 QuicTagVector quic_connection_options; | 103 QuicTagVector quic_connection_options; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 std::unique_ptr<HttpServerProperties> http_server_properties_; | 368 std::unique_ptr<HttpServerProperties> http_server_properties_; |
| 370 std::map<std::string, std::unique_ptr<URLRequestJobFactory::ProtocolHandler>> | 369 std::map<std::string, std::unique_ptr<URLRequestJobFactory::ProtocolHandler>> |
| 371 protocol_handlers_; | 370 protocol_handlers_; |
| 372 | 371 |
| 373 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); | 372 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| 374 }; | 373 }; |
| 375 | 374 |
| 376 } // namespace net | 375 } // namespace net |
| 377 | 376 |
| 378 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ | 377 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ |
| OLD | NEW |