| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
| 13 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
| 14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 15 #include "net/base/ssl_client_auth_cache.h" | 15 #include "net/base/ssl_client_auth_cache.h" |
| 16 #include "net/http/http_auth_cache.h" | 16 #include "net/http/http_auth_cache.h" |
| 17 #include "net/http/http_stream_factory.h" | 17 #include "net/http/http_stream_factory.h" |
| 18 #include "net/socket/client_socket_pool_manager.h" | |
| 19 #include "net/spdy/spdy_session_pool.h" | 18 #include "net/spdy/spdy_session_pool.h" |
| 20 #include "net/spdy/spdy_settings_storage.h" | 19 #include "net/spdy/spdy_settings_storage.h" |
| 21 | 20 |
| 22 namespace base { | 21 namespace base { |
| 23 class Value; | 22 class Value; |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace net { | 25 namespace net { |
| 27 | 26 |
| 28 class CertVerifier; | 27 class CertVerifier; |
| 29 class ClientSocketFactory; | 28 class ClientSocketFactory; |
| 29 class ClientSocketPoolManager; |
| 30 class HostResolver; | 30 class HostResolver; |
| 31 class HttpAuthHandlerFactory; | 31 class HttpAuthHandlerFactory; |
| 32 class HttpNetworkSessionPeer; | 32 class HttpNetworkSessionPeer; |
| 33 class HttpProxyClientSocketPool; | 33 class HttpProxyClientSocketPool; |
| 34 class HttpResponseBodyDrainer; | 34 class HttpResponseBodyDrainer; |
| 35 class HttpServerProperties; | 35 class HttpServerProperties; |
| 36 class NetLog; | 36 class NetLog; |
| 37 class NetworkDelegate; | 37 class NetworkDelegate; |
| 38 class ServerBoundCertService; | 38 class ServerBoundCertService; |
| 39 class ProxyService; | 39 class ProxyService; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 SSLConfigService* ssl_config_service; | 76 SSLConfigService* ssl_config_service; |
| 77 HttpAuthHandlerFactory* http_auth_handler_factory; | 77 HttpAuthHandlerFactory* http_auth_handler_factory; |
| 78 NetworkDelegate* network_delegate; | 78 NetworkDelegate* network_delegate; |
| 79 HttpServerProperties* http_server_properties; | 79 HttpServerProperties* http_server_properties; |
| 80 NetLog* net_log; | 80 NetLog* net_log; |
| 81 bool force_http_pipelining; | 81 bool force_http_pipelining; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 enum SocketPoolType { | 84 enum SocketPoolType { |
| 85 NORMAL_SOCKET_POOL, | 85 NORMAL_SOCKET_POOL, |
| 86 WEBSOCKET_SOCKET_POOL | 86 WEBSOCKET_SOCKET_POOL, |
| 87 NUM_SOCKET_POOL_TYPES |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 explicit HttpNetworkSession(const Params& params); | 90 explicit HttpNetworkSession(const Params& params); |
| 90 | 91 |
| 91 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } | 92 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } |
| 92 SSLClientAuthCache* ssl_client_auth_cache() { | 93 SSLClientAuthCache* ssl_client_auth_cache() { |
| 93 return &ssl_client_auth_cache_; | 94 return &ssl_client_auth_cache_; |
| 94 } | 95 } |
| 95 | 96 |
| 96 void AddResponseDrainer(HttpResponseBodyDrainer* drainer); | 97 void AddResponseDrainer(HttpResponseBodyDrainer* drainer); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 SpdySessionPool spdy_session_pool_; | 172 SpdySessionPool spdy_session_pool_; |
| 172 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 173 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 173 std::set<HttpResponseBodyDrainer*> response_drainers_; | 174 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 174 | 175 |
| 175 Params params_; | 176 Params params_; |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } // namespace net | 179 } // namespace net |
| 179 | 180 |
| 180 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 181 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |