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_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 virtual void RequestSockets(const std::string& group_name, | 204 virtual void RequestSockets(const std::string& group_name, |
205 const void* params, | 205 const void* params, |
206 int num_sockets, | 206 int num_sockets, |
207 const BoundNetLog& net_log); | 207 const BoundNetLog& net_log); |
208 | 208 |
209 virtual void CancelRequest(const std::string& group_name, | 209 virtual void CancelRequest(const std::string& group_name, |
210 ClientSocketHandle* handle); | 210 ClientSocketHandle* handle); |
211 | 211 |
212 virtual void ReleaseSocket(const std::string& group_name, | 212 virtual void ReleaseSocket(const std::string& group_name, |
213 ClientSocket* socket, | 213 StreamSocket* socket, |
214 int id); | 214 int id); |
215 | 215 |
216 virtual void Flush(); | 216 virtual void Flush(); |
217 | 217 |
218 virtual void CloseIdleSockets(); | 218 virtual void CloseIdleSockets(); |
219 | 219 |
220 virtual int IdleSocketCount() const; | 220 virtual int IdleSocketCount() const; |
221 | 221 |
222 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 222 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
223 | 223 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 const scoped_refptr<SSLConfigService> ssl_config_service_; | 288 const scoped_refptr<SSLConfigService> ssl_config_service_; |
289 | 289 |
290 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 290 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
291 }; | 291 }; |
292 | 292 |
293 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 293 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
294 | 294 |
295 } // namespace net | 295 } // namespace net |
296 | 296 |
297 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 297 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |