| 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/socks_client_socket_pool.h" | 5 #include "net/socket/socks_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/socket/client_socket_factory.h" | 10 #include "net/socket/client_socket_factory.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 CompletionCallback* callback, | 198 CompletionCallback* callback, |
| 199 const BoundNetLog& net_log) { | 199 const BoundNetLog& net_log) { |
| 200 const scoped_refptr<SOCKSSocketParams>* casted_socket_params = | 200 const scoped_refptr<SOCKSSocketParams>* casted_socket_params = |
| 201 static_cast<const scoped_refptr<SOCKSSocketParams>*>(socket_params); | 201 static_cast<const scoped_refptr<SOCKSSocketParams>*>(socket_params); |
| 202 | 202 |
| 203 return base_.RequestSocket(group_name, *casted_socket_params, priority, | 203 return base_.RequestSocket(group_name, *casted_socket_params, priority, |
| 204 handle, callback, net_log); | 204 handle, callback, net_log); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void SOCKSClientSocketPool::CancelRequest(const std::string& group_name, | 207 void SOCKSClientSocketPool::CancelRequest(const std::string& group_name, |
| 208 const ClientSocketHandle* handle) { | 208 ClientSocketHandle* handle) { |
| 209 base_.CancelRequest(group_name, handle); | 209 base_.CancelRequest(group_name, handle); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void SOCKSClientSocketPool::ReleaseSocket(const std::string& group_name, | 212 void SOCKSClientSocketPool::ReleaseSocket(const std::string& group_name, |
| 213 ClientSocket* socket, int id) { | 213 ClientSocket* socket, int id) { |
| 214 base_.ReleaseSocket(group_name, socket, id); | 214 base_.ReleaseSocket(group_name, socket, id); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void SOCKSClientSocketPool::Flush() { | 217 void SOCKSClientSocketPool::Flush() { |
| 218 base_.Flush(); | 218 base_.Flush(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 void SOCKSClientSocketPool::CloseIdleSockets() { | 221 void SOCKSClientSocketPool::CloseIdleSockets() { |
| 222 base_.CloseIdleSockets(); | 222 base_.CloseIdleSockets(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 int SOCKSClientSocketPool::IdleSocketCountInGroup( | 225 int SOCKSClientSocketPool::IdleSocketCountInGroup( |
| 226 const std::string& group_name) const { | 226 const std::string& group_name) const { |
| 227 return base_.IdleSocketCountInGroup(group_name); | 227 return base_.IdleSocketCountInGroup(group_name); |
| 228 } | 228 } |
| 229 | 229 |
| 230 LoadState SOCKSClientSocketPool::GetLoadState( | 230 LoadState SOCKSClientSocketPool::GetLoadState( |
| 231 const std::string& group_name, const ClientSocketHandle* handle) const { | 231 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 232 return base_.GetLoadState(group_name, handle); | 232 return base_.GetLoadState(group_name, handle); |
| 233 } | 233 } |
| 234 | 234 |
| 235 } // namespace net | 235 } // namespace net |
| OLD | NEW |