| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class CertVerifier; | 26 class CertVerifier; |
| 27 class ClientSocketFactory; | 27 class ClientSocketFactory; |
| 28 class ConnectJobFactory; | 28 class ConnectJobFactory; |
| 29 class CTVerifier; | 29 class CTVerifier; |
| 30 class HostPortPair; | 30 class HostPortPair; |
| 31 class HttpProxyClientSocketPool; | 31 class HttpProxyClientSocketPool; |
| 32 class HttpProxySocketParams; | 32 class HttpProxySocketParams; |
| 33 class SOCKSClientSocketPool; | 33 class SOCKSClientSocketPool; |
| 34 class SOCKSSocketParams; | 34 class SOCKSSocketParams; |
| 35 class SSLClientSocket; | 35 class SSLClientSocket; |
| 36 class SSLSocketConfigService; |
| 36 class TransportClientSocketPool; | 37 class TransportClientSocketPool; |
| 37 class TransportSecurityState; | 38 class TransportSecurityState; |
| 38 class TransportSocketParams; | 39 class TransportSocketParams; |
| 39 | 40 |
| 40 class NET_EXPORT_PRIVATE SSLSocketParams | 41 class NET_EXPORT_PRIVATE SSLSocketParams |
| 41 : public base::RefCounted<SSLSocketParams> { | 42 : public base::RefCounted<SSLSocketParams> { |
| 42 public: | 43 public: |
| 43 enum ConnectionType { DIRECT, SOCKS_PROXY, HTTP_PROXY }; | 44 enum ConnectionType { DIRECT, SOCKS_PROXY, HTTP_PROXY }; |
| 44 | 45 |
| 45 // Exactly one of |direct_params|, |socks_proxy_params|, and | 46 // Exactly one of |direct_params|, |socks_proxy_params|, and |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 TransportSecurityState* transport_security_state, | 284 TransportSecurityState* transport_security_state, |
| 284 CTVerifier* cert_transparency_verifier, | 285 CTVerifier* cert_transparency_verifier, |
| 285 CertPolicyEnforcer* cert_policy_enforcer, | 286 CertPolicyEnforcer* cert_policy_enforcer, |
| 286 const std::string& ssl_session_cache_shard, | 287 const std::string& ssl_session_cache_shard, |
| 287 ClientSocketFactory* client_socket_factory, | 288 ClientSocketFactory* client_socket_factory, |
| 288 TransportClientSocketPool* transport_pool, | 289 TransportClientSocketPool* transport_pool, |
| 289 SOCKSClientSocketPool* socks_pool, | 290 SOCKSClientSocketPool* socks_pool, |
| 290 HttpProxyClientSocketPool* http_proxy_pool, | 291 HttpProxyClientSocketPool* http_proxy_pool, |
| 291 SSLConfigService* ssl_config_service, | 292 SSLConfigService* ssl_config_service, |
| 292 bool enable_ssl_connect_job_waiting, | 293 bool enable_ssl_connect_job_waiting, |
| 293 NetLog* net_log); | 294 NetLog* net_log, |
| 295 SSLSocketConfigService* ssl_socket_config_service); |
| 294 | 296 |
| 295 ~SSLClientSocketPool() override; | 297 ~SSLClientSocketPool() override; |
| 296 | 298 |
| 297 // ClientSocketPool implementation. | 299 // ClientSocketPool implementation. |
| 298 int RequestSocket(const std::string& group_name, | 300 int RequestSocket(const std::string& group_name, |
| 299 const void* connect_params, | 301 const void* connect_params, |
| 300 RequestPriority priority, | 302 RequestPriority priority, |
| 301 ClientSocketHandle* handle, | 303 ClientSocketHandle* handle, |
| 302 const CompletionCallback& callback, | 304 const CompletionCallback& callback, |
| 303 const BoundNetLog& net_log) override; | 305 const BoundNetLog& net_log) override; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 const scoped_refptr<SSLConfigService> ssl_config_service_; | 404 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 403 MessengerMap messenger_map_; | 405 MessengerMap messenger_map_; |
| 404 bool enable_ssl_connect_job_waiting_; | 406 bool enable_ssl_connect_job_waiting_; |
| 405 | 407 |
| 406 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 408 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
| 407 }; | 409 }; |
| 408 | 410 |
| 409 } // namespace net | 411 } // namespace net |
| 410 | 412 |
| 411 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 413 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |