| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 virtual DictionaryValue* GetInfoAsValue(const std::string& name, | 223 virtual DictionaryValue* GetInfoAsValue(const std::string& name, |
| 224 const std::string& type, | 224 const std::string& type, |
| 225 bool include_nested_pools) const; | 225 bool include_nested_pools) const; |
| 226 | 226 |
| 227 virtual base::TimeDelta ConnectionTimeout() const; | 227 virtual base::TimeDelta ConnectionTimeout() const; |
| 228 | 228 |
| 229 virtual ClientSocketPoolHistograms* histograms() const; | 229 virtual ClientSocketPoolHistograms* histograms() const; |
| 230 | 230 |
| 231 private: | 231 private: |
| 232 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; |
| 233 |
| 232 // SSLConfigService::Observer methods: | 234 // SSLConfigService::Observer methods: |
| 233 | 235 |
| 234 // When the user changes the SSL config, we flush all idle sockets so they | 236 // When the user changes the SSL config, we flush all idle sockets so they |
| 235 // won't get re-used. | 237 // won't get re-used. |
| 236 virtual void OnSSLConfigChanged(); | 238 virtual void OnSSLConfigChanged(); |
| 237 | 239 |
| 238 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; | |
| 239 | |
| 240 class SSLConnectJobFactory : public PoolBase::ConnectJobFactory { | 240 class SSLConnectJobFactory : public PoolBase::ConnectJobFactory { |
| 241 public: | 241 public: |
| 242 SSLConnectJobFactory( | 242 SSLConnectJobFactory( |
| 243 TCPClientSocketPool* tcp_pool, | 243 TCPClientSocketPool* tcp_pool, |
| 244 SOCKSClientSocketPool* socks_pool, | 244 SOCKSClientSocketPool* socks_pool, |
| 245 HttpProxyClientSocketPool* http_proxy_pool, | 245 HttpProxyClientSocketPool* http_proxy_pool, |
| 246 ClientSocketFactory* client_socket_factory, | 246 ClientSocketFactory* client_socket_factory, |
| 247 HostResolver* host_resolver, | 247 HostResolver* host_resolver, |
| 248 CertVerifier* cert_verifier, | 248 CertVerifier* cert_verifier, |
| 249 DnsRRResolver* dnsrr_resolver, | 249 DnsRRResolver* dnsrr_resolver, |
| (...skipping 34 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 |