| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // This class holds session objects used by HttpNetworkTransaction objects. | 31 // This class holds session objects used by HttpNetworkTransaction objects. |
| 32 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { | 32 class HttpNetworkSession : public base::RefCounted<HttpNetworkSession> { |
| 33 public: | 33 public: |
| 34 HttpNetworkSession( | 34 HttpNetworkSession( |
| 35 NetworkChangeNotifier* network_change_notifier, | 35 NetworkChangeNotifier* network_change_notifier, |
| 36 HostResolver* host_resolver, | 36 HostResolver* host_resolver, |
| 37 ProxyService* proxy_service, | 37 ProxyService* proxy_service, |
| 38 ClientSocketFactory* client_socket_factory, | 38 ClientSocketFactory* client_socket_factory, |
| 39 SSLConfigService* ssl_config_service, | 39 SSLConfigService* ssl_config_service, |
| 40 SpdySessionPool* spdy_session_pool, | 40 SpdySessionPool* spdy_session_pool, |
| 41 HttpAuthHandlerFactory* http_auth_handler_factory); | 41 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 42 NetLog* net_log); |
| 42 | 43 |
| 43 HttpAuthCache* auth_cache() { return &auth_cache_; } | 44 HttpAuthCache* auth_cache() { return &auth_cache_; } |
| 44 SSLClientAuthCache* ssl_client_auth_cache() { | 45 SSLClientAuthCache* ssl_client_auth_cache() { |
| 45 return &ssl_client_auth_cache_; | 46 return &ssl_client_auth_cache_; |
| 46 } | 47 } |
| 47 | 48 |
| 48 const HttpAlternateProtocols& alternate_protocols() const { | 49 const HttpAlternateProtocols& alternate_protocols() const { |
| 49 return alternate_protocols_; | 50 return alternate_protocols_; |
| 50 } | 51 } |
| 51 HttpAlternateProtocols* mutable_alternate_protocols() { | 52 HttpAlternateProtocols* mutable_alternate_protocols() { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 scoped_refptr<ClientSocketPoolHistograms> socks_pool_histograms_; | 117 scoped_refptr<ClientSocketPoolHistograms> socks_pool_histograms_; |
| 117 scoped_refptr<TCPClientSocketPool> tcp_socket_pool_; | 118 scoped_refptr<TCPClientSocketPool> tcp_socket_pool_; |
| 118 HTTPProxySocketPoolMap http_proxy_socket_pool_; | 119 HTTPProxySocketPoolMap http_proxy_socket_pool_; |
| 119 SOCKSSocketPoolMap socks_socket_pool_; | 120 SOCKSSocketPoolMap socks_socket_pool_; |
| 120 ClientSocketFactory* socket_factory_; | 121 ClientSocketFactory* socket_factory_; |
| 121 scoped_refptr<HostResolver> host_resolver_; | 122 scoped_refptr<HostResolver> host_resolver_; |
| 122 scoped_refptr<ProxyService> proxy_service_; | 123 scoped_refptr<ProxyService> proxy_service_; |
| 123 scoped_refptr<SSLConfigService> ssl_config_service_; | 124 scoped_refptr<SSLConfigService> ssl_config_service_; |
| 124 scoped_refptr<SpdySessionPool> spdy_session_pool_; | 125 scoped_refptr<SpdySessionPool> spdy_session_pool_; |
| 125 HttpAuthHandlerFactory* http_auth_handler_factory_; | 126 HttpAuthHandlerFactory* http_auth_handler_factory_; |
| 127 NetLog* net_log_; |
| 126 SpdySettingsStorage spdy_settings_; | 128 SpdySettingsStorage spdy_settings_; |
| 127 }; | 129 }; |
| 128 | 130 |
| 129 } // namespace net | 131 } // namespace net |
| 130 | 132 |
| 131 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 133 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |