| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 const void* resolve_info, | 156 const void* resolve_info, |
| 157 RequestPriority priority, | 157 RequestPriority priority, |
| 158 RespectLimits respect_limits, | 158 RespectLimits respect_limits, |
| 159 ClientSocketHandle* handle, | 159 ClientSocketHandle* handle, |
| 160 const CompletionCallback& callback, | 160 const CompletionCallback& callback, |
| 161 const NetLogWithSource& net_log) override; | 161 const NetLogWithSource& net_log) override; |
| 162 void RequestSockets(const std::string& group_name, | 162 void RequestSockets(const std::string& group_name, |
| 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 SetPriority(const std::string& group_name, |
| 167 ClientSocketHandle* handle, |
| 168 RequestPriority priority) override; |
| 166 void CancelRequest(const std::string& group_name, | 169 void CancelRequest(const std::string& group_name, |
| 167 ClientSocketHandle* handle) override; | 170 ClientSocketHandle* handle) override; |
| 168 void ReleaseSocket(const std::string& group_name, | 171 void ReleaseSocket(const std::string& group_name, |
| 169 std::unique_ptr<StreamSocket> socket, | 172 std::unique_ptr<StreamSocket> socket, |
| 170 int id) override; | 173 int id) override; |
| 171 void FlushWithError(int error) override; | 174 void FlushWithError(int error) override; |
| 172 void CloseIdleSockets() override; | 175 void CloseIdleSockets() override; |
| 173 int IdleSocketCount() const override; | 176 int IdleSocketCount() const override; |
| 174 int IdleSocketCountInGroup(const std::string& group_name) const override; | 177 int IdleSocketCountInGroup(const std::string& group_name) const override; |
| 175 LoadState GetLoadState(const std::string& group_name, | 178 LoadState GetLoadState(const std::string& group_name, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool flushing_; | 265 bool flushing_; |
| 263 | 266 |
| 264 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; | 267 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; |
| 265 | 268 |
| 266 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); | 269 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); |
| 267 }; | 270 }; |
| 268 | 271 |
| 269 } // namespace net | 272 } // namespace net |
| 270 | 273 |
| 271 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 274 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |