OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 22 matching lines...) Expand all Loading... |
33 class SOCKSClientSocketPool; | 33 class SOCKSClientSocketPool; |
34 class SOCKSSocketParams; | 34 class SOCKSSocketParams; |
35 class SSLClientSocket; | 35 class SSLClientSocket; |
36 class SSLHostInfoFactory; | 36 class SSLHostInfoFactory; |
37 class TransportSocketParams; | 37 class TransportSocketParams; |
38 class TransportClientSocketPool; | 38 class TransportClientSocketPool; |
39 struct RRResponse; | 39 struct RRResponse; |
40 | 40 |
41 // SSLSocketParams only needs the socket params for the transport socket | 41 // SSLSocketParams only needs the socket params for the transport socket |
42 // that will be used (denoted by |proxy|). | 42 // that will be used (denoted by |proxy|). |
43 class NET_TEST SSLSocketParams : public base::RefCounted<SSLSocketParams> { | 43 class NET_EXPORT_PRIVATE SSLSocketParams |
| 44 : public base::RefCounted<SSLSocketParams> { |
44 public: | 45 public: |
45 SSLSocketParams(const scoped_refptr<TransportSocketParams>& transport_params, | 46 SSLSocketParams(const scoped_refptr<TransportSocketParams>& transport_params, |
46 const scoped_refptr<SOCKSSocketParams>& socks_params, | 47 const scoped_refptr<SOCKSSocketParams>& socks_params, |
47 const scoped_refptr<HttpProxySocketParams>& http_proxy_params, | 48 const scoped_refptr<HttpProxySocketParams>& http_proxy_params, |
48 ProxyServer::Scheme proxy, | 49 ProxyServer::Scheme proxy, |
49 const HostPortPair& host_and_port, | 50 const HostPortPair& host_and_port, |
50 const SSLConfig& ssl_config, | 51 const SSLConfig& ssl_config, |
51 int load_flags, | 52 int load_flags, |
52 bool force_spdy_over_ssl, | 53 bool force_spdy_over_ssl, |
53 bool want_spdy_over_npn); | 54 bool want_spdy_over_npn); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 scoped_ptr<SSLHostInfo> ssl_host_info_; | 159 scoped_ptr<SSLHostInfo> ssl_host_info_; |
159 | 160 |
160 // The time the DoSSLConnect() method was called. | 161 // The time the DoSSLConnect() method was called. |
161 base::TimeTicks ssl_connect_start_time_; | 162 base::TimeTicks ssl_connect_start_time_; |
162 | 163 |
163 HttpResponseInfo error_response_info_; | 164 HttpResponseInfo error_response_info_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(SSLConnectJob); | 166 DISALLOW_COPY_AND_ASSIGN(SSLConnectJob); |
166 }; | 167 }; |
167 | 168 |
168 class NET_TEST SSLClientSocketPool : public ClientSocketPool, | 169 class NET_EXPORT_PRIVATE SSLClientSocketPool |
169 public SSLConfigService::Observer { | 170 : public ClientSocketPool, |
| 171 public SSLConfigService::Observer { |
170 public: | 172 public: |
171 // Only the pools that will be used are required. i.e. if you never | 173 // Only the pools that will be used are required. i.e. if you never |
172 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. | 174 // try to create an SSL over SOCKS socket, |socks_pool| may be NULL. |
173 SSLClientSocketPool( | 175 SSLClientSocketPool( |
174 int max_sockets, | 176 int max_sockets, |
175 int max_sockets_per_group, | 177 int max_sockets_per_group, |
176 ClientSocketPoolHistograms* histograms, | 178 ClientSocketPoolHistograms* histograms, |
177 HostResolver* host_resolver, | 179 HostResolver* host_resolver, |
178 CertVerifier* cert_verifier, | 180 CertVerifier* cert_verifier, |
179 OriginBoundCertService* origin_bound_cert_service, | 181 OriginBoundCertService* origin_bound_cert_service, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 const scoped_refptr<SSLConfigService> ssl_config_service_; | 281 const scoped_refptr<SSLConfigService> ssl_config_service_; |
280 | 282 |
281 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 283 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
282 }; | 284 }; |
283 | 285 |
284 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 286 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
285 | 287 |
286 } // namespace net | 288 } // namespace net |
287 | 289 |
288 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 290 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |