| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // ClientSocketPool methods: | 165 // ClientSocketPool methods: |
| 166 virtual int RequestSocket(const std::string& group_name, | 166 virtual int RequestSocket(const std::string& group_name, |
| 167 const void* connect_params, | 167 const void* connect_params, |
| 168 RequestPriority priority, | 168 RequestPriority priority, |
| 169 ClientSocketHandle* handle, | 169 ClientSocketHandle* handle, |
| 170 CompletionCallback* callback, | 170 CompletionCallback* callback, |
| 171 const BoundNetLog& net_log); | 171 const BoundNetLog& net_log); |
| 172 | 172 |
| 173 virtual void CancelRequest(const std::string& group_name, | 173 virtual void CancelRequest(const std::string& group_name, |
| 174 const ClientSocketHandle* handle); | 174 ClientSocketHandle* handle); |
| 175 | 175 |
| 176 virtual void ReleaseSocket(const std::string& group_name, | 176 virtual void ReleaseSocket(const std::string& group_name, |
| 177 ClientSocket* socket, | 177 ClientSocket* socket, |
| 178 int id); | 178 int id); |
| 179 | 179 |
| 180 virtual void Flush(); | 180 virtual void Flush(); |
| 181 | 181 |
| 182 virtual void CloseIdleSockets(); | 182 virtual void CloseIdleSockets(); |
| 183 | 183 |
| 184 virtual int IdleSocketCount() const { | 184 virtual int IdleSocketCount() const { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 PoolBase base_; | 239 PoolBase base_; |
| 240 | 240 |
| 241 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 241 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 244 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
| 245 | 245 |
| 246 } // namespace net | 246 } // namespace net |
| 247 | 247 |
| 248 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 248 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |