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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( | 108 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( |
108 const HostPortPair& http_proxy); | 109 const HostPortPair& http_proxy); |
109 | 110 |
110 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 111 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
111 const HostPortPair& proxy_server); | 112 const HostPortPair& proxy_server); |
112 | 113 |
113 CertVerifier* cert_verifier() { return cert_verifier_; } | 114 CertVerifier* cert_verifier() { return cert_verifier_; } |
114 ProxyService* proxy_service() { return proxy_service_; } | 115 ProxyService* proxy_service() { return proxy_service_; } |
115 SSLConfigService* ssl_config_service() { return ssl_config_service_; } | 116 SSLConfigService* ssl_config_service() { return ssl_config_service_; } |
116 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } | 117 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } |
| 118 HttpPipelinedHostPool* http_pipelined_host_pool() { |
| 119 return &http_pipelined_host_pool_; |
| 120 } |
117 HttpAuthHandlerFactory* http_auth_handler_factory() { | 121 HttpAuthHandlerFactory* http_auth_handler_factory() { |
118 return http_auth_handler_factory_; | 122 return http_auth_handler_factory_; |
119 } | 123 } |
120 NetworkDelegate* network_delegate() { | 124 NetworkDelegate* network_delegate() { |
121 return network_delegate_; | 125 return network_delegate_; |
122 } | 126 } |
123 | 127 |
124 HttpStreamFactory* http_stream_factory() { | 128 HttpStreamFactory* http_stream_factory() { |
125 return http_stream_factory_.get(); | 129 return http_stream_factory_.get(); |
126 } | 130 } |
(...skipping 27 matching lines...) Expand all Loading... |
154 // Not const since it's modified by HttpNetworkSessionPeer for testing. | 158 // Not const since it's modified by HttpNetworkSessionPeer for testing. |
155 ProxyService* proxy_service_; | 159 ProxyService* proxy_service_; |
156 const scoped_refptr<SSLConfigService> ssl_config_service_; | 160 const scoped_refptr<SSLConfigService> ssl_config_service_; |
157 | 161 |
158 HttpAuthCache http_auth_cache_; | 162 HttpAuthCache http_auth_cache_; |
159 SSLClientAuthCache ssl_client_auth_cache_; | 163 SSLClientAuthCache ssl_client_auth_cache_; |
160 HttpAlternateProtocols alternate_protocols_; | 164 HttpAlternateProtocols alternate_protocols_; |
161 ClientSocketPoolManager socket_pool_manager_; | 165 ClientSocketPoolManager socket_pool_manager_; |
162 SpdySessionPool spdy_session_pool_; | 166 SpdySessionPool spdy_session_pool_; |
163 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 167 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
| 168 HttpPipelinedHostPool http_pipelined_host_pool_; |
164 std::set<HttpResponseBodyDrainer*> response_drainers_; | 169 std::set<HttpResponseBodyDrainer*> response_drainers_; |
165 }; | 170 }; |
166 | 171 |
167 } // namespace net | 172 } // namespace net |
168 | 173 |
169 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 174 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |