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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "net/base/privacy_mode.h" | 13 #include "net/base/privacy_mode.h" |
14 #include "net/dns/host_resolver.h" | 14 #include "net/dns/host_resolver.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/client_socket_pool_histograms.h" | 18 #include "net/socket/client_socket_pool_histograms.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 CertVerifier; | 24 class CertVerifier; |
25 class ClientSocketFactory; | 25 class ClientSocketFactory; |
26 class ConnectJobFactory; | 26 class ConnectJobFactory; |
| 27 class CTVerifier; |
27 class HostPortPair; | 28 class HostPortPair; |
28 class HttpProxyClientSocketPool; | 29 class HttpProxyClientSocketPool; |
29 class HttpProxySocketParams; | 30 class HttpProxySocketParams; |
30 class SOCKSClientSocketPool; | 31 class SOCKSClientSocketPool; |
31 class SOCKSSocketParams; | 32 class SOCKSSocketParams; |
32 class SSLClientSocket; | 33 class SSLClientSocket; |
33 class TransportClientSocketPool; | 34 class TransportClientSocketPool; |
34 class TransportSecurityState; | 35 class TransportSecurityState; |
35 class TransportSocketParams; | 36 class TransportSocketParams; |
36 | 37 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Only the pools that will be used are required. i.e. if you never | 183 // Only the pools that will be used are required. i.e. if you never |
183 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. | 184 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. |
184 SSLClientSocketPool( | 185 SSLClientSocketPool( |
185 int max_sockets, | 186 int max_sockets, |
186 int max_sockets_per_group, | 187 int max_sockets_per_group, |
187 ClientSocketPoolHistograms* histograms, | 188 ClientSocketPoolHistograms* histograms, |
188 HostResolver* host_resolver, | 189 HostResolver* host_resolver, |
189 CertVerifier* cert_verifier, | 190 CertVerifier* cert_verifier, |
190 ServerBoundCertService* server_bound_cert_service, | 191 ServerBoundCertService* server_bound_cert_service, |
191 TransportSecurityState* transport_security_state, | 192 TransportSecurityState* transport_security_state, |
| 193 CTVerifier* cert_transparency_verifier, |
192 const std::string& ssl_session_cache_shard, | 194 const std::string& ssl_session_cache_shard, |
193 ClientSocketFactory* client_socket_factory, | 195 ClientSocketFactory* client_socket_factory, |
194 TransportClientSocketPool* transport_pool, | 196 TransportClientSocketPool* transport_pool, |
195 SOCKSClientSocketPool* socks_pool, | 197 SOCKSClientSocketPool* socks_pool, |
196 HttpProxyClientSocketPool* http_proxy_pool, | 198 HttpProxyClientSocketPool* http_proxy_pool, |
197 SSLConfigService* ssl_config_service, | 199 SSLConfigService* ssl_config_service, |
198 NetLog* net_log); | 200 NetLog* net_log); |
199 | 201 |
200 virtual ~SSLClientSocketPool(); | 202 virtual ~SSLClientSocketPool(); |
201 | 203 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 HttpProxyClientSocketPool* const http_proxy_pool_; | 301 HttpProxyClientSocketPool* const http_proxy_pool_; |
300 PoolBase base_; | 302 PoolBase base_; |
301 const scoped_refptr<SSLConfigService> ssl_config_service_; | 303 const scoped_refptr<SSLConfigService> ssl_config_service_; |
302 | 304 |
303 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 305 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
304 }; | 306 }; |
305 | 307 |
306 } // namespace net | 308 } // namespace net |
307 | 309 |
308 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 310 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |