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

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: Addressed mef comments 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
« no previous file with comments | « net/nqe/throughput_analyzer.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7ea4488ec10be9585c07735ecc42299c8f6673c6 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,10 @@ 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. Once it is set to a non-null value, it
+ // is guaranteed to be non-null during the lifetime of |this|.
+ SocketPerformanceWatcherFactory* socket_performance_watcher_factory_;
DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
};
« no previous file with comments | « net/nqe/throughput_analyzer.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698