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

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: Addressed nit Created 5 years, 7 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 2039baa124b78da5ba8817c2dc016852e4946ba6..a104c4386550a0d43363b6d9f159c48c4866ffb6 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -21,6 +21,7 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/scoped_vector.h"
#include "build/build_config.h"
#include "net/base/net_export.h"
#include "net/base/network_delegate.h"
@@ -43,6 +44,7 @@ class HostMappingRules;
class HttpAuthHandlerFactory;
class ProxyConfigService;
class URLRequestContext;
+class URLRequestInterceptor;
class NET_EXPORT URLRequestContextBuilder {
public:
@@ -179,6 +181,9 @@ class NET_EXPORT URLRequestContextBuilder {
throttling_enabled_ = throttling_enabled;
}
+ void SetInterceptors(
+ ScopedVector<URLRequestInterceptor> url_request_interceptors);
+
// 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.
@@ -242,6 +247,7 @@ class NET_EXPORT URLRequestContextBuilder {
scoped_refptr<CookieStore> cookie_store_;
scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
std::vector<SchemeFactory> extra_http_auth_handlers_;
+ ScopedVector<URLRequestInterceptor> url_request_interceptors_;
DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
};

Powered by Google App Engine
This is Rietveld 408576698