OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/tcp_client_socket_pool.h" | 5 #include "net/socket/tcp_client_socket_pool.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 void TCPClientSocketPool::CancelRequest( | 219 void TCPClientSocketPool::CancelRequest( |
220 const std::string& group_name, | 220 const std::string& group_name, |
221 const ClientSocketHandle* handle) { | 221 const ClientSocketHandle* handle) { |
222 base_.CancelRequest(group_name, handle); | 222 base_.CancelRequest(group_name, handle); |
223 } | 223 } |
224 | 224 |
225 void TCPClientSocketPool::ReleaseSocket( | 225 void TCPClientSocketPool::ReleaseSocket( |
226 const std::string& group_name, | 226 const std::string& group_name, |
227 ClientSocket* socket) { | 227 ClientSocket* socket, |
228 base_.ReleaseSocket(group_name, socket); | 228 int id) { |
| 229 base_.ReleaseSocket(group_name, socket, id); |
| 230 } |
| 231 |
| 232 void TCPClientSocketPool::Flush() { |
| 233 base_.Flush(); |
229 } | 234 } |
230 | 235 |
231 void TCPClientSocketPool::CloseIdleSockets() { | 236 void TCPClientSocketPool::CloseIdleSockets() { |
232 base_.CloseIdleSockets(); | 237 base_.CloseIdleSockets(); |
233 } | 238 } |
234 | 239 |
235 int TCPClientSocketPool::IdleSocketCountInGroup( | 240 int TCPClientSocketPool::IdleSocketCountInGroup( |
236 const std::string& group_name) const { | 241 const std::string& group_name) const { |
237 return base_.IdleSocketCountInGroup(group_name); | 242 return base_.IdleSocketCountInGroup(group_name); |
238 } | 243 } |
239 | 244 |
240 LoadState TCPClientSocketPool::GetLoadState( | 245 LoadState TCPClientSocketPool::GetLoadState( |
241 const std::string& group_name, const ClientSocketHandle* handle) const { | 246 const std::string& group_name, const ClientSocketHandle* handle) const { |
242 return base_.GetLoadState(group_name, handle); | 247 return base_.GetLoadState(group_name, handle); |
243 } | 248 } |
244 | 249 |
245 } // namespace net | 250 } // namespace net |
OLD | NEW |