| 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_number_of_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_number_of_server_configs_stored_in_properties = |
| 395 http_network_session_params_.quic_store_server_configs_in_properties; | 395 http_network_session_params_ |
| 396 .quic_number_of_server_configs_stored_in_properties; |
| 396 network_session_params.quic_delay_tcp_race = | 397 network_session_params.quic_delay_tcp_race = |
| 397 http_network_session_params_.quic_delay_tcp_race; | 398 http_network_session_params_.quic_delay_tcp_race; |
| 398 network_session_params.quic_max_number_of_lossy_connections = | 399 network_session_params.quic_max_number_of_lossy_connections = |
| 399 http_network_session_params_.quic_max_number_of_lossy_connections; | 400 http_network_session_params_.quic_max_number_of_lossy_connections; |
| 400 network_session_params.quic_packet_loss_threshold = | 401 network_session_params.quic_packet_loss_threshold = |
| 401 http_network_session_params_.quic_packet_loss_threshold; | 402 http_network_session_params_.quic_packet_loss_threshold; |
| 402 network_session_params.quic_idle_connection_timeout_seconds = | 403 network_session_params.quic_idle_connection_timeout_seconds = |
| 403 http_network_session_params_.quic_idle_connection_timeout_seconds; | 404 http_network_session_params_.quic_idle_connection_timeout_seconds; |
| 404 network_session_params.quic_connection_options = | 405 network_session_params.quic_connection_options = |
| 405 http_network_session_params_.quic_connection_options; | 406 http_network_session_params_.quic_connection_options; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 } | 466 } |
| 466 url_request_interceptors_.clear(); | 467 url_request_interceptors_.clear(); |
| 467 } | 468 } |
| 468 storage->set_job_factory(std::move(top_job_factory)); | 469 storage->set_job_factory(std::move(top_job_factory)); |
| 469 // TODO(willchan): Support sdch. | 470 // TODO(willchan): Support sdch. |
| 470 | 471 |
| 471 return std::move(context); | 472 return std::move(context); |
| 472 } | 473 } |
| 473 | 474 |
| 474 } // namespace net | 475 } // namespace net |
| OLD | NEW |