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

Unified Diff: net/url_request/url_request_context_builder.cc

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 | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.cc
diff --git a/net/url_request/url_request_context_builder.cc b/net/url_request/url_request_context_builder.cc
index bcb5c689d5d162cf0924c4401897fe692732803e..5e6f7210f4826f9938180868bb0e2324c843f048 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -16,6 +16,7 @@
#include "net/base/cache_type.h"
#include "net/base/net_errors.h"
#include "net/base/network_delegate_impl.h"
+#include "net/base/sdch_manager.h"
#include "net/cert/cert_verifier.h"
#include "net/cookies/cookie_monster.h"
#include "net/dns/host_resolver.h"
@@ -205,7 +206,8 @@ URLRequestContextBuilder::URLRequestContextBuilder()
ftp_enabled_(false),
#endif
http_cache_enabled_(true),
- throttling_enabled_(false) {
+ throttling_enabled_(false),
+ sdch_enabled_(false) {
}
URLRequestContextBuilder::~URLRequestContextBuilder() {}
@@ -308,6 +310,11 @@ URLRequestContext* URLRequestContextBuilder::Build() {
new DefaultChannelIDStore(NULL), context->GetFileTaskRunner())));
}
+ if (sdch_enabled_) {
+ storage->set_sdch_manager(
+ scoped_ptr<net::SdchManager>(new SdchManager()).Pass());
+ }
+
storage->set_transport_security_state(new TransportSecurityState());
if (!transport_security_persister_path_.empty()) {
context->set_transport_security_persister(
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698