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

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: Plumbed SetPriority down from HttpStreamFactoryImpl::Job. Created 4 years, 8 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const void* resolve_info, 136 const void* resolve_info,
137 RequestPriority priority, 137 RequestPriority priority,
138 RespectLimits respect_limits, 138 RespectLimits respect_limits,
139 ClientSocketHandle* handle, 139 ClientSocketHandle* handle,
140 const CompletionCallback& callback, 140 const CompletionCallback& callback,
141 const BoundNetLog& net_log) override; 141 const BoundNetLog& net_log) override;
142 void RequestSockets(const std::string& group_name, 142 void RequestSockets(const std::string& group_name,
143 const void* params, 143 const void* params,
144 int num_sockets, 144 int num_sockets,
145 const BoundNetLog& net_log) override; 145 const BoundNetLog& net_log) override;
146 void SetPriority(const std::string& group_name,
147 ClientSocketHandle* handle,
148 RequestPriority priority) override;
146 void CancelRequest(const std::string& group_name, 149 void CancelRequest(const std::string& group_name,
147 ClientSocketHandle* handle) override; 150 ClientSocketHandle* handle) override;
148 void ReleaseSocket(const std::string& group_name, 151 void ReleaseSocket(const std::string& group_name,
149 std::unique_ptr<StreamSocket> socket, 152 std::unique_ptr<StreamSocket> socket,
150 int id) override; 153 int id) override;
151 void FlushWithError(int error) override; 154 void FlushWithError(int error) override;
152 void CloseIdleSockets() override; 155 void CloseIdleSockets() override;
153 int IdleSocketCount() const override; 156 int IdleSocketCount() const override;
154 int IdleSocketCountInGroup(const std::string& group_name) const override; 157 int IdleSocketCountInGroup(const std::string& group_name) const override;
155 LoadState GetLoadState(const std::string& group_name, 158 LoadState GetLoadState(const std::string& group_name,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 bool flushing_; 239 bool flushing_;
237 240
238 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; 241 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_;
239 242
240 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); 243 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool);
241 }; 244 };
242 245
243 } // namespace net 246 } // namespace net
244 247
245 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 248 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698