Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Side by Side Diff: components/cronet/url_request_context_config.cc

Issue 2805053005: [Cronet] Enable Brotli (Closed)
Patch Set: restore 0x03 in test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 include_subdomains(include_subdomains), 349 include_subdomains(include_subdomains),
350 expiration_date(expiration_date) {} 350 expiration_date(expiration_date) {}
351 351
352 URLRequestContextConfig::Pkp::~Pkp() {} 352 URLRequestContextConfig::Pkp::~Pkp() {}
353 353
354 URLRequestContextConfig::URLRequestContextConfig( 354 URLRequestContextConfig::URLRequestContextConfig(
355 bool enable_quic, 355 bool enable_quic,
356 const std::string& quic_user_agent_id, 356 const std::string& quic_user_agent_id,
357 bool enable_spdy, 357 bool enable_spdy,
358 bool enable_sdch, 358 bool enable_sdch,
359 bool enable_brotli,
359 HttpCacheType http_cache, 360 HttpCacheType http_cache,
360 int http_cache_max_size, 361 int http_cache_max_size,
361 bool load_disable_cache, 362 bool load_disable_cache,
362 const std::string& storage_path, 363 const std::string& storage_path,
363 const std::string& user_agent, 364 const std::string& user_agent,
364 const std::string& experimental_options, 365 const std::string& experimental_options,
365 const std::string& data_reduction_proxy_key, 366 const std::string& data_reduction_proxy_key,
366 const std::string& data_reduction_primary_proxy, 367 const std::string& data_reduction_primary_proxy,
367 const std::string& data_reduction_fallback_proxy, 368 const std::string& data_reduction_fallback_proxy,
368 const std::string& data_reduction_secure_proxy_check_url, 369 const std::string& data_reduction_secure_proxy_check_url,
369 std::unique_ptr<net::CertVerifier> mock_cert_verifier, 370 std::unique_ptr<net::CertVerifier> mock_cert_verifier,
370 bool enable_network_quality_estimator, 371 bool enable_network_quality_estimator,
371 bool bypass_public_key_pinning_for_local_trust_anchors, 372 bool bypass_public_key_pinning_for_local_trust_anchors,
372 const std::string& cert_verifier_data) 373 const std::string& cert_verifier_data)
373 : enable_quic(enable_quic), 374 : enable_quic(enable_quic),
374 quic_user_agent_id(quic_user_agent_id), 375 quic_user_agent_id(quic_user_agent_id),
375 enable_spdy(enable_spdy), 376 enable_spdy(enable_spdy),
376 enable_sdch(enable_sdch), 377 enable_sdch(enable_sdch),
378 enable_brotli(enable_brotli),
377 http_cache(http_cache), 379 http_cache(http_cache),
378 http_cache_max_size(http_cache_max_size), 380 http_cache_max_size(http_cache_max_size),
379 load_disable_cache(load_disable_cache), 381 load_disable_cache(load_disable_cache),
380 storage_path(storage_path), 382 storage_path(storage_path),
381 user_agent(user_agent), 383 user_agent(user_agent),
382 experimental_options(experimental_options), 384 experimental_options(experimental_options),
383 data_reduction_proxy_key(data_reduction_proxy_key), 385 data_reduction_proxy_key(data_reduction_proxy_key),
384 data_reduction_primary_proxy(data_reduction_primary_proxy), 386 data_reduction_primary_proxy(data_reduction_primary_proxy),
385 data_reduction_fallback_proxy(data_reduction_fallback_proxy), 387 data_reduction_fallback_proxy(data_reduction_fallback_proxy),
386 data_reduction_secure_proxy_check_url( 388 data_reduction_secure_proxy_check_url(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 context_builder->SetCertVerifier(std::move(cert_verifier)); 440 context_builder->SetCertVerifier(std::move(cert_verifier));
439 // TODO(mef): Use |config| to set cookies. 441 // TODO(mef): Use |config| to set cookies.
440 } 442 }
441 443
442 URLRequestContextConfigBuilder::URLRequestContextConfigBuilder() {} 444 URLRequestContextConfigBuilder::URLRequestContextConfigBuilder() {}
443 URLRequestContextConfigBuilder::~URLRequestContextConfigBuilder() {} 445 URLRequestContextConfigBuilder::~URLRequestContextConfigBuilder() {}
444 446
445 std::unique_ptr<URLRequestContextConfig> 447 std::unique_ptr<URLRequestContextConfig>
446 URLRequestContextConfigBuilder::Build() { 448 URLRequestContextConfigBuilder::Build() {
447 return base::MakeUnique<URLRequestContextConfig>( 449 return base::MakeUnique<URLRequestContextConfig>(
448 enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, http_cache, 450 enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, enable_brotli,
449 http_cache_max_size, load_disable_cache, storage_path, user_agent, 451 http_cache, http_cache_max_size, load_disable_cache, storage_path,
450 experimental_options, data_reduction_proxy_key, 452 user_agent, experimental_options, data_reduction_proxy_key,
451 data_reduction_primary_proxy, data_reduction_fallback_proxy, 453 data_reduction_primary_proxy, data_reduction_fallback_proxy,
452 data_reduction_secure_proxy_check_url, std::move(mock_cert_verifier), 454 data_reduction_secure_proxy_check_url, std::move(mock_cert_verifier),
453 enable_network_quality_estimator, 455 enable_network_quality_estimator,
454 bypass_public_key_pinning_for_local_trust_anchors, cert_verifier_data); 456 bypass_public_key_pinning_for_local_trust_anchors, cert_verifier_data);
455 } 457 }
456 458
457 } // namespace cronet 459 } // namespace cronet
OLDNEW
« no previous file with comments | « components/cronet/url_request_context_config.h ('k') | components/cronet/url_request_context_config_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698