| 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 #include "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 TransportClientSocketPool* transport_pool, | 84 TransportClientSocketPool* transport_pool, |
| 85 SSLClientSocketPool* ssl_pool, | 85 SSLClientSocketPool* ssl_pool, |
| 86 Delegate* delegate, | 86 Delegate* delegate, |
| 87 NetLog* net_log) | 87 NetLog* net_log) |
| 88 : ConnectJob( | 88 : ConnectJob( |
| 89 group_name, | 89 group_name, |
| 90 base::TimeDelta() /* The socket takes care of timeouts */, | 90 base::TimeDelta() /* The socket takes care of timeouts */, |
| 91 priority, | 91 priority, |
| 92 respect_limits, | 92 respect_limits, |
| 93 delegate, | 93 delegate, |
| 94 NetLogWithSource::Make(net_log, NetLogSourceType::CONNECT_JOB)), | 94 NetLogWithSource::Make(net_log, |
| 95 NetLogSourceType::HTTP_PROXY_CONNECT_JOB)), |
| 95 client_socket_(new HttpProxyClientSocketWrapper( | 96 client_socket_(new HttpProxyClientSocketWrapper( |
| 96 group_name, | 97 group_name, |
| 97 priority, | 98 priority, |
| 98 respect_limits, | 99 respect_limits, |
| 99 timeout_duration, | 100 timeout_duration, |
| 100 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds), | 101 base::TimeDelta::FromSeconds(kHttpProxyConnectJobTimeoutInSeconds), |
| 101 transport_pool, | 102 transport_pool, |
| 102 ssl_pool, | 103 ssl_pool, |
| 103 params->transport_params(), | 104 params->transport_params(), |
| 104 params->ssl_params(), | 105 params->ssl_params(), |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 base_.RemoveHigherLayeredPool(higher_pool); | 314 base_.RemoveHigherLayeredPool(higher_pool); |
| 314 } | 315 } |
| 315 | 316 |
| 316 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 317 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
| 317 if (base_.CloseOneIdleSocket()) | 318 if (base_.CloseOneIdleSocket()) |
| 318 return true; | 319 return true; |
| 319 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 320 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 320 } | 321 } |
| 321 | 322 |
| 322 } // namespace net | 323 } // namespace net |
| OLD | NEW |