Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: net/socket/websocket_transport_client_socket_pool.h

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/socket/transport_client_socket_pool.cc ('k') | net/socket/websocket_transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698