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

Unified Diff: net/http/http_network_session.h

Issue 1901533002: Implementation of network level throttler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Destroy transaction before session in QuicUploadWriteError. Created 4 years, 2 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/base/network_throttle_manager_unittest.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 8d251bf3d42ab788f3218dacb077bc4b2add86c0..333c2717b74c8de7362d3d305ce7e50196a54c1b 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -50,6 +50,7 @@ class HttpProxyClientSocketPool;
class HttpResponseBodyDrainer;
class HttpServerProperties;
class NetLog;
+class NetworkThrottleManager;
class ProxyDelegate;
class ProxyService;
class QuicClock;
@@ -244,6 +245,9 @@ class NET_EXPORT HttpNetworkSession
HttpStreamFactory* http_stream_factory_for_websocket() {
return http_stream_factory_for_websocket_.get();
}
+ NetworkThrottleManager* throttler() {
+ return network_stream_throttler_.get();
+ }
NetLog* net_log() {
return net_log_;
}
@@ -306,6 +310,7 @@ class NET_EXPORT HttpNetworkSession
std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_;
std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>>
response_drainers_;
+ std::unique_ptr<NetworkThrottleManager> network_stream_throttler_;
NextProtoVector next_protos_;
« no previous file with comments | « net/base/network_throttle_manager_unittest.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698