| 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_TCP_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TCP_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // ClientSocketPool methods: | 122 // ClientSocketPool methods: |
| 123 | 123 |
| 124 virtual int RequestSocket(const std::string& group_name, | 124 virtual int RequestSocket(const std::string& group_name, |
| 125 const void* resolve_info, | 125 const void* resolve_info, |
| 126 RequestPriority priority, | 126 RequestPriority priority, |
| 127 ClientSocketHandle* handle, | 127 ClientSocketHandle* handle, |
| 128 CompletionCallback* callback, | 128 CompletionCallback* callback, |
| 129 const BoundNetLog& net_log); | 129 const BoundNetLog& net_log); |
| 130 | 130 |
| 131 virtual void CancelRequest(const std::string& group_name, | 131 virtual void CancelRequest(const std::string& group_name, |
| 132 const ClientSocketHandle* handle); | 132 ClientSocketHandle* handle); |
| 133 | 133 |
| 134 virtual void ReleaseSocket(const std::string& group_name, | 134 virtual void ReleaseSocket(const std::string& group_name, |
| 135 ClientSocket* socket, | 135 ClientSocket* socket, |
| 136 int id); | 136 int id); |
| 137 | 137 |
| 138 virtual void Flush(); | 138 virtual void Flush(); |
| 139 | 139 |
| 140 virtual void CloseIdleSockets(); | 140 virtual void CloseIdleSockets(); |
| 141 | 141 |
| 142 virtual int IdleSocketCount() const { | 142 virtual int IdleSocketCount() const { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 PoolBase base_; | 194 PoolBase base_; |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); | 196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); | 199 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); |
| 200 | 200 |
| 201 } // namespace net | 201 } // namespace net |
| 202 | 202 |
| 203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ | 203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |