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/socket/socks_client_socket_pool.h" | 5 #include "net/socket/socks_client_socket_pool.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 248 } |
249 | 249 |
250 void SOCKSClientSocketPool::FlushWithError(int error) { | 250 void SOCKSClientSocketPool::FlushWithError(int error) { |
251 base_.FlushWithError(error); | 251 base_.FlushWithError(error); |
252 } | 252 } |
253 | 253 |
254 void SOCKSClientSocketPool::CloseIdleSockets() { | 254 void SOCKSClientSocketPool::CloseIdleSockets() { |
255 base_.CloseIdleSockets(); | 255 base_.CloseIdleSockets(); |
256 } | 256 } |
257 | 257 |
| 258 void SOCKSClientSocketPool::CloseIdleSocketsInGroup( |
| 259 const std::string& group_name) { |
| 260 base_.CloseIdleSocketsInGroup(group_name); |
| 261 } |
| 262 |
258 int SOCKSClientSocketPool::IdleSocketCount() const { | 263 int SOCKSClientSocketPool::IdleSocketCount() const { |
259 return base_.idle_socket_count(); | 264 return base_.idle_socket_count(); |
260 } | 265 } |
261 | 266 |
262 int SOCKSClientSocketPool::IdleSocketCountInGroup( | 267 int SOCKSClientSocketPool::IdleSocketCountInGroup( |
263 const std::string& group_name) const { | 268 const std::string& group_name) const { |
264 return base_.IdleSocketCountInGroup(group_name); | 269 return base_.IdleSocketCountInGroup(group_name); |
265 } | 270 } |
266 | 271 |
267 LoadState SOCKSClientSocketPool::GetLoadState( | 272 LoadState SOCKSClientSocketPool::GetLoadState( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 base_.RemoveHigherLayeredPool(higher_pool); | 307 base_.RemoveHigherLayeredPool(higher_pool); |
303 } | 308 } |
304 | 309 |
305 bool SOCKSClientSocketPool::CloseOneIdleConnection() { | 310 bool SOCKSClientSocketPool::CloseOneIdleConnection() { |
306 if (base_.CloseOneIdleSocket()) | 311 if (base_.CloseOneIdleSocket()) |
307 return true; | 312 return true; |
308 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 313 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
309 } | 314 } |
310 | 315 |
311 } // namespace net | 316 } // namespace net |
OLD | NEW |