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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ClientSocketFactory; 43 class ClientSocketFactory;
44 class ClientSocketPoolManager; 44 class ClientSocketPoolManager;
45 class CTVerifier; 45 class CTVerifier;
46 class HostResolver; 46 class HostResolver;
47 class HttpAuthHandlerFactory; 47 class HttpAuthHandlerFactory;
48 class HttpNetworkSessionPeer; 48 class HttpNetworkSessionPeer;
49 class HttpProxyClientSocketPool; 49 class HttpProxyClientSocketPool;
50 class HttpResponseBodyDrainer; 50 class HttpResponseBodyDrainer;
51 class HttpServerProperties; 51 class HttpServerProperties;
52 class NetLog; 52 class NetLog;
53 class NetworkThrottleManager;
53 class ProxyDelegate; 54 class ProxyDelegate;
54 class ProxyService; 55 class ProxyService;
55 class QuicClock; 56 class QuicClock;
56 class QuicCryptoClientStreamFactory; 57 class QuicCryptoClientStreamFactory;
57 class QuicServerInfoFactory; 58 class QuicServerInfoFactory;
58 class SocketPerformanceWatcherFactory; 59 class SocketPerformanceWatcherFactory;
59 class SOCKSClientSocketPool; 60 class SOCKSClientSocketPool;
60 class SSLClientSocketPool; 61 class SSLClientSocketPool;
61 class SSLConfigService; 62 class SSLConfigService;
62 class TransportClientSocketPool; 63 class TransportClientSocketPool;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 } 238 }
238 HttpServerProperties* http_server_properties() { 239 HttpServerProperties* http_server_properties() {
239 return http_server_properties_; 240 return http_server_properties_;
240 } 241 }
241 HttpStreamFactory* http_stream_factory() { 242 HttpStreamFactory* http_stream_factory() {
242 return http_stream_factory_.get(); 243 return http_stream_factory_.get();
243 } 244 }
244 HttpStreamFactory* http_stream_factory_for_websocket() { 245 HttpStreamFactory* http_stream_factory_for_websocket() {
245 return http_stream_factory_for_websocket_.get(); 246 return http_stream_factory_for_websocket_.get();
246 } 247 }
248 NetworkThrottleManager* throttler() {
249 return network_stream_throttler_.get();
250 }
247 NetLog* net_log() { 251 NetLog* net_log() {
248 return net_log_; 252 return net_log_;
249 } 253 }
250 254
251 // Creates a Value summary of the state of the socket pools. 255 // Creates a Value summary of the state of the socket pools.
252 std::unique_ptr<base::Value> SocketPoolInfoToValue() const; 256 std::unique_ptr<base::Value> SocketPoolInfoToValue() const;
253 257
254 // Creates a Value summary of the state of the SPDY sessions. 258 // Creates a Value summary of the state of the SPDY sessions.
255 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const; 259 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const;
256 260
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 HttpAuthCache http_auth_cache_; 303 HttpAuthCache http_auth_cache_;
300 SSLClientAuthCache ssl_client_auth_cache_; 304 SSLClientAuthCache ssl_client_auth_cache_;
301 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; 305 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_;
302 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; 306 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_;
303 QuicStreamFactory quic_stream_factory_; 307 QuicStreamFactory quic_stream_factory_;
304 SpdySessionPool spdy_session_pool_; 308 SpdySessionPool spdy_session_pool_;
305 std::unique_ptr<HttpStreamFactory> http_stream_factory_; 309 std::unique_ptr<HttpStreamFactory> http_stream_factory_;
306 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; 310 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_;
307 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>> 311 std::map<HttpResponseBodyDrainer*, std::unique_ptr<HttpResponseBodyDrainer>>
308 response_drainers_; 312 response_drainers_;
313 std::unique_ptr<NetworkThrottleManager> network_stream_throttler_;
309 314
310 NextProtoVector next_protos_; 315 NextProtoVector next_protos_;
311 316
312 Params params_; 317 Params params_;
313 318
314 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
315 }; 320 };
316 321
317 } // namespace net 322 } // namespace net
318 323
319 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« 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