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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 void SetPriority(const std::string& group_name, | 166 void SetPriority(const std::string& group_name, |
167 ClientSocketHandle* handle, | 167 ClientSocketHandle* handle, |
168 RequestPriority priority) override; | 168 RequestPriority priority) override; |
169 void CancelRequest(const std::string& group_name, | 169 void CancelRequest(const std::string& group_name, |
170 ClientSocketHandle* handle) override; | 170 ClientSocketHandle* handle) override; |
171 void ReleaseSocket(const std::string& group_name, | 171 void ReleaseSocket(const std::string& group_name, |
172 std::unique_ptr<StreamSocket> socket, | 172 std::unique_ptr<StreamSocket> socket, |
173 int id) override; | 173 int id) override; |
174 void FlushWithError(int error) override; | 174 void FlushWithError(int error) override; |
175 void CloseIdleSockets() override; | 175 void CloseIdleSockets() override; |
| 176 void CloseIdleSocketsInGroup(const std::string& group_name) override; |
176 int IdleSocketCount() const override; | 177 int IdleSocketCount() const override; |
177 int IdleSocketCountInGroup(const std::string& group_name) const override; | 178 int IdleSocketCountInGroup(const std::string& group_name) const override; |
178 LoadState GetLoadState(const std::string& group_name, | 179 LoadState GetLoadState(const std::string& group_name, |
179 const ClientSocketHandle* handle) const override; | 180 const ClientSocketHandle* handle) const override; |
180 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( | 181 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( |
181 const std::string& name, | 182 const std::string& name, |
182 const std::string& type, | 183 const std::string& type, |
183 bool include_nested_pools) const override; | 184 bool include_nested_pools) const override; |
184 base::TimeDelta ConnectionTimeout() const override; | 185 base::TimeDelta ConnectionTimeout() const override; |
185 | 186 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 bool flushing_; | 266 bool flushing_; |
266 | 267 |
267 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; | 268 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; |
268 | 269 |
269 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); | 270 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); |
270 }; | 271 }; |
271 | 272 |
272 } // namespace net | 273 } // namespace net |
273 | 274 |
274 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 275 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |