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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
250 public: | 250 public: |
251 SSLConnectJobFactory( | 251 SSLConnectJobFactory( |
252 TransportClientSocketPool* transport_pool, | 252 TransportClientSocketPool* transport_pool, |
253 SOCKSClientSocketPool* socks_pool, | 253 SOCKSClientSocketPool* socks_pool, |
254 HttpProxyClientSocketPool* http_proxy_pool, | 254 HttpProxyClientSocketPool* http_proxy_pool, |
255 ClientSocketFactory* client_socket_factory, | 255 ClientSocketFactory* client_socket_factory, |
256 HostResolver* host_resolver, | 256 HostResolver* host_resolver, |
257 const SSLClientSocketContext& context, | 257 const SSLClientSocketContext& context, |
258 NetLog* net_log); | 258 NetLog* net_log); |
259 | 259 |
260 virtual ~SSLConnectJobFactory() {} | 260 virtual ~SSLConnectJobFactory() {} |
mmenke
2012/08/09 15:13:35
Should empty virtual destructors be de-inlined as
hans
2012/08/09 15:35:42
The plugin didn't complain, so this is fine.
| |
261 | 261 |
262 // ClientSocketPoolBase::ConnectJobFactory methods. | 262 // ClientSocketPoolBase::ConnectJobFactory methods. |
263 virtual ConnectJob* NewConnectJob( | 263 virtual ConnectJob* NewConnectJob( |
264 const std::string& group_name, | 264 const std::string& group_name, |
265 const PoolBase::Request& request, | 265 const PoolBase::Request& request, |
266 ConnectJob::Delegate* delegate) const OVERRIDE; | 266 ConnectJob::Delegate* delegate) const OVERRIDE; |
267 | 267 |
268 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE { | 268 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
269 return timeout_; | |
270 } | |
271 | 269 |
272 private: | 270 private: |
273 TransportClientSocketPool* const transport_pool_; | 271 TransportClientSocketPool* const transport_pool_; |
274 SOCKSClientSocketPool* const socks_pool_; | 272 SOCKSClientSocketPool* const socks_pool_; |
275 HttpProxyClientSocketPool* const http_proxy_pool_; | 273 HttpProxyClientSocketPool* const http_proxy_pool_; |
276 ClientSocketFactory* const client_socket_factory_; | 274 ClientSocketFactory* const client_socket_factory_; |
277 HostResolver* const host_resolver_; | 275 HostResolver* const host_resolver_; |
278 const SSLClientSocketContext context_; | 276 const SSLClientSocketContext context_; |
279 base::TimeDelta timeout_; | 277 base::TimeDelta timeout_; |
280 NetLog* net_log_; | 278 NetLog* net_log_; |
281 | 279 |
282 DISALLOW_COPY_AND_ASSIGN(SSLConnectJobFactory); | 280 DISALLOW_COPY_AND_ASSIGN(SSLConnectJobFactory); |
283 }; | 281 }; |
284 | 282 |
285 TransportClientSocketPool* const transport_pool_; | 283 TransportClientSocketPool* const transport_pool_; |
286 SOCKSClientSocketPool* const socks_pool_; | 284 SOCKSClientSocketPool* const socks_pool_; |
287 HttpProxyClientSocketPool* const http_proxy_pool_; | 285 HttpProxyClientSocketPool* const http_proxy_pool_; |
288 PoolBase base_; | 286 PoolBase base_; |
289 const scoped_refptr<SSLConfigService> ssl_config_service_; | 287 const scoped_refptr<SSLConfigService> ssl_config_service_; |
290 | 288 |
291 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 289 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
292 }; | 290 }; |
293 | 291 |
294 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 292 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
295 | 293 |
296 } // namespace net | 294 } // namespace net |
297 | 295 |
298 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 296 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |