| 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 |
| 11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "net/base/host_resolver.h" | 14 #include "net/base/host_resolver.h" |
| 15 #include "net/base/ssl_config_service.h" | 15 #include "net/base/ssl_config_service.h" |
| 16 #include "net/http/http_proxy_client_socket.h" | 16 #include "net/http/http_response_info.h" |
| 17 #include "net/http/http_proxy_client_socket_pool.h" | |
| 18 #include "net/proxy/proxy_server.h" | 17 #include "net/proxy/proxy_server.h" |
| 19 #include "net/socket/client_socket_factory.h" | |
| 20 #include "net/socket/client_socket_pool_base.h" | 18 #include "net/socket/client_socket_pool_base.h" |
| 21 #include "net/socket/client_socket_pool_histograms.h" | 19 #include "net/socket/client_socket_pool_histograms.h" |
| 22 #include "net/socket/client_socket_pool.h" | 20 #include "net/socket/client_socket_pool.h" |
| 23 #include "net/socket/socks_client_socket_pool.h" | |
| 24 #include "net/socket/ssl_client_socket.h" | |
| 25 #include "net/socket/tcp_client_socket_pool.h" | |
| 26 | 21 |
| 27 namespace net { | 22 namespace net { |
| 28 | 23 |
| 29 class ClientSocketFactory; | 24 class ClientSocketFactory; |
| 30 class ConnectJobFactory; | 25 class ConnectJobFactory; |
| 26 class HttpProxyClientSocketPool; |
| 27 class HttpProxySocketParams; |
| 28 class SOCKSClientSocketPool; |
| 29 class SOCKSSocketParams; |
| 30 class SSLClientSocket; |
| 31 class TCPClientSocketPool; |
| 32 class TCPSocketParams; |
| 31 | 33 |
| 32 // SSLSocketParams only needs the socket params for the transport socket | 34 // SSLSocketParams only needs the socket params for the transport socket |
| 33 // that will be used (denoted by |proxy|). | 35 // that will be used (denoted by |proxy|). |
| 34 class SSLSocketParams : public base::RefCounted<SSLSocketParams> { | 36 class SSLSocketParams : public base::RefCounted<SSLSocketParams> { |
| 35 public: | 37 public: |
| 36 SSLSocketParams(const scoped_refptr<TCPSocketParams>& tcp_params, | 38 SSLSocketParams(const scoped_refptr<TCPSocketParams>& tcp_params, |
| 37 const scoped_refptr<HttpProxySocketParams>& http_proxy_params, | 39 const scoped_refptr<HttpProxySocketParams>& http_proxy_params, |
| 38 const scoped_refptr<SOCKSSocketParams>& socks_params, | 40 const scoped_refptr<SOCKSSocketParams>& socks_params, |
| 39 ProxyServer::Scheme proxy, | 41 ProxyServer::Scheme proxy, |
| 40 const std::string& hostname, | 42 const std::string& hostname, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 PoolBase base_; | 242 PoolBase base_; |
| 241 | 243 |
| 242 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 244 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
| 243 }; | 245 }; |
| 244 | 246 |
| 245 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 247 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
| 246 | 248 |
| 247 } // namespace net | 249 } // namespace net |
| 248 | 250 |
| 249 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 251 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |