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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/url_request_context_config.cc
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index f9b64d6023e8d05f66a3a29023d8c56fef9bd70b..719ee61681806c66a6d3fbe5e155799e6a0e0603 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -356,6 +356,7 @@ URLRequestContextConfig::URLRequestContextConfig(
const std::string& quic_user_agent_id,
bool enable_spdy,
bool enable_sdch,
+ bool enable_brotli,
HttpCacheType http_cache,
int http_cache_max_size,
bool load_disable_cache,
@@ -374,6 +375,7 @@ URLRequestContextConfig::URLRequestContextConfig(
quic_user_agent_id(quic_user_agent_id),
enable_spdy(enable_spdy),
enable_sdch(enable_sdch),
+ enable_brotli(enable_brotli),
http_cache(http_cache),
http_cache_max_size(http_cache_max_size),
load_disable_cache(load_disable_cache),
@@ -445,9 +447,9 @@ URLRequestContextConfigBuilder::~URLRequestContextConfigBuilder() {}
std::unique_ptr<URLRequestContextConfig>
URLRequestContextConfigBuilder::Build() {
return base::MakeUnique<URLRequestContextConfig>(
- enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, http_cache,
- http_cache_max_size, load_disable_cache, storage_path, user_agent,
- experimental_options, data_reduction_proxy_key,
+ enable_quic, quic_user_agent_id, enable_spdy, enable_sdch, enable_brotli,
+ http_cache, http_cache_max_size, load_disable_cache, storage_path,
+ user_agent, experimental_options, data_reduction_proxy_key,
data_reduction_primary_proxy, data_reduction_fallback_proxy,
data_reduction_secure_proxy_check_url, std::move(mock_cert_verifier),
enable_network_quality_estimator,
« 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