| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } | 259 } |
| 260 | 260 |
| 261 void HttpProxyClientSocketPool::FlushWithError(int error) { | 261 void HttpProxyClientSocketPool::FlushWithError(int error) { |
| 262 base_.FlushWithError(error); | 262 base_.FlushWithError(error); |
| 263 } | 263 } |
| 264 | 264 |
| 265 void HttpProxyClientSocketPool::CloseIdleSockets() { | 265 void HttpProxyClientSocketPool::CloseIdleSockets() { |
| 266 base_.CloseIdleSockets(); | 266 base_.CloseIdleSockets(); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void HttpProxyClientSocketPool::CloseIdleSocketsInGroup( |
| 270 const std::string& group_name) { |
| 271 base_.CloseIdleSocketsInGroup(group_name); |
| 272 } |
| 273 |
| 269 int HttpProxyClientSocketPool::IdleSocketCount() const { | 274 int HttpProxyClientSocketPool::IdleSocketCount() const { |
| 270 return base_.idle_socket_count(); | 275 return base_.idle_socket_count(); |
| 271 } | 276 } |
| 272 | 277 |
| 273 int HttpProxyClientSocketPool::IdleSocketCountInGroup( | 278 int HttpProxyClientSocketPool::IdleSocketCountInGroup( |
| 274 const std::string& group_name) const { | 279 const std::string& group_name) const { |
| 275 return base_.IdleSocketCountInGroup(group_name); | 280 return base_.IdleSocketCountInGroup(group_name); |
| 276 } | 281 } |
| 277 | 282 |
| 278 LoadState HttpProxyClientSocketPool::GetLoadState( | 283 LoadState HttpProxyClientSocketPool::GetLoadState( |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 base_.RemoveHigherLayeredPool(higher_pool); | 325 base_.RemoveHigherLayeredPool(higher_pool); |
| 321 } | 326 } |
| 322 | 327 |
| 323 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 328 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
| 324 if (base_.CloseOneIdleSocket()) | 329 if (base_.CloseOneIdleSocket()) |
| 325 return true; | 330 return true; |
| 326 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 331 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 327 } | 332 } |
| 328 | 333 |
| 329 } // namespace net | 334 } // namespace net |
| OLD | NEW |