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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 SSLClientSocketPool* ssl_pool, | 245 SSLClientSocketPool* ssl_pool, |
246 HostResolver* host_resolver, | 246 HostResolver* host_resolver, |
247 NetLog* net_log); | 247 NetLog* net_log); |
248 | 248 |
249 // ClientSocketPoolBase::ConnectJobFactory methods. | 249 // ClientSocketPoolBase::ConnectJobFactory methods. |
250 virtual ConnectJob* NewConnectJob( | 250 virtual ConnectJob* NewConnectJob( |
251 const std::string& group_name, | 251 const std::string& group_name, |
252 const PoolBase::Request& request, | 252 const PoolBase::Request& request, |
253 ConnectJob::Delegate* delegate) const OVERRIDE; | 253 ConnectJob::Delegate* delegate) const OVERRIDE; |
254 | 254 |
255 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE { | 255 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
256 return timeout_; | |
257 } | |
258 | 256 |
259 private: | 257 private: |
260 TransportClientSocketPool* const transport_pool_; | 258 TransportClientSocketPool* const transport_pool_; |
261 SSLClientSocketPool* const ssl_pool_; | 259 SSLClientSocketPool* const ssl_pool_; |
262 HostResolver* const host_resolver_; | 260 HostResolver* const host_resolver_; |
263 NetLog* net_log_; | 261 NetLog* net_log_; |
264 base::TimeDelta timeout_; | 262 base::TimeDelta timeout_; |
265 | 263 |
266 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJobFactory); | 264 DISALLOW_COPY_AND_ASSIGN(HttpProxyConnectJobFactory); |
267 }; | 265 }; |
268 | 266 |
269 TransportClientSocketPool* const transport_pool_; | 267 TransportClientSocketPool* const transport_pool_; |
270 SSLClientSocketPool* const ssl_pool_; | 268 SSLClientSocketPool* const ssl_pool_; |
271 PoolBase base_; | 269 PoolBase base_; |
272 | 270 |
273 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 271 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
274 }; | 272 }; |
275 | 273 |
276 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 274 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
277 HttpProxySocketParams); | 275 HttpProxySocketParams); |
278 | 276 |
279 } // namespace net | 277 } // namespace net |
280 | 278 |
281 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 279 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |