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

Unified Diff: net/url_request/url_request_context_builder.h

Issue 2045703003: Enable NQE when Cronet Engine is built (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 ccdf5967b6738e9131880223485fb2256f3f08c8..61f743ba3b8773a57d197d765940b34165efd1a2 100644
--- a/net/url_request/url_request_context_builder.h
+++ b/net/url_request/url_request_context_builder.h
@@ -51,6 +51,7 @@ class HostMappingRules;
class HttpAuthHandlerFactory;
class HttpServerProperties;
class ProxyConfigService;
+class SocketPerformanceWatcherFactory;
class URLRequestContext;
class URLRequestInterceptor;
@@ -292,6 +293,11 @@ class NET_EXPORT URLRequestContextBuilder {
backoff_enabled_ = backoff_enabled;
}
+ void set_socket_performance_watcher_factory(
+ SocketPerformanceWatcherFactory* socket_performance_watcher_factory) {
+ socket_performance_watcher_factory_ = socket_performance_watcher_factory;
+ }
+
void SetCertVerifier(std::unique_ptr<CertVerifier> cert_verifier);
void SetInterceptors(std::vector<std::unique_ptr<URLRequestInterceptor>>
@@ -369,6 +375,9 @@ class NET_EXPORT URLRequestContextBuilder {
std::unique_ptr<HttpServerProperties> http_server_properties_;
std::map<std::string, std::unique_ptr<URLRequestJobFactory::ProtocolHandler>>
protocol_handlers_;
+ // SocketPerformanceWatcherFactory to be used by this context builder.
+ // Not owned by the context builder.
+ SocketPerformanceWatcherFactory* socket_performance_watcher_factory_;
bengr 2016/06/07 20:53:16 Should this be a WeakPtr? What ensures that this p
tbansal1 2016/06/07 21:37:17 It should not change during the lifetime of Builde
bengr 2016/06/07 22:55:12 I guess this is ok.
DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
};

Powered by Google App Engine
This is Rietveld 408576698