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

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: constants 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
« no previous file with comments | « components/cronet/url_request_context_config_list.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b21a6523ffb2dc4ad47cbae452359d5f517d16db..2039baa124b78da5ba8817c2dc016852e4946ba6 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:
@@ -221,6 +227,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_;
« no previous file with comments | « components/cronet/url_request_context_config_list.h ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698