OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 20 matching lines...) Expand all Loading... |
31 class ClientSocketFactory; | 31 class ClientSocketFactory; |
32 class DnsRRResolver; | 32 class DnsRRResolver; |
33 class HttpAuthHandlerFactory; | 33 class HttpAuthHandlerFactory; |
34 class HttpNetworkDelegate; | 34 class HttpNetworkDelegate; |
35 class HttpNetworkSessionPeer; | 35 class HttpNetworkSessionPeer; |
36 class HttpProxyClientSocketPool; | 36 class HttpProxyClientSocketPool; |
37 class HttpResponseBodyDrainer; | 37 class HttpResponseBodyDrainer; |
38 class SpdySessionPool; | 38 class SpdySessionPool; |
39 class SOCKSClientSocketPool; | 39 class SOCKSClientSocketPool; |
40 class SSLClientSocketPool; | 40 class SSLClientSocketPool; |
41 class SSLHostInfoFactory; | |
42 class TCPClientSocketPool; | 41 class TCPClientSocketPool; |
43 | 42 |
44 // This class holds session objects used by HttpNetworkTransaction objects. | 43 // This class holds session objects used by HttpNetworkTransaction objects. |
45 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, | 44 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession>, |
46 public NonThreadSafe { | 45 public NonThreadSafe { |
47 public: | 46 public: |
48 HttpNetworkSession( | 47 HttpNetworkSession( |
49 HostResolver* host_resolver, | 48 HostResolver* host_resolver, |
50 DnsRRResolver* dnsrr_resolver, | 49 DnsRRResolver* dnsrr_resolver, |
51 SSLHostInfoFactory* ssl_host_info_factory, | |
52 ProxyService* proxy_service, | 50 ProxyService* proxy_service, |
53 ClientSocketFactory* client_socket_factory, | 51 ClientSocketFactory* client_socket_factory, |
54 SSLConfigService* ssl_config_service, | 52 SSLConfigService* ssl_config_service, |
55 SpdySessionPool* spdy_session_pool, | 53 SpdySessionPool* spdy_session_pool, |
56 HttpAuthHandlerFactory* http_auth_handler_factory, | 54 HttpAuthHandlerFactory* http_auth_handler_factory, |
57 HttpNetworkDelegate* network_delegate, | 55 HttpNetworkDelegate* network_delegate, |
58 NetLog* net_log); | 56 NetLog* net_log); |
59 | 57 |
60 HttpAuthCache* auth_cache() { return &auth_cache_; } | 58 HttpAuthCache* auth_cache() { return &auth_cache_; } |
61 SSLClientAuthCache* ssl_client_auth_cache() { | 59 SSLClientAuthCache* ssl_client_auth_cache() { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 HttpAuthHandlerFactory* http_auth_handler_factory_; | 156 HttpAuthHandlerFactory* http_auth_handler_factory_; |
159 HttpNetworkDelegate* const network_delegate_; | 157 HttpNetworkDelegate* const network_delegate_; |
160 NetLog* net_log_; | 158 NetLog* net_log_; |
161 SpdySettingsStorage spdy_settings_; | 159 SpdySettingsStorage spdy_settings_; |
162 std::set<HttpResponseBodyDrainer*> response_drainers_; | 160 std::set<HttpResponseBodyDrainer*> response_drainers_; |
163 }; | 161 }; |
164 | 162 |
165 } // namespace net | 163 } // namespace net |
166 | 164 |
167 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 165 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |