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

Side by Side Diff: net/socket/socks_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/socket_test_util.cc ('k') | net/socket/socks_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_SOCKS_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 RespectLimits respect_limits, 125 RespectLimits respect_limits,
126 ClientSocketHandle* handle, 126 ClientSocketHandle* handle,
127 const CompletionCallback& callback, 127 const CompletionCallback& callback,
128 const NetLogWithSource& net_log) override; 128 const NetLogWithSource& net_log) override;
129 129
130 void RequestSockets(const std::string& group_name, 130 void RequestSockets(const std::string& group_name,
131 const void* params, 131 const void* params,
132 int num_sockets, 132 int num_sockets,
133 const NetLogWithSource& net_log) override; 133 const NetLogWithSource& net_log) override;
134 134
135 void SetPriority(const std::string& group_name,
136 ClientSocketHandle* handle,
137 RequestPriority priority) override;
138
135 void CancelRequest(const std::string& group_name, 139 void CancelRequest(const std::string& group_name,
136 ClientSocketHandle* handle) override; 140 ClientSocketHandle* handle) override;
137 141
138 void ReleaseSocket(const std::string& group_name, 142 void ReleaseSocket(const std::string& group_name,
139 std::unique_ptr<StreamSocket> socket, 143 std::unique_ptr<StreamSocket> socket,
140 int id) override; 144 int id) override;
141 145
142 void FlushWithError(int error) override; 146 void FlushWithError(int error) override;
143 147
144 void CloseIdleSockets() override; 148 void CloseIdleSockets() override;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 203
200 TransportClientSocketPool* const transport_pool_; 204 TransportClientSocketPool* const transport_pool_;
201 PoolBase base_; 205 PoolBase base_;
202 206
203 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); 207 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool);
204 }; 208 };
205 209
206 } // namespace net 210 } // namespace net
207 211
208 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ 212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.cc ('k') | net/socket/socks_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698