| 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 <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <unordered_set> | 13 #include <unordered_set> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
| 19 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
| 20 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
| 21 #include "net/base/network_stream_throttler.h" |
| 21 #include "net/dns/host_resolver.h" | 22 #include "net/dns/host_resolver.h" |
| 22 #include "net/http/http_auth_cache.h" | 23 #include "net/http/http_auth_cache.h" |
| 23 #include "net/http/http_stream_factory.h" | 24 #include "net/http/http_stream_factory.h" |
| 24 #include "net/quic/quic_stream_factory.h" | 25 #include "net/quic/quic_stream_factory.h" |
| 25 #include "net/socket/next_proto.h" | 26 #include "net/socket/next_proto.h" |
| 26 #include "net/spdy/spdy_session_pool.h" | 27 #include "net/spdy/spdy_session_pool.h" |
| 27 #include "net/ssl/ssl_client_auth_cache.h" | 28 #include "net/ssl/ssl_client_auth_cache.h" |
| 28 | 29 |
| 29 namespace base { | 30 namespace base { |
| 30 class Value; | 31 class Value; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 233 } |
| 233 base::WeakPtr<HttpServerProperties> http_server_properties() { | 234 base::WeakPtr<HttpServerProperties> http_server_properties() { |
| 234 return http_server_properties_; | 235 return http_server_properties_; |
| 235 } | 236 } |
| 236 HttpStreamFactory* http_stream_factory() { | 237 HttpStreamFactory* http_stream_factory() { |
| 237 return http_stream_factory_.get(); | 238 return http_stream_factory_.get(); |
| 238 } | 239 } |
| 239 HttpStreamFactory* http_stream_factory_for_websocket() { | 240 HttpStreamFactory* http_stream_factory_for_websocket() { |
| 240 return http_stream_factory_for_websocket_.get(); | 241 return http_stream_factory_for_websocket_.get(); |
| 241 } | 242 } |
| 243 NetworkStreamThrottler* throttler() { return &network_stream_throttler_; } |
| 242 NetLog* net_log() { | 244 NetLog* net_log() { |
| 243 return net_log_; | 245 return net_log_; |
| 244 } | 246 } |
| 245 | 247 |
| 246 // Creates a Value summary of the state of the socket pools. | 248 // Creates a Value summary of the state of the socket pools. |
| 247 scoped_ptr<base::Value> SocketPoolInfoToValue() const; | 249 scoped_ptr<base::Value> SocketPoolInfoToValue() const; |
| 248 | 250 |
| 249 // Creates a Value summary of the state of the SPDY sessions. | 251 // Creates a Value summary of the state of the SPDY sessions. |
| 250 scoped_ptr<base::Value> SpdySessionPoolInfoToValue() const; | 252 scoped_ptr<base::Value> SpdySessionPoolInfoToValue() const; |
| 251 | 253 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 285 |
| 284 HttpAuthCache http_auth_cache_; | 286 HttpAuthCache http_auth_cache_; |
| 285 SSLClientAuthCache ssl_client_auth_cache_; | 287 SSLClientAuthCache ssl_client_auth_cache_; |
| 286 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; | 288 scoped_ptr<ClientSocketPoolManager> normal_socket_pool_manager_; |
| 287 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; | 289 scoped_ptr<ClientSocketPoolManager> websocket_socket_pool_manager_; |
| 288 QuicStreamFactory quic_stream_factory_; | 290 QuicStreamFactory quic_stream_factory_; |
| 289 SpdySessionPool spdy_session_pool_; | 291 SpdySessionPool spdy_session_pool_; |
| 290 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 292 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 291 scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; | 293 scoped_ptr<HttpStreamFactory> http_stream_factory_for_websocket_; |
| 292 std::set<HttpResponseBodyDrainer*> response_drainers_; | 294 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 295 NetworkStreamThrottler network_stream_throttler_; |
| 293 | 296 |
| 294 NextProtoVector next_protos_; | 297 NextProtoVector next_protos_; |
| 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 298 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 296 | 299 |
| 297 Params params_; | 300 Params params_; |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 } // namespace net | 303 } // namespace net |
| 301 | 304 |
| 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 305 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |