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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 const void* params, | 214 const void* params, |
215 int num_sockets, | 215 int num_sockets, |
216 const NetLogWithSource& net_log) override; | 216 const NetLogWithSource& net_log) override; |
217 void CancelRequest(const std::string& group_name, | 217 void CancelRequest(const std::string& group_name, |
218 ClientSocketHandle* handle) override; | 218 ClientSocketHandle* handle) override; |
219 void ReleaseSocket(const std::string& group_name, | 219 void ReleaseSocket(const std::string& group_name, |
220 std::unique_ptr<StreamSocket> socket, | 220 std::unique_ptr<StreamSocket> socket, |
221 int id) override; | 221 int id) override; |
222 void FlushWithError(int error) override; | 222 void FlushWithError(int error) override; |
223 void CloseIdleSockets() override; | 223 void CloseIdleSockets() override; |
| 224 void CloseIdleSocketsInGroup(const std::string& group_name) override; |
224 int IdleSocketCount() const override; | 225 int IdleSocketCount() const override; |
225 int IdleSocketCountInGroup(const std::string& group_name) const override; | 226 int IdleSocketCountInGroup(const std::string& group_name) const override; |
226 LoadState GetLoadState(const std::string& group_name, | 227 LoadState GetLoadState(const std::string& group_name, |
227 const ClientSocketHandle* handle) const override; | 228 const ClientSocketHandle* handle) const override; |
228 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( | 229 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( |
229 const std::string& name, | 230 const std::string& name, |
230 const std::string& type, | 231 const std::string& type, |
231 bool include_nested_pools) const override; | 232 bool include_nested_pools) const override; |
232 base::TimeDelta ConnectionTimeout() const override; | 233 base::TimeDelta ConnectionTimeout() const override; |
233 | 234 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 }; | 281 }; |
281 | 282 |
282 PoolBase base_; | 283 PoolBase base_; |
283 | 284 |
284 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 285 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
285 }; | 286 }; |
286 | 287 |
287 } // namespace net | 288 } // namespace net |
288 | 289 |
289 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 290 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |