| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 STATE_TCP_CONNECT_COMPLETE, | 115 STATE_TCP_CONNECT_COMPLETE, |
| 116 STATE_SOCKS_CONNECT, | 116 STATE_SOCKS_CONNECT, |
| 117 STATE_SOCKS_CONNECT_COMPLETE, | 117 STATE_SOCKS_CONNECT_COMPLETE, |
| 118 STATE_TUNNEL_CONNECT, | 118 STATE_TUNNEL_CONNECT, |
| 119 STATE_TUNNEL_CONNECT_COMPLETE, | 119 STATE_TUNNEL_CONNECT_COMPLETE, |
| 120 STATE_SSL_CONNECT, | 120 STATE_SSL_CONNECT, |
| 121 STATE_SSL_CONNECT_COMPLETE, | 121 STATE_SSL_CONNECT_COMPLETE, |
| 122 STATE_NONE, | 122 STATE_NONE, |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 // Starts the SSL connection process. Returns OK on success and | |
| 126 // ERR_IO_PENDING if it cannot immediately service the request. | |
| 127 // Otherwise, it returns a net error code. | |
| 128 virtual int ConnectInternal(); | |
| 129 | |
| 130 void OnIOComplete(int result); | 125 void OnIOComplete(int result); |
| 131 | 126 |
| 132 // Runs the state transition loop. | 127 // Runs the state transition loop. |
| 133 int DoLoop(int result); | 128 int DoLoop(int result); |
| 134 | 129 |
| 135 int DoTCPConnect(); | 130 int DoTCPConnect(); |
| 136 int DoTCPConnectComplete(int result); | 131 int DoTCPConnectComplete(int result); |
| 137 int DoSOCKSConnect(); | 132 int DoSOCKSConnect(); |
| 138 int DoSOCKSConnectComplete(int result); | 133 int DoSOCKSConnectComplete(int result); |
| 139 int DoTunnelConnect(); | 134 int DoTunnelConnect(); |
| 140 int DoTunnelConnectComplete(int result); | 135 int DoTunnelConnectComplete(int result); |
| 141 int DoSSLConnect(); | 136 int DoSSLConnect(); |
| 142 int DoSSLConnectComplete(int result); | 137 int DoSSLConnectComplete(int result); |
| 143 | 138 |
| 139 // Starts the SSL connection process. Returns OK on success and |
| 140 // ERR_IO_PENDING if it cannot immediately service the request. |
| 141 // Otherwise, it returns a net error code. |
| 142 virtual int ConnectInternal(); |
| 143 |
| 144 scoped_refptr<SSLSocketParams> params_; | 144 scoped_refptr<SSLSocketParams> params_; |
| 145 TCPClientSocketPool* const tcp_pool_; | 145 TCPClientSocketPool* const tcp_pool_; |
| 146 SOCKSClientSocketPool* const socks_pool_; | 146 SOCKSClientSocketPool* const socks_pool_; |
| 147 HttpProxyClientSocketPool* const http_proxy_pool_; | 147 HttpProxyClientSocketPool* const http_proxy_pool_; |
| 148 ClientSocketFactory* const client_socket_factory_; | 148 ClientSocketFactory* const client_socket_factory_; |
| 149 HostResolver* const host_resolver_; | 149 HostResolver* const host_resolver_; |
| 150 CertVerifier* const cert_verifier_; | 150 CertVerifier* const cert_verifier_; |
| 151 DnsRRResolver* const dnsrr_resolver_; | 151 DnsRRResolver* const dnsrr_resolver_; |
| 152 DnsCertProvenanceChecker* dns_cert_checker_; | 152 DnsCertProvenanceChecker* dns_cert_checker_; |
| 153 SSLHostInfoFactory* const ssl_host_info_factory_; | 153 SSLHostInfoFactory* const ssl_host_info_factory_; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 const scoped_refptr<SSLConfigService> ssl_config_service_; | 284 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 285 | 285 |
| 286 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 286 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 289 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
| 290 | 290 |
| 291 } // namespace net | 291 } // namespace net |
| 292 | 292 |
| 293 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 293 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |