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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} | 175 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} |
176 | 176 |
177 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() | 177 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() |
178 : ignore_certificate_errors(false), | 178 : ignore_certificate_errors(false), |
179 host_mapping_rules(NULL), | 179 host_mapping_rules(NULL), |
180 testing_fixed_http_port(0), | 180 testing_fixed_http_port(0), |
181 testing_fixed_https_port(0), | 181 testing_fixed_https_port(0), |
182 next_protos(NextProtosDefaults()), | 182 next_protos(NextProtosDefaults()), |
183 use_alternative_services(true), | 183 use_alternative_services(true), |
184 enable_quic(false), | 184 enable_quic(false), |
185 quic_store_server_configs_in_properties(false), | 185 quic_max_server_configs_stored_in_properties(0), |
186 quic_delay_tcp_race(false), | 186 quic_delay_tcp_race(false), |
187 quic_max_number_of_lossy_connections(0), | 187 quic_max_number_of_lossy_connections(0), |
188 quic_packet_loss_threshold(1.0f), | 188 quic_packet_loss_threshold(1.0f), |
189 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds) {} | 189 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds) {} |
190 | 190 |
191 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() | 191 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() |
192 {} | 192 {} |
193 | 193 |
194 URLRequestContextBuilder::URLRequestContextBuilder() | 194 URLRequestContextBuilder::URLRequestContextBuilder() |
195 : data_enabled_(false), | 195 : data_enabled_(false), |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 network_session_params.testing_fixed_http_port = | 384 network_session_params.testing_fixed_http_port = |
385 http_network_session_params_.testing_fixed_http_port; | 385 http_network_session_params_.testing_fixed_http_port; |
386 network_session_params.testing_fixed_https_port = | 386 network_session_params.testing_fixed_https_port = |
387 http_network_session_params_.testing_fixed_https_port; | 387 http_network_session_params_.testing_fixed_https_port; |
388 network_session_params.use_alternative_services = | 388 network_session_params.use_alternative_services = |
389 http_network_session_params_.use_alternative_services; | 389 http_network_session_params_.use_alternative_services; |
390 network_session_params.trusted_spdy_proxy = | 390 network_session_params.trusted_spdy_proxy = |
391 http_network_session_params_.trusted_spdy_proxy; | 391 http_network_session_params_.trusted_spdy_proxy; |
392 network_session_params.next_protos = http_network_session_params_.next_protos; | 392 network_session_params.next_protos = http_network_session_params_.next_protos; |
393 network_session_params.enable_quic = http_network_session_params_.enable_quic; | 393 network_session_params.enable_quic = http_network_session_params_.enable_quic; |
394 network_session_params.quic_store_server_configs_in_properties = | 394 network_session_params.quic_max_server_configs_stored_in_properties = |
395 http_network_session_params_.quic_store_server_configs_in_properties; | 395 http_network_session_params_.quic_max_server_configs_stored_in_properties; |
396 network_session_params.quic_delay_tcp_race = | 396 network_session_params.quic_delay_tcp_race = |
397 http_network_session_params_.quic_delay_tcp_race; | 397 http_network_session_params_.quic_delay_tcp_race; |
398 network_session_params.quic_max_number_of_lossy_connections = | 398 network_session_params.quic_max_number_of_lossy_connections = |
399 http_network_session_params_.quic_max_number_of_lossy_connections; | 399 http_network_session_params_.quic_max_number_of_lossy_connections; |
400 network_session_params.quic_packet_loss_threshold = | 400 network_session_params.quic_packet_loss_threshold = |
401 http_network_session_params_.quic_packet_loss_threshold; | 401 http_network_session_params_.quic_packet_loss_threshold; |
402 network_session_params.quic_idle_connection_timeout_seconds = | 402 network_session_params.quic_idle_connection_timeout_seconds = |
403 http_network_session_params_.quic_idle_connection_timeout_seconds; | 403 http_network_session_params_.quic_idle_connection_timeout_seconds; |
404 network_session_params.quic_connection_options = | 404 network_session_params.quic_connection_options = |
405 http_network_session_params_.quic_connection_options; | 405 http_network_session_params_.quic_connection_options; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 } | 467 } |
468 url_request_interceptors_.clear(); | 468 url_request_interceptors_.clear(); |
469 } | 469 } |
470 storage->set_job_factory(std::move(top_job_factory)); | 470 storage->set_job_factory(std::move(top_job_factory)); |
471 // TODO(willchan): Support sdch. | 471 // TODO(willchan): Support sdch. |
472 | 472 |
473 return std::move(context); | 473 return std::move(context); |
474 } | 474 } |
475 | 475 |
476 } // namespace net | 476 } // namespace net |
OLD | NEW |