OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const void* params, | 163 const void* params, |
164 int num_sockets, | 164 int num_sockets, |
165 const NetLogWithSource& net_log) override; | 165 const NetLogWithSource& net_log) override; |
166 void CancelRequest(const std::string& group_name, | 166 void CancelRequest(const std::string& group_name, |
167 ClientSocketHandle* handle) override; | 167 ClientSocketHandle* handle) override; |
168 void ReleaseSocket(const std::string& group_name, | 168 void ReleaseSocket(const std::string& group_name, |
169 std::unique_ptr<StreamSocket> socket, | 169 std::unique_ptr<StreamSocket> socket, |
170 int id) override; | 170 int id) override; |
171 void FlushWithError(int error) override; | 171 void FlushWithError(int error) override; |
172 void CloseIdleSockets() override; | 172 void CloseIdleSockets() override; |
| 173 void CloseIdleSocketsInGroup(const std::string& group_name) override; |
173 int IdleSocketCount() const override; | 174 int IdleSocketCount() const override; |
174 int IdleSocketCountInGroup(const std::string& group_name) const override; | 175 int IdleSocketCountInGroup(const std::string& group_name) const override; |
175 LoadState GetLoadState(const std::string& group_name, | 176 LoadState GetLoadState(const std::string& group_name, |
176 const ClientSocketHandle* handle) const override; | 177 const ClientSocketHandle* handle) const override; |
177 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( | 178 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( |
178 const std::string& name, | 179 const std::string& name, |
179 const std::string& type, | 180 const std::string& type, |
180 bool include_nested_pools) const override; | 181 bool include_nested_pools) const override; |
181 base::TimeDelta ConnectionTimeout() const override; | 182 base::TimeDelta ConnectionTimeout() const override; |
182 | 183 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 bool flushing_; | 263 bool flushing_; |
263 | 264 |
264 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; | 265 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; |
265 | 266 |
266 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); | 267 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); |
267 }; | 268 }; |
268 | 269 |
269 } // namespace net | 270 } // namespace net |
270 | 271 |
271 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 272 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |