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

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: Incorporated latest round of comments." . Created 4 years, 7 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/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index f0206fdda540184ab00632f2b486af94c6c5912e..8a7ace9748852b17a900df098795fad177674475 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <set>
#include <string>
#include <unordered_set>
@@ -45,6 +46,7 @@ class HttpProxyClientSocketPool;
class HttpResponseBodyDrainer;
class HttpServerProperties;
class NetLog;
+class NetworkStreamThrottler;
class ProxyDelegate;
class ProxyService;
class QuicClock;
@@ -233,6 +235,9 @@ class NET_EXPORT HttpNetworkSession
HttpStreamFactory* http_stream_factory_for_websocket() {
return http_stream_factory_for_websocket_.get();
}
+ NetworkStreamThrottler* throttler() {
+ return network_stream_throttler_.get();
+ }
NetLog* net_log() {
return net_log_;
}
@@ -290,6 +295,7 @@ class NET_EXPORT HttpNetworkSession
std::unique_ptr<HttpStreamFactory> http_stream_factory_;
std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_;
std::set<HttpResponseBodyDrainer*> response_drainers_;
+ std::unique_ptr<NetworkStreamThrottler> network_stream_throttler_;
NextProtoVector next_protos_;
bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];

Powered by Google App Engine
This is Rietveld 408576698