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

Unified Diff: components/cronet/url_request_context_config.cc

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 9 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 0aa208977dd12a6d5289c99fd788f968b6b0b54b..1e544b90ae06b267086b1e49da4685554842a27b 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -103,6 +103,12 @@ void URLRequestContextConfig::RegisterJSONConverter(
converter->RegisterStringField(
REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS,
&URLRequestContextConfig::quic_connection_options);
+ converter->RegisterBoolField(
+ REQUEST_CONTEXT_CONFIG_ENABLE_DATA_REDUCTION_PROXY,
+ &URLRequestContextConfig::enable_data_reduction_proxy);
+ converter->RegisterStringField(
+ REQUEST_CONTEXT_CONFIG_DATA_REDUCTION_PROXY_KEY,
+ &URLRequestContextConfig::data_reduction_proxy_key);
}
} // namespace cronet

Powered by Google App Engine
This is Rietveld 408576698