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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: 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 209b36ab809e39111b68700f805b655076cac47f..1c5f47449f714089ad768a7bb2694a6a6988a88c 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -29,6 +29,7 @@
#include "net/proxy/proxy_service.h"
#include "net/quic/quic_protocol.h"
#include "net/socket/next_proto.h"
+#include "net/url_request/url_request_interceptor.h"
mmenke 2015/03/10 15:26:55 Suggest forward declaring this. May have to de-in
bengr 2015/03/10 23:43:31 Done.
namespace net {
@@ -176,6 +177,10 @@ class NET_EXPORT URLRequestContextBuilder {
throttling_enabled_ = throttling_enabled;
}
+ void set_interceptor(scoped_ptr<URLRequestInterceptor> interceptor) {
+ url_request_interceptor_ = interceptor.Pass();
mmenke 2015/03/10 15:26:55 We should probably allow an ordered list of interc
bengr 2015/03/10 23:43:31 Done.
+ }
+
// Override the default in-memory cookie store and channel id service.
// |cookie_store| must not be NULL. |channel_id_service| may be NULL to
// disable channel id for this context.
@@ -226,6 +231,7 @@ class NET_EXPORT URLRequestContextBuilder {
scoped_refptr<CookieStore> cookie_store_;
scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
std::vector<SchemeFactory> extra_http_auth_handlers_;
+ scoped_ptr<URLRequestInterceptor> url_request_interceptor_;
DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
};

Powered by Google App Engine
This is Rietveld 408576698