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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 1085903002: Enable Sdch in Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: net/url_request/url_request_context_builder.h
diff --git a/net/url_request/url_request_context_builder.h b/net/url_request/url_request_context_builder.h
index 53a1792aa47f7881c6e387109f299be850f36a2d..de02dd1341bee2597262af9038ebcfec5e3cfcdc 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -141,7 +141,6 @@ class NET_EXPORT URLRequestContextBuilder {
network_delegate_.reset(delegate);
}
-
// Adds additional auth handler factories to be used in addition to what is
// provided in the default |HttpAuthHandlerRegistryFactory|. The auth |scheme|
// and |factory| are provided. The builder takes ownership of the factory and
@@ -196,6 +195,13 @@ class NET_EXPORT URLRequestContextBuilder {
void SetFileTaskRunner(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+ // Note that if SDCH is enabled without a policy object observing
+ // the SDCH manager and handling at least Get-Dictionary events, the
+ // result will be "Content-Encoding: sdch" advertisements, but no
+ // dictionaries fetches and no specific dictionaries advertised.
+ // SdchOwner in net/sdch/sdch_owner.h is a simple policy object.
+ void set_sdch_enabled(bool enable) { sdch_enabled_ = enable; }
+
URLRequestContext* Build();
private:
@@ -222,6 +228,7 @@ class NET_EXPORT URLRequestContextBuilder {
#endif
bool http_cache_enabled_;
bool throttling_enabled_;
+ bool sdch_enabled_;
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
HttpCacheParams http_cache_params_;

Powered by Google App Engine
This is Rietveld 408576698