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

Unified Diff: net/http/http_network_session_peer.cc

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/http/http_network_session_peer.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session_peer.cc
diff --git a/net/http/http_network_session_peer.cc b/net/http/http_network_session_peer.cc
index 2cfd3d63c752f2a9d36dd5ab6f789b77afeb63d1..c10795a5ea1538d40170b21d6842d008e544721a 100644
--- a/net/http/http_network_session_peer.cc
+++ b/net/http/http_network_session_peer.cc
@@ -4,6 +4,7 @@
#include "net/http/http_network_session_peer.h"
+#include "net/base/network_throttle_manager.h"
#include "net/http/http_network_session.h"
#include "net/http/http_proxy_client_socket_pool.h"
#include "net/proxy/proxy_service.h"
@@ -34,4 +35,9 @@ void HttpNetworkSessionPeer::SetHttpStreamFactoryForWebSocket(
session_->http_stream_factory_for_websocket_.swap(http_stream_factory);
}
+void HttpNetworkSessionPeer::SetNetworkStreamThrottler(
+ std::unique_ptr<NetworkThrottleManager> network_throttle_manager) {
+ session_->network_stream_throttler_.swap(network_throttle_manager);
+}
+
} // namespace net
« no previous file with comments | « net/http/http_network_session_peer.h ('k') | net/http/http_network_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698