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