| 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 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 int num_sockets, | 130 int num_sockets, |
| 131 const BoundNetLog& net_log) OVERRIDE; | 131 const BoundNetLog& net_log) OVERRIDE; |
| 132 | 132 |
| 133 virtual void CancelRequest(const std::string& group_name, | 133 virtual void CancelRequest(const std::string& group_name, |
| 134 ClientSocketHandle* handle) OVERRIDE; | 134 ClientSocketHandle* handle) OVERRIDE; |
| 135 | 135 |
| 136 virtual void ReleaseSocket(const std::string& group_name, | 136 virtual void ReleaseSocket(const std::string& group_name, |
| 137 StreamSocket* socket, | 137 StreamSocket* socket, |
| 138 int id) OVERRIDE; | 138 int id) OVERRIDE; |
| 139 | 139 |
| 140 virtual void Flush() OVERRIDE; | 140 virtual void FlushWithError(int error) OVERRIDE; |
| 141 | 141 |
| 142 virtual bool IsStalled() const OVERRIDE; | 142 virtual bool IsStalled() const OVERRIDE; |
| 143 | 143 |
| 144 virtual void CloseIdleSockets() OVERRIDE; | 144 virtual void CloseIdleSockets() OVERRIDE; |
| 145 | 145 |
| 146 virtual int IdleSocketCount() const OVERRIDE; | 146 virtual int IdleSocketCount() const OVERRIDE; |
| 147 | 147 |
| 148 virtual int IdleSocketCountInGroup( | 148 virtual int IdleSocketCountInGroup( |
| 149 const std::string& group_name) const OVERRIDE; | 149 const std::string& group_name) const OVERRIDE; |
| 150 | 150 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 PoolBase base_; | 202 PoolBase base_; |
| 203 | 203 |
| 204 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 204 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 207 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
| 208 | 208 |
| 209 } // namespace net | 209 } // namespace net |
| 210 | 210 |
| 211 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 211 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |