Chromium Code Reviews| 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..c78f756dd2fd91a64a8a541339325289a5bc4b81 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" |
| @@ -39,9 +40,12 @@ class HostMappingRules; |
| class HttpAuthHandlerFactory; |
| class ProxyConfigService; |
| class URLRequestContext; |
| +class URLRequestInterceptor; |
| class NET_EXPORT URLRequestContextBuilder { |
| public: |
| + typedef ScopedVector<URLRequestInterceptor> URLRequestInterceptors; |
|
mmenke
2015/03/13 18:16:48
Optional: Suggest just inlining ScopedVector<URLR
bengr
2015/03/19 01:03:51
Done.
|
| + |
| struct NET_EXPORT HttpCacheParams { |
| enum Type { |
| IN_MEMORY, |
| @@ -176,6 +180,8 @@ class NET_EXPORT URLRequestContextBuilder { |
| throttling_enabled_ = throttling_enabled; |
| } |
| + void SetInterceptors(URLRequestInterceptors 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. |
| @@ -226,6 +232,7 @@ class NET_EXPORT URLRequestContextBuilder { |
| scoped_refptr<CookieStore> cookie_store_; |
| scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| std::vector<SchemeFactory> extra_http_auth_handlers_; |
| + URLRequestInterceptors url_request_interceptors_; |
| DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
| }; |