| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 void HttpProxyClientSocketPool::CancelRequest( | 241 void HttpProxyClientSocketPool::CancelRequest( |
| 242 const std::string& group_name, | 242 const std::string& group_name, |
| 243 ClientSocketHandle* handle) { | 243 ClientSocketHandle* handle) { |
| 244 base_.CancelRequest(group_name, handle); | 244 base_.CancelRequest(group_name, handle); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void HttpProxyClientSocketPool::ReleaseSocket( | 247 void HttpProxyClientSocketPool::ReleaseSocket( |
| 248 const std::string& group_name, | 248 const std::string& group_name, |
| 249 std::unique_ptr<StreamSocket> socket, | 249 std::unique_ptr<StreamSocket> socket, |
| 250 int id) { | 250 int id, |
| 251 base_.ReleaseSocket(group_name, std::move(socket), id); | 251 const LoadTimingInfo::ConnectTiming& connect_timing) { |
| 252 base_.ReleaseSocket(group_name, std::move(socket), id, connect_timing); |
| 252 } | 253 } |
| 253 | 254 |
| 254 void HttpProxyClientSocketPool::FlushWithError(int error) { | 255 void HttpProxyClientSocketPool::FlushWithError(int error) { |
| 255 base_.FlushWithError(error); | 256 base_.FlushWithError(error); |
| 256 } | 257 } |
| 257 | 258 |
| 258 void HttpProxyClientSocketPool::CloseIdleSockets() { | 259 void HttpProxyClientSocketPool::CloseIdleSockets() { |
| 259 base_.CloseIdleSockets(); | 260 base_.CloseIdleSockets(); |
| 260 } | 261 } |
| 261 | 262 |
| (...skipping 51 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 |