| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_api.h" | 14 #include "net/base/net_api.h" |
| 15 #include "net/base/ssl_client_auth_cache.h" | 15 #include "net/base/ssl_client_auth_cache.h" |
| 16 #include "net/http/http_alternate_protocols.h" | 16 #include "net/http/http_alternate_protocols.h" |
| 17 #include "net/http/http_auth_cache.h" | 17 #include "net/http/http_auth_cache.h" |
| 18 #include "net/http/http_pipelined_host_pool.h" |
| 18 #include "net/http/http_stream_factory.h" | 19 #include "net/http/http_stream_factory.h" |
| 19 #include "net/socket/client_socket_pool_manager.h" | 20 #include "net/socket/client_socket_pool_manager.h" |
| 20 #include "net/spdy/spdy_session_pool.h" | 21 #include "net/spdy/spdy_session_pool.h" |
| 21 #include "net/spdy/spdy_settings_storage.h" | 22 #include "net/spdy/spdy_settings_storage.h" |
| 22 | 23 |
| 23 namespace base { | 24 namespace base { |
| 24 class Value; | 25 class Value; |
| 25 } | 26 } |
| 26 | 27 |
| 27 namespace net { | 28 namespace net { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( | 106 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( |
| 106 const HostPortPair& http_proxy); | 107 const HostPortPair& http_proxy); |
| 107 | 108 |
| 108 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 109 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
| 109 const HostPortPair& proxy_server); | 110 const HostPortPair& proxy_server); |
| 110 | 111 |
| 111 CertVerifier* cert_verifier() { return cert_verifier_; } | 112 CertVerifier* cert_verifier() { return cert_verifier_; } |
| 112 ProxyService* proxy_service() { return proxy_service_; } | 113 ProxyService* proxy_service() { return proxy_service_; } |
| 113 SSLConfigService* ssl_config_service() { return ssl_config_service_; } | 114 SSLConfigService* ssl_config_service() { return ssl_config_service_; } |
| 114 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } | 115 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } |
| 116 HttpPipelinedHostPool* http_pipelined_host_pool() { |
| 117 return &http_pipelined_host_pool_; |
| 118 } |
| 115 HttpAuthHandlerFactory* http_auth_handler_factory() { | 119 HttpAuthHandlerFactory* http_auth_handler_factory() { |
| 116 return http_auth_handler_factory_; | 120 return http_auth_handler_factory_; |
| 117 } | 121 } |
| 118 NetworkDelegate* network_delegate() { | 122 NetworkDelegate* network_delegate() { |
| 119 return network_delegate_; | 123 return network_delegate_; |
| 120 } | 124 } |
| 121 | 125 |
| 122 HttpStreamFactory* http_stream_factory() { | 126 HttpStreamFactory* http_stream_factory() { |
| 123 return http_stream_factory_.get(); | 127 return http_stream_factory_.get(); |
| 124 } | 128 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 152 // Not const since it's modified by HttpNetworkSessionPeer for testing. | 156 // Not const since it's modified by HttpNetworkSessionPeer for testing. |
| 153 ProxyService* proxy_service_; | 157 ProxyService* proxy_service_; |
| 154 const scoped_refptr<SSLConfigService> ssl_config_service_; | 158 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 155 | 159 |
| 156 HttpAuthCache http_auth_cache_; | 160 HttpAuthCache http_auth_cache_; |
| 157 SSLClientAuthCache ssl_client_auth_cache_; | 161 SSLClientAuthCache ssl_client_auth_cache_; |
| 158 HttpAlternateProtocols alternate_protocols_; | 162 HttpAlternateProtocols alternate_protocols_; |
| 159 ClientSocketPoolManager socket_pool_manager_; | 163 ClientSocketPoolManager socket_pool_manager_; |
| 160 SpdySessionPool spdy_session_pool_; | 164 SpdySessionPool spdy_session_pool_; |
| 161 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 165 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 166 HttpPipelinedHostPool http_pipelined_host_pool_; |
| 162 std::set<HttpResponseBodyDrainer*> response_drainers_; | 167 std::set<HttpResponseBodyDrainer*> response_drainers_; |
| 163 }; | 168 }; |
| 164 | 169 |
| 165 } // namespace net | 170 } // namespace net |
| 166 | 171 |
| 167 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 172 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |