OLD | NEW |
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 |
| 11 #include <memory> |
11 #include <set> | 12 #include <set> |
12 #include <string> | 13 #include <string> |
13 #include <unordered_set> | 14 #include <unordered_set> |
14 #include <vector> | 15 #include <vector> |
15 | 16 |
16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
19 #include "net/base/host_port_pair.h" | 20 #include "net/base/host_port_pair.h" |
20 #include "net/base/net_export.h" | 21 #include "net/base/net_export.h" |
(...skipping 17 matching lines...) Expand all Loading... |
38 class ClientSocketFactory; | 39 class ClientSocketFactory; |
39 class ClientSocketPoolManager; | 40 class ClientSocketPoolManager; |
40 class CTVerifier; | 41 class CTVerifier; |
41 class HostResolver; | 42 class HostResolver; |
42 class HttpAuthHandlerFactory; | 43 class HttpAuthHandlerFactory; |
43 class HttpNetworkSessionPeer; | 44 class HttpNetworkSessionPeer; |
44 class HttpProxyClientSocketPool; | 45 class HttpProxyClientSocketPool; |
45 class HttpResponseBodyDrainer; | 46 class HttpResponseBodyDrainer; |
46 class HttpServerProperties; | 47 class HttpServerProperties; |
47 class NetLog; | 48 class NetLog; |
| 49 class NetworkStreamThrottler; |
48 class ProxyDelegate; | 50 class ProxyDelegate; |
49 class ProxyService; | 51 class ProxyService; |
50 class QuicClock; | 52 class QuicClock; |
51 class QuicCryptoClientStreamFactory; | 53 class QuicCryptoClientStreamFactory; |
52 class QuicServerInfoFactory; | 54 class QuicServerInfoFactory; |
53 class SocketPerformanceWatcherFactory; | 55 class SocketPerformanceWatcherFactory; |
54 class SOCKSClientSocketPool; | 56 class SOCKSClientSocketPool; |
55 class SSLClientSocketPool; | 57 class SSLClientSocketPool; |
56 class SSLConfigService; | 58 class SSLConfigService; |
57 class TransportClientSocketPool; | 59 class TransportClientSocketPool; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 } | 228 } |
227 base::WeakPtr<HttpServerProperties> http_server_properties() { | 229 base::WeakPtr<HttpServerProperties> http_server_properties() { |
228 return http_server_properties_; | 230 return http_server_properties_; |
229 } | 231 } |
230 HttpStreamFactory* http_stream_factory() { | 232 HttpStreamFactory* http_stream_factory() { |
231 return http_stream_factory_.get(); | 233 return http_stream_factory_.get(); |
232 } | 234 } |
233 HttpStreamFactory* http_stream_factory_for_websocket() { | 235 HttpStreamFactory* http_stream_factory_for_websocket() { |
234 return http_stream_factory_for_websocket_.get(); | 236 return http_stream_factory_for_websocket_.get(); |
235 } | 237 } |
| 238 NetworkStreamThrottler* throttler() { |
| 239 return network_stream_throttler_.get(); |
| 240 } |
236 NetLog* net_log() { | 241 NetLog* net_log() { |
237 return net_log_; | 242 return net_log_; |
238 } | 243 } |
239 | 244 |
240 // Creates a Value summary of the state of the socket pools. | 245 // Creates a Value summary of the state of the socket pools. |
241 std::unique_ptr<base::Value> SocketPoolInfoToValue() const; | 246 std::unique_ptr<base::Value> SocketPoolInfoToValue() const; |
242 | 247 |
243 // Creates a Value summary of the state of the SPDY sessions. | 248 // Creates a Value summary of the state of the SPDY sessions. |
244 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const; | 249 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const; |
245 | 250 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 288 |
284 HttpAuthCache http_auth_cache_; | 289 HttpAuthCache http_auth_cache_; |
285 SSLClientAuthCache ssl_client_auth_cache_; | 290 SSLClientAuthCache ssl_client_auth_cache_; |
286 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; | 291 std::unique_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; |
287 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; | 292 std::unique_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; |
288 QuicStreamFactory quic_stream_factory_; | 293 QuicStreamFactory quic_stream_factory_; |
289 SpdySessionPool spdy_session_pool_; | 294 SpdySessionPool spdy_session_pool_; |
290 std::unique_ptr<HttpStreamFactory> http_stream_factory_; | 295 std::unique_ptr<HttpStreamFactory> http_stream_factory_; |
291 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; | 296 std::unique_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; |
292 std::set<HttpResponseBodyDrainer*> response_drainers_; | 297 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 298 std::unique_ptr<NetworkStreamThrottler> network_stream_throttler_; |
293 | 299 |
294 NextProtoVector next_protos_; | 300 NextProtoVector next_protos_; |
295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 301 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
296 | 302 |
297 Params params_; | 303 Params params_; |
298 }; | 304 }; |
299 | 305 |
300 } // namespace net | 306 } // namespace net |
301 | 307 |
302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 308 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |