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 #include "net/url_request/url_request_context_builder.h" | 5 #include "net/url_request/url_request_context_builder.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 : ignore_certificate_errors(false), | 179 : ignore_certificate_errors(false), |
180 host_mapping_rules(NULL), | 180 host_mapping_rules(NULL), |
181 testing_fixed_http_port(0), | 181 testing_fixed_http_port(0), |
182 testing_fixed_https_port(0), | 182 testing_fixed_https_port(0), |
183 enable_spdy31(false), | 183 enable_spdy31(false), |
184 enable_http2(true), | 184 enable_http2(true), |
185 parse_alternative_services(false), | 185 parse_alternative_services(false), |
186 enable_alternative_service_with_different_host(false), | 186 enable_alternative_service_with_different_host(false), |
187 enable_quic(false), | 187 enable_quic(false), |
188 quic_max_server_configs_stored_in_properties(0), | 188 quic_max_server_configs_stored_in_properties(0), |
189 quic_delay_tcp_race(false), | |
190 quic_max_number_of_lossy_connections(0), | 189 quic_max_number_of_lossy_connections(0), |
191 quic_prefer_aes(false), | 190 quic_prefer_aes(false), |
192 quic_packet_loss_threshold(1.0f), | 191 quic_packet_loss_threshold(1.0f), |
193 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 192 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
194 quic_close_sessions_on_ip_change(false), | 193 quic_close_sessions_on_ip_change(false), |
195 quic_migrate_sessions_on_network_change(false), | 194 quic_migrate_sessions_on_network_change(false), |
196 quic_migrate_sessions_early(false), | 195 quic_migrate_sessions_early(false), |
197 quic_disable_bidirectional_streams(false) {} | 196 quic_disable_bidirectional_streams(false) {} |
198 | 197 |
199 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() | 198 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 network_session_params.enable_http2 = | 412 network_session_params.enable_http2 = |
414 http_network_session_params_.enable_http2; | 413 http_network_session_params_.enable_http2; |
415 network_session_params.parse_alternative_services = | 414 network_session_params.parse_alternative_services = |
416 http_network_session_params_.parse_alternative_services; | 415 http_network_session_params_.parse_alternative_services; |
417 network_session_params.enable_alternative_service_with_different_host = | 416 network_session_params.enable_alternative_service_with_different_host = |
418 http_network_session_params_ | 417 http_network_session_params_ |
419 .enable_alternative_service_with_different_host; | 418 .enable_alternative_service_with_different_host; |
420 network_session_params.enable_quic = http_network_session_params_.enable_quic; | 419 network_session_params.enable_quic = http_network_session_params_.enable_quic; |
421 network_session_params.quic_max_server_configs_stored_in_properties = | 420 network_session_params.quic_max_server_configs_stored_in_properties = |
422 http_network_session_params_.quic_max_server_configs_stored_in_properties; | 421 http_network_session_params_.quic_max_server_configs_stored_in_properties; |
423 network_session_params.quic_delay_tcp_race = | |
424 http_network_session_params_.quic_delay_tcp_race; | |
425 network_session_params.quic_max_number_of_lossy_connections = | 422 network_session_params.quic_max_number_of_lossy_connections = |
426 http_network_session_params_.quic_max_number_of_lossy_connections; | 423 http_network_session_params_.quic_max_number_of_lossy_connections; |
427 network_session_params.quic_packet_loss_threshold = | 424 network_session_params.quic_packet_loss_threshold = |
428 http_network_session_params_.quic_packet_loss_threshold; | 425 http_network_session_params_.quic_packet_loss_threshold; |
429 network_session_params.quic_idle_connection_timeout_seconds = | 426 network_session_params.quic_idle_connection_timeout_seconds = |
430 http_network_session_params_.quic_idle_connection_timeout_seconds; | 427 http_network_session_params_.quic_idle_connection_timeout_seconds; |
431 network_session_params.quic_connection_options = | 428 network_session_params.quic_connection_options = |
432 http_network_session_params_.quic_connection_options; | 429 http_network_session_params_.quic_connection_options; |
433 network_session_params.quic_host_whitelist = | 430 network_session_params.quic_host_whitelist = |
434 http_network_session_params_.quic_host_whitelist; | 431 http_network_session_params_.quic_host_whitelist; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 } | 515 } |
519 url_request_interceptors_.clear(); | 516 url_request_interceptors_.clear(); |
520 } | 517 } |
521 storage->set_job_factory(std::move(top_job_factory)); | 518 storage->set_job_factory(std::move(top_job_factory)); |
522 // TODO(willchan): Support sdch. | 519 // TODO(willchan): Support sdch. |
523 | 520 |
524 return std::move(context); | 521 return std::move(context); |
525 } | 522 } |
526 | 523 |
527 } // namespace net | 524 } // namespace net |
OLD | NEW |