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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/http/http_network_session_peer.h" 5 #include "net/http/http_network_session_peer.h"
6 6
7 #include "net/base/network_stream_throttler.h"
7 #include "net/http/http_network_session.h" 8 #include "net/http/http_network_session.h"
8 #include "net/http/http_proxy_client_socket_pool.h" 9 #include "net/http/http_proxy_client_socket_pool.h"
9 #include "net/proxy/proxy_service.h" 10 #include "net/proxy/proxy_service.h"
10 #include "net/socket/client_socket_pool_manager.h" 11 #include "net/socket/client_socket_pool_manager.h"
11 #include "net/socket/socks_client_socket_pool.h" 12 #include "net/socket/socks_client_socket_pool.h"
12 #include "net/socket/ssl_client_socket_pool.h" 13 #include "net/socket/ssl_client_socket_pool.h"
13 #include "net/socket/transport_client_socket_pool.h" 14 #include "net/socket/transport_client_socket_pool.h"
14 15
15 namespace net { 16 namespace net {
16 17
(...skipping 14 matching lines...) Expand all
31 void HttpNetworkSessionPeer::SetHttpStreamFactory( 32 void HttpNetworkSessionPeer::SetHttpStreamFactory(
32 std::unique_ptr<HttpStreamFactory> http_stream_factory) { 33 std::unique_ptr<HttpStreamFactory> http_stream_factory) {
33 session_->http_stream_factory_.swap(http_stream_factory); 34 session_->http_stream_factory_.swap(http_stream_factory);
34 } 35 }
35 36
36 void HttpNetworkSessionPeer::SetHttpStreamFactoryForWebSocket( 37 void HttpNetworkSessionPeer::SetHttpStreamFactoryForWebSocket(
37 std::unique_ptr<HttpStreamFactory> http_stream_factory) { 38 std::unique_ptr<HttpStreamFactory> http_stream_factory) {
38 session_->http_stream_factory_for_websocket_.swap(http_stream_factory); 39 session_->http_stream_factory_for_websocket_.swap(http_stream_factory);
39 } 40 }
40 41
42 void HttpNetworkSessionPeer::SetNetworkStreamThrottler(
43 std::unique_ptr<NetworkStreamThrottler> network_stream_throttler) {
44 session_->network_stream_throttler_.swap(network_stream_throttler);
45 }
46
41 } // namespace net 47 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698