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_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 virtual void RequestSockets(const std::string& group_name, | 127 virtual void RequestSockets(const std::string& group_name, |
128 const void* params, | 128 const void* params, |
129 int num_sockets, | 129 int num_sockets, |
130 const BoundNetLog& net_log); | 130 const BoundNetLog& net_log); |
131 | 131 |
132 virtual void CancelRequest(const std::string& group_name, | 132 virtual void CancelRequest(const std::string& group_name, |
133 ClientSocketHandle* handle); | 133 ClientSocketHandle* handle); |
134 | 134 |
135 virtual void ReleaseSocket(const std::string& group_name, | 135 virtual void ReleaseSocket(const std::string& group_name, |
136 ClientSocket* socket, | 136 StreamSocket* socket, |
137 int id); | 137 int id); |
138 | 138 |
139 virtual void Flush(); | 139 virtual void Flush(); |
140 | 140 |
141 virtual void CloseIdleSockets(); | 141 virtual void CloseIdleSockets(); |
142 | 142 |
143 virtual int IdleSocketCount() const; | 143 virtual int IdleSocketCount() const; |
144 | 144 |
145 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 145 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
146 | 146 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 192 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
193 }; | 193 }; |
194 | 194 |
195 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 195 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
196 TransportSocketParams); | 196 TransportSocketParams); |
197 | 197 |
198 } // namespace net | 198 } // namespace net |
199 | 199 |
200 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 200 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |