OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 virtual void RequestSockets(const std::string& group_name, | 189 virtual void RequestSockets(const std::string& group_name, |
190 const void* params, | 190 const void* params, |
191 int num_sockets, | 191 int num_sockets, |
192 const BoundNetLog& net_log); | 192 const BoundNetLog& net_log); |
193 | 193 |
194 virtual void CancelRequest(const std::string& group_name, | 194 virtual void CancelRequest(const std::string& group_name, |
195 ClientSocketHandle* handle); | 195 ClientSocketHandle* handle); |
196 | 196 |
197 virtual void ReleaseSocket(const std::string& group_name, | 197 virtual void ReleaseSocket(const std::string& group_name, |
198 ClientSocket* socket, | 198 StreamSocket* socket, |
199 int id); | 199 int id); |
200 | 200 |
201 virtual void Flush(); | 201 virtual void Flush(); |
202 | 202 |
203 virtual void CloseIdleSockets(); | 203 virtual void CloseIdleSockets(); |
204 | 204 |
205 virtual int IdleSocketCount() const; | 205 virtual int IdleSocketCount() const; |
206 | 206 |
207 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 207 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
208 | 208 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 252 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
253 }; | 253 }; |
254 | 254 |
255 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 255 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
256 HttpProxySocketParams); | 256 HttpProxySocketParams); |
257 | 257 |
258 } // namespace net | 258 } // namespace net |
259 | 259 |
260 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 260 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |