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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 1175733002: [Cronet] Set up HttpServerPropertiesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass in a HttpServerPropertiesManager directly Created 5 years, 6 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 a104c4386550a0d43363b6d9f159c48c4866ffb6..f0eee88461d262cffa2aa1620be7c3178cecbec0 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -22,6 +22,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
+#include "base/memory/weak_ptr.h"
pauljensen 2015/07/01 18:42:22 unneeded?
xunjieli 2015/07/06 14:58:02 Done.
#include "build/build_config.h"
#include "net/base/net_export.h"
#include "net/base/network_delegate.h"
@@ -42,6 +43,8 @@ class CookieStore;
class FtpTransactionFactory;
class HostMappingRules;
class HttpAuthHandlerFactory;
+class HttpServerProperties;
pauljensen 2015/07/01 18:42:22 unneeded?
xunjieli 2015/07/06 14:58:02 Done.
+class HttpServerPropertiesManager;
class ProxyConfigService;
class URLRequestContext;
class URLRequestInterceptor;
@@ -207,6 +210,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.
+ void SetHttpServerPropertiesManager(
+ scoped_ptr<HttpServerPropertiesManager> http_server_properties_manager);
+
URLRequestContext* Build();
private:
@@ -248,6 +258,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);
};

Powered by Google App Engine
This is Rietveld 408576698