OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "net/base/privacy_mode.h" | 14 #include "net/base/privacy_mode.h" |
15 #include "net/http/http_response_info.h" | 15 #include "net/http/http_response_info.h" |
16 #include "net/socket/client_socket_pool.h" | 16 #include "net/socket/client_socket_pool.h" |
17 #include "net/socket/client_socket_pool_base.h" | 17 #include "net/socket/client_socket_pool_base.h" |
18 #include "net/socket/connection_attempts.h" | 18 #include "net/socket/connection_attempts.h" |
19 #include "net/socket/ssl_client_socket.h" | 19 #include "net/socket/ssl_client_socket.h" |
20 #include "net/ssl/ssl_config_service.h" | 20 #include "net/ssl/ssl_config_service.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 class CertPolicyEnforcer; | 24 class CTPolicyEnforcer; |
25 class CertVerifier; | 25 class CertVerifier; |
26 class ClientSocketFactory; | 26 class ClientSocketFactory; |
27 class ConnectJobFactory; | 27 class ConnectJobFactory; |
28 class CTVerifier; | 28 class CTVerifier; |
29 class HostPortPair; | 29 class HostPortPair; |
30 class HttpProxyClientSocketPool; | 30 class HttpProxyClientSocketPool; |
31 class HttpProxySocketParams; | 31 class HttpProxySocketParams; |
32 class SOCKSClientSocketPool; | 32 class SOCKSClientSocketPool; |
33 class SOCKSSocketParams; | 33 class SOCKSSocketParams; |
34 class SSLClientSocket; | 34 class SSLClientSocket; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 typedef SSLSocketParams SocketParams; | 183 typedef SSLSocketParams SocketParams; |
184 | 184 |
185 // Only the pools that will be used are required. i.e. if you never | 185 // Only the pools that will be used are required. i.e. if you never |
186 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. | 186 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. |
187 SSLClientSocketPool(int max_sockets, | 187 SSLClientSocketPool(int max_sockets, |
188 int max_sockets_per_group, | 188 int max_sockets_per_group, |
189 CertVerifier* cert_verifier, | 189 CertVerifier* cert_verifier, |
190 ChannelIDService* channel_id_service, | 190 ChannelIDService* channel_id_service, |
191 TransportSecurityState* transport_security_state, | 191 TransportSecurityState* transport_security_state, |
192 CTVerifier* cert_transparency_verifier, | 192 CTVerifier* cert_transparency_verifier, |
193 CertPolicyEnforcer* cert_policy_enforcer, | 193 CTPolicyEnforcer* ct_policy_enforcer, |
194 const std::string& ssl_session_cache_shard, | 194 const std::string& ssl_session_cache_shard, |
195 ClientSocketFactory* client_socket_factory, | 195 ClientSocketFactory* client_socket_factory, |
196 TransportClientSocketPool* transport_pool, | 196 TransportClientSocketPool* transport_pool, |
197 SOCKSClientSocketPool* socks_pool, | 197 SOCKSClientSocketPool* socks_pool, |
198 HttpProxyClientSocketPool* http_proxy_pool, | 198 HttpProxyClientSocketPool* http_proxy_pool, |
199 SSLConfigService* ssl_config_service, | 199 SSLConfigService* ssl_config_service, |
200 NetLog* net_log); | 200 NetLog* net_log); |
201 | 201 |
202 ~SSLClientSocketPool() override; | 202 ~SSLClientSocketPool() override; |
203 | 203 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 HttpProxyClientSocketPool* const http_proxy_pool_; | 295 HttpProxyClientSocketPool* const http_proxy_pool_; |
296 PoolBase base_; | 296 PoolBase base_; |
297 const scoped_refptr<SSLConfigService> ssl_config_service_; | 297 const scoped_refptr<SSLConfigService> ssl_config_service_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 299 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace net | 302 } // namespace net |
303 | 303 |
304 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 304 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |