OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 const BoundNetLog& net_log) OVERRIDE; | 157 const BoundNetLog& net_log) OVERRIDE; |
158 virtual void RequestSockets(const std::string& group_name, | 158 virtual void RequestSockets(const std::string& group_name, |
159 const void* params, | 159 const void* params, |
160 int num_sockets, | 160 int num_sockets, |
161 const BoundNetLog& net_log) OVERRIDE; | 161 const BoundNetLog& net_log) OVERRIDE; |
162 virtual void CancelRequest(const std::string& group_name, | 162 virtual void CancelRequest(const std::string& group_name, |
163 ClientSocketHandle* handle) OVERRIDE; | 163 ClientSocketHandle* handle) OVERRIDE; |
164 virtual void ReleaseSocket(const std::string& group_name, | 164 virtual void ReleaseSocket(const std::string& group_name, |
165 StreamSocket* socket, | 165 StreamSocket* socket, |
166 int id) OVERRIDE; | 166 int id) OVERRIDE; |
167 virtual void Flush() OVERRIDE; | 167 virtual void FlushWithError(int error) OVERRIDE; |
168 virtual bool IsStalled() const OVERRIDE; | 168 virtual bool IsStalled() const OVERRIDE; |
169 virtual void CloseIdleSockets() OVERRIDE; | 169 virtual void CloseIdleSockets() OVERRIDE; |
170 virtual int IdleSocketCount() const OVERRIDE; | 170 virtual int IdleSocketCount() const OVERRIDE; |
171 virtual int IdleSocketCountInGroup( | 171 virtual int IdleSocketCountInGroup( |
172 const std::string& group_name) const OVERRIDE; | 172 const std::string& group_name) const OVERRIDE; |
173 virtual LoadState GetLoadState( | 173 virtual LoadState GetLoadState( |
174 const std::string& group_name, | 174 const std::string& group_name, |
175 const ClientSocketHandle* handle) const OVERRIDE; | 175 const ClientSocketHandle* handle) const OVERRIDE; |
176 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE; | 176 virtual void AddLayeredPool(LayeredPool* layered_pool) OVERRIDE; |
177 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE; | 177 virtual void RemoveLayeredPool(LayeredPool* layered_pool) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 219 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
220 }; | 220 }; |
221 | 221 |
222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, | 222 REGISTER_SOCKET_PARAMS_FOR_POOL(TransportClientSocketPool, |
223 TransportSocketParams); | 223 TransportSocketParams); |
224 | 224 |
225 } // namespace net | 225 } // namespace net |
226 | 226 |
227 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 227 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |