OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/cronet/url_request_context_config.h" | 5 #include "components/cronet/url_request_context_config.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 const std::string& quic_user_agent_id, | 332 const std::string& quic_user_agent_id, |
333 bool enable_spdy, | 333 bool enable_spdy, |
334 bool enable_sdch, | 334 bool enable_sdch, |
335 bool enable_brotli, | 335 bool enable_brotli, |
336 HttpCacheType http_cache, | 336 HttpCacheType http_cache, |
337 int http_cache_max_size, | 337 int http_cache_max_size, |
338 bool load_disable_cache, | 338 bool load_disable_cache, |
339 const std::string& storage_path, | 339 const std::string& storage_path, |
340 const std::string& user_agent, | 340 const std::string& user_agent, |
341 const std::string& experimental_options, | 341 const std::string& experimental_options, |
342 const std::string& data_reduction_proxy_key, | |
343 const std::string& data_reduction_primary_proxy, | |
344 const std::string& data_reduction_fallback_proxy, | |
345 const std::string& data_reduction_secure_proxy_check_url, | |
346 std::unique_ptr<net::CertVerifier> mock_cert_verifier, | 342 std::unique_ptr<net::CertVerifier> mock_cert_verifier, |
347 bool enable_network_quality_estimator, | 343 bool enable_network_quality_estimator, |
348 bool bypass_public_key_pinning_for_local_trust_anchors, | 344 bool bypass_public_key_pinning_for_local_trust_anchors, |
349 const std::string& cert_verifier_data) | 345 const std::string& cert_verifier_data) |
350 : enable_quic(enable_quic), | 346 : enable_quic(enable_quic), |
351 quic_user_agent_id(quic_user_agent_id), | 347 quic_user_agent_id(quic_user_agent_id), |
352 enable_spdy(enable_spdy), | 348 enable_spdy(enable_spdy), |
353 enable_sdch(enable_sdch), | 349 enable_sdch(enable_sdch), |
354 enable_brotli(enable_brotli), | 350 enable_brotli(enable_brotli), |
355 http_cache(http_cache), | 351 http_cache(http_cache), |
356 http_cache_max_size(http_cache_max_size), | 352 http_cache_max_size(http_cache_max_size), |
357 load_disable_cache(load_disable_cache), | 353 load_disable_cache(load_disable_cache), |
358 storage_path(storage_path), | 354 storage_path(storage_path), |
359 user_agent(user_agent), | 355 user_agent(user_agent), |
360 experimental_options(experimental_options), | 356 experimental_options(experimental_options), |
361 data_reduction_proxy_key(data_reduction_proxy_key), | |
362 data_reduction_primary_proxy(data_reduction_primary_proxy), | |
363 data_reduction_fallback_proxy(data_reduction_fallback_proxy), | |
364 data_reduction_secure_proxy_check_url( | |
365 data_reduction_secure_proxy_check_url), | |
366 mock_cert_verifier(std::move(mock_cert_verifier)), | 357 mock_cert_verifier(std::move(mock_cert_verifier)), |
367 enable_network_quality_estimator(enable_network_quality_estimator), | 358 enable_network_quality_estimator(enable_network_quality_estimator), |
368 bypass_public_key_pinning_for_local_trust_anchors( | 359 bypass_public_key_pinning_for_local_trust_anchors( |
369 bypass_public_key_pinning_for_local_trust_anchors), | 360 bypass_public_key_pinning_for_local_trust_anchors), |
370 cert_verifier_data(cert_verifier_data) {} | 361 cert_verifier_data(cert_verifier_data) {} |
371 | 362 |
372 URLRequestContextConfig::~URLRequestContextConfig() {} | 363 URLRequestContextConfig::~URLRequestContextConfig() {} |
373 | 364 |
374 void URLRequestContextConfig::ConfigureURLRequestContextBuilder( | 365 void URLRequestContextConfig::ConfigureURLRequestContextBuilder( |
375 net::URLRequestContextBuilder* context_builder, | 366 net::URLRequestContextBuilder* context_builder, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 409 } |
419 | 410 |
420 URLRequestContextConfigBuilder::URLRequestContextConfigBuilder() {} | 411 URLRequestContextConfigBuilder::URLRequestContextConfigBuilder() {} |
421 URLRequestContextConfigBuilder::~URLRequestContextConfigBuilder() {} | 412 URLRequestContextConfigBuilder::~URLRequestContextConfigBuilder() {} |
422 | 413 |
423 std::unique_ptr<URLRequestContextConfig> | 414 std::unique_ptr<URLRequestContextConfig> |
424 URLRequestContextConfigBuilder::Build() { | 415 URLRequestContextConfigBuilder::Build() { |
425 return base::MakeUnique<URLRequestContextConfig>( | 416 return base::MakeUnique<URLRequestContextConfig>( |
426 enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, enable_brotli, | 417 enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, enable_brotli, |
427 http_cache, http_cache_max_size, load_disable_cache, storage_path, | 418 http_cache, http_cache_max_size, load_disable_cache, storage_path, |
428 user_agent, experimental_options, data_reduction_proxy_key, | 419 user_agent, experimental_options, std::move(mock_cert_verifier), |
429 data_reduction_primary_proxy, data_reduction_fallback_proxy, | |
430 data_reduction_secure_proxy_check_url, std::move(mock_cert_verifier), | |
431 enable_network_quality_estimator, | 420 enable_network_quality_estimator, |
432 bypass_public_key_pinning_for_local_trust_anchors, cert_verifier_data); | 421 bypass_public_key_pinning_for_local_trust_anchors, cert_verifier_data); |
433 } | 422 } |
434 | 423 |
435 } // namespace cronet | 424 } // namespace cronet |
OLD | NEW |