| 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 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 max_size(0) {} | 170 max_size(0) {} |
| 171 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} | 171 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} |
| 172 | 172 |
| 173 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() | 173 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() |
| 174 : ignore_certificate_errors(false), | 174 : ignore_certificate_errors(false), |
| 175 host_mapping_rules(NULL), | 175 host_mapping_rules(NULL), |
| 176 testing_fixed_http_port(0), | 176 testing_fixed_http_port(0), |
| 177 testing_fixed_https_port(0), | 177 testing_fixed_https_port(0), |
| 178 next_protos(NextProtosDefaults()), | 178 next_protos(NextProtosDefaults()), |
| 179 use_alternative_services(true), | 179 use_alternative_services(true), |
| 180 enable_quic(false) {} | 180 enable_quic(false), |
| 181 quic_store_server_configs_in_properties(false), |
| 182 quic_delay_tcp_race(false), |
| 183 quic_max_number_of_lossy_connections(0), |
| 184 quic_packet_loss_threshold(1.0f) {} |
| 181 | 185 |
| 182 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() | 186 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() |
| 183 {} | 187 {} |
| 184 | 188 |
| 185 URLRequestContextBuilder::SchemeFactory::SchemeFactory( | 189 URLRequestContextBuilder::SchemeFactory::SchemeFactory( |
| 186 const std::string& auth_scheme, | 190 const std::string& auth_scheme, |
| 187 HttpAuthHandlerFactory* auth_handler_factory) | 191 HttpAuthHandlerFactory* auth_handler_factory) |
| 188 : scheme(auth_scheme), factory(auth_handler_factory) { | 192 : scheme(auth_scheme), factory(auth_handler_factory) { |
| 189 } | 193 } |
| 190 | 194 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 network_session_params.testing_fixed_http_port = | 386 network_session_params.testing_fixed_http_port = |
| 383 http_network_session_params_.testing_fixed_http_port; | 387 http_network_session_params_.testing_fixed_http_port; |
| 384 network_session_params.testing_fixed_https_port = | 388 network_session_params.testing_fixed_https_port = |
| 385 http_network_session_params_.testing_fixed_https_port; | 389 http_network_session_params_.testing_fixed_https_port; |
| 386 network_session_params.use_alternative_services = | 390 network_session_params.use_alternative_services = |
| 387 http_network_session_params_.use_alternative_services; | 391 http_network_session_params_.use_alternative_services; |
| 388 network_session_params.trusted_spdy_proxy = | 392 network_session_params.trusted_spdy_proxy = |
| 389 http_network_session_params_.trusted_spdy_proxy; | 393 http_network_session_params_.trusted_spdy_proxy; |
| 390 network_session_params.next_protos = http_network_session_params_.next_protos; | 394 network_session_params.next_protos = http_network_session_params_.next_protos; |
| 391 network_session_params.enable_quic = http_network_session_params_.enable_quic; | 395 network_session_params.enable_quic = http_network_session_params_.enable_quic; |
| 396 network_session_params.quic_store_server_configs_in_properties = |
| 397 http_network_session_params_.quic_store_server_configs_in_properties; |
| 398 network_session_params.quic_delay_tcp_race = |
| 399 http_network_session_params_.quic_delay_tcp_race; |
| 400 network_session_params.quic_max_number_of_lossy_connections = |
| 401 http_network_session_params_.quic_max_number_of_lossy_connections; |
| 402 network_session_params.quic_packet_loss_threshold = |
| 403 http_network_session_params_.quic_packet_loss_threshold; |
| 392 network_session_params.quic_connection_options = | 404 network_session_params.quic_connection_options = |
| 393 http_network_session_params_.quic_connection_options; | 405 http_network_session_params_.quic_connection_options; |
| 394 network_session_params.ssl_session_cache_shard = | 406 network_session_params.ssl_session_cache_shard = |
| 395 http_network_session_params_.ssl_session_cache_shard; | 407 http_network_session_params_.ssl_session_cache_shard; |
| 396 | 408 |
| 397 storage->set_http_network_session( | 409 storage->set_http_network_session( |
| 398 make_scoped_ptr(new HttpNetworkSession(network_session_params))); | 410 make_scoped_ptr(new HttpNetworkSession(network_session_params))); |
| 399 | 411 |
| 400 scoped_ptr<HttpTransactionFactory> http_transaction_factory; | 412 scoped_ptr<HttpTransactionFactory> http_transaction_factory; |
| 401 if (http_cache_enabled_) { | 413 if (http_cache_enabled_) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 } | 468 } |
| 457 url_request_interceptors_.weak_clear(); | 469 url_request_interceptors_.weak_clear(); |
| 458 } | 470 } |
| 459 storage->set_job_factory(top_job_factory.Pass()); | 471 storage->set_job_factory(top_job_factory.Pass()); |
| 460 // TODO(willchan): Support sdch. | 472 // TODO(willchan): Support sdch. |
| 461 | 473 |
| 462 return context.Pass(); | 474 return context.Pass(); |
| 463 } | 475 } |
| 464 | 476 |
| 465 } // namespace net | 477 } // namespace net |
| OLD | NEW |