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

Side by Side Diff: net/socket/ssl_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 (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_SSL_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_SSL_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 RespectLimits respect_limits, 207 RespectLimits respect_limits,
208 ClientSocketHandle* handle, 208 ClientSocketHandle* handle,
209 const CompletionCallback& callback, 209 const CompletionCallback& callback,
210 const BoundNetLog& net_log) override; 210 const BoundNetLog& net_log) override;
211 211
212 void RequestSockets(const std::string& group_name, 212 void RequestSockets(const std::string& group_name,
213 const void* params, 213 const void* params,
214 int num_sockets, 214 int num_sockets,
215 const BoundNetLog& net_log) override; 215 const BoundNetLog& net_log) override;
216 216
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 223
220 void ReleaseSocket(const std::string& group_name, 224 void ReleaseSocket(const std::string& group_name,
221 std::unique_ptr<StreamSocket> socket, 225 std::unique_ptr<StreamSocket> socket,
222 int id) override; 226 int id) override;
223 227
224 void FlushWithError(int error) override; 228 void FlushWithError(int error) override;
225 229
226 void CloseIdleSockets() override; 230 void CloseIdleSockets() override;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 HttpProxyClientSocketPool* const http_proxy_pool_; 299 HttpProxyClientSocketPool* const http_proxy_pool_;
296 PoolBase base_; 300 PoolBase base_;
297 const scoped_refptr<SSLConfigService> ssl_config_service_; 301 const scoped_refptr<SSLConfigService> ssl_config_service_;
298 302
299 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); 303 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool);
300 }; 304 };
301 305
302 } // namespace net 306 } // namespace net
303 307
304 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ 308 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698