| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 casted_params->get()->destination().hostname().c_str(), | 227 casted_params->get()->destination().hostname().c_str(), |
| 228 casted_params->get()->destination().port()))); | 228 casted_params->get()->destination().port()))); |
| 229 } | 229 } |
| 230 | 230 |
| 231 return base_.RequestSocket(group_name, *casted_params, priority, handle, | 231 return base_.RequestSocket(group_name, *casted_params, priority, handle, |
| 232 callback, net_log); | 232 callback, net_log); |
| 233 } | 233 } |
| 234 | 234 |
| 235 void TCPClientSocketPool::CancelRequest( | 235 void TCPClientSocketPool::CancelRequest( |
| 236 const std::string& group_name, | 236 const std::string& group_name, |
| 237 const ClientSocketHandle* handle) { | 237 ClientSocketHandle* handle) { |
| 238 base_.CancelRequest(group_name, handle); | 238 base_.CancelRequest(group_name, handle); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void TCPClientSocketPool::ReleaseSocket( | 241 void TCPClientSocketPool::ReleaseSocket( |
| 242 const std::string& group_name, | 242 const std::string& group_name, |
| 243 ClientSocket* socket, | 243 ClientSocket* socket, |
| 244 int id) { | 244 int id) { |
| 245 base_.ReleaseSocket(group_name, socket, id); | 245 base_.ReleaseSocket(group_name, socket, id); |
| 246 } | 246 } |
| 247 | 247 |
| 248 void TCPClientSocketPool::Flush() { | 248 void TCPClientSocketPool::Flush() { |
| 249 base_.Flush(); | 249 base_.Flush(); |
| 250 } | 250 } |
| 251 | 251 |
| 252 void TCPClientSocketPool::CloseIdleSockets() { | 252 void TCPClientSocketPool::CloseIdleSockets() { |
| 253 base_.CloseIdleSockets(); | 253 base_.CloseIdleSockets(); |
| 254 } | 254 } |
| 255 | 255 |
| 256 int TCPClientSocketPool::IdleSocketCountInGroup( | 256 int TCPClientSocketPool::IdleSocketCountInGroup( |
| 257 const std::string& group_name) const { | 257 const std::string& group_name) const { |
| 258 return base_.IdleSocketCountInGroup(group_name); | 258 return base_.IdleSocketCountInGroup(group_name); |
| 259 } | 259 } |
| 260 | 260 |
| 261 LoadState TCPClientSocketPool::GetLoadState( | 261 LoadState TCPClientSocketPool::GetLoadState( |
| 262 const std::string& group_name, const ClientSocketHandle* handle) const { | 262 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 263 return base_.GetLoadState(group_name, handle); | 263 return base_.GetLoadState(group_name, handle); |
| 264 } | 264 } |
| 265 | 265 |
| 266 } // namespace net | 266 } // namespace net |
| OLD | NEW |