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 a104c4386550a0d43363b6d9f159c48c4866ffb6..ce3b05d436220e902f8429dbf084a5d8335e6db0 100644 |
--- a/net/url_request/url_request_context_builder.h |
+++ b/net/url_request/url_request_context_builder.h |
@@ -42,6 +42,7 @@ class CookieStore; |
class FtpTransactionFactory; |
class HostMappingRules; |
class HttpAuthHandlerFactory; |
+class HttpServerPropertiesManager; |
class ProxyConfigService; |
class URLRequestContext; |
class URLRequestInterceptor; |
@@ -207,6 +208,13 @@ class NET_EXPORT URLRequestContextBuilder { |
// SdchOwner in net/sdch/sdch_owner.h is a simple policy object. |
void set_sdch_enabled(bool enable) { sdch_enabled_ = enable; } |
+ // Sets a specific HttpServerPropertiesManager for use in the |
+ // URLRequestContext rather than creating a HttpServerPropertiesImpl by |
+ // default. Note that the ownership of |http_server_properties_manager| will |
+ // be passed to the URLRequestContext. |
mmenke
2015/07/07 19:18:29
The "Note..." sentence probably isn't needed - tha
xunjieli
2015/07/07 19:37:35
Done.
|
+ void SetHttpServerPropertiesManager( |
+ scoped_ptr<HttpServerPropertiesManager> http_server_properties_manager); |
+ |
URLRequestContext* Build(); |
private: |
@@ -248,6 +256,7 @@ class NET_EXPORT URLRequestContextBuilder { |
scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
std::vector<SchemeFactory> extra_http_auth_handlers_; |
ScopedVector<URLRequestInterceptor> url_request_interceptors_; |
+ scoped_ptr<HttpServerPropertiesManager> http_server_properties_manager_; |
DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); |
}; |