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

Side by Side Diff: net/socket/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
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 const void* resolve_info, 207 const void* resolve_info,
208 RequestPriority priority, 208 RequestPriority priority,
209 RespectLimits respect_limits, 209 RespectLimits respect_limits,
210 ClientSocketHandle* handle, 210 ClientSocketHandle* handle,
211 const CompletionCallback& callback, 211 const CompletionCallback& callback,
212 const NetLogWithSource& net_log) override; 212 const NetLogWithSource& net_log) override;
213 void RequestSockets(const std::string& group_name, 213 void RequestSockets(const std::string& group_name,
214 const void* params, 214 const void* params,
215 int num_sockets, 215 int num_sockets,
216 const NetLogWithSource& net_log) override; 216 const NetLogWithSource& net_log) override;
217 void SetPriority(const std::string& group_name,
218 ClientSocketHandle* handle,
219 RequestPriority priority) override;
220
217 void CancelRequest(const std::string& group_name, 221 void CancelRequest(const std::string& group_name,
218 ClientSocketHandle* handle) override; 222 ClientSocketHandle* handle) override;
219 void ReleaseSocket(const std::string& group_name, 223 void ReleaseSocket(const std::string& group_name,
220 std::unique_ptr<StreamSocket> socket, 224 std::unique_ptr<StreamSocket> socket,
221 int id) override; 225 int id) override;
222 void FlushWithError(int error) override; 226 void FlushWithError(int error) override;
223 void CloseIdleSockets() override; 227 void CloseIdleSockets() override;
224 int IdleSocketCount() const override; 228 int IdleSocketCount() const override;
225 int IdleSocketCountInGroup(const std::string& group_name) const override; 229 int IdleSocketCountInGroup(const std::string& group_name) const override;
226 LoadState GetLoadState(const std::string& group_name, 230 LoadState GetLoadState(const std::string& group_name,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 }; 284 };
281 285
282 PoolBase base_; 286 PoolBase base_;
283 287
284 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); 288 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool);
285 }; 289 };
286 290
287 } // namespace net 291 } // namespace net
288 292
289 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 293 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698