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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 } | 253 } |
254 | 254 |
255 void HttpProxyClientSocketPool::FlushWithError(int error) { | 255 void HttpProxyClientSocketPool::FlushWithError(int error) { |
256 base_.FlushWithError(error); | 256 base_.FlushWithError(error); |
257 } | 257 } |
258 | 258 |
259 void HttpProxyClientSocketPool::CloseIdleSockets() { | 259 void HttpProxyClientSocketPool::CloseIdleSockets() { |
260 base_.CloseIdleSockets(); | 260 base_.CloseIdleSockets(); |
261 } | 261 } |
262 | 262 |
| 263 void HttpProxyClientSocketPool::CloseIdleSocketsInGroup( |
| 264 const std::string& group_name) { |
| 265 base_.CloseIdleSocketsInGroup(group_name); |
| 266 } |
| 267 |
263 int HttpProxyClientSocketPool::IdleSocketCount() const { | 268 int HttpProxyClientSocketPool::IdleSocketCount() const { |
264 return base_.idle_socket_count(); | 269 return base_.idle_socket_count(); |
265 } | 270 } |
266 | 271 |
267 int HttpProxyClientSocketPool::IdleSocketCountInGroup( | 272 int HttpProxyClientSocketPool::IdleSocketCountInGroup( |
268 const std::string& group_name) const { | 273 const std::string& group_name) const { |
269 return base_.IdleSocketCountInGroup(group_name); | 274 return base_.IdleSocketCountInGroup(group_name); |
270 } | 275 } |
271 | 276 |
272 LoadState HttpProxyClientSocketPool::GetLoadState( | 277 LoadState HttpProxyClientSocketPool::GetLoadState( |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 base_.RemoveHigherLayeredPool(higher_pool); | 319 base_.RemoveHigherLayeredPool(higher_pool); |
315 } | 320 } |
316 | 321 |
317 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 322 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
318 if (base_.CloseOneIdleSocket()) | 323 if (base_.CloseOneIdleSocket()) |
319 return true; | 324 return true; |
320 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 325 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
321 } | 326 } |
322 | 327 |
323 } // namespace net | 328 } // namespace net |
OLD | NEW |