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 #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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const void* connect_params, | 119 const void* connect_params, |
120 RequestPriority priority, | 120 RequestPriority priority, |
121 ClientSocketHandle* handle, | 121 ClientSocketHandle* handle, |
122 CompletionCallback* callback, | 122 CompletionCallback* callback, |
123 const BoundNetLog& net_log); | 123 const BoundNetLog& net_log); |
124 | 124 |
125 virtual void CancelRequest(const std::string& group_name, | 125 virtual void CancelRequest(const std::string& group_name, |
126 const ClientSocketHandle* handle); | 126 const ClientSocketHandle* handle); |
127 | 127 |
128 virtual void ReleaseSocket(const std::string& group_name, | 128 virtual void ReleaseSocket(const std::string& group_name, |
129 ClientSocket* socket); | 129 ClientSocket* socket, |
| 130 int id); |
| 131 |
| 132 virtual void Flush(); |
130 | 133 |
131 virtual void CloseIdleSockets(); | 134 virtual void CloseIdleSockets(); |
132 | 135 |
133 virtual int IdleSocketCount() const { | 136 virtual int IdleSocketCount() const { |
134 return base_.idle_socket_count(); | 137 return base_.idle_socket_count(); |
135 } | 138 } |
136 | 139 |
137 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 140 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
138 | 141 |
139 virtual LoadState GetLoadState(const std::string& group_name, | 142 virtual LoadState GetLoadState(const std::string& group_name, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 PoolBase base_; | 186 PoolBase base_; |
184 | 187 |
185 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 188 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
186 }; | 189 }; |
187 | 190 |
188 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams) | 191 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams) |
189 | 192 |
190 } // namespace net | 193 } // namespace net |
191 | 194 |
192 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 195 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |