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

Unified Diff: net/socket/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 side-by-side diff with in-line comments
Download patch
Index: net/socket/client_socket_pool.h
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h
index b59f6049da89ea14a9cfcc95d97930792d83b14a..be21fb57e6cdde15862a441a87b5f116e0faec48 100644
--- a/net/socket/client_socket_pool.h
+++ b/net/socket/client_socket_pool.h
@@ -123,6 +123,14 @@ class NET_EXPORT ClientSocketPool : public LowerLayeredPool {
int num_sockets,
const BoundNetLog& net_log) = 0;
+ // Called to change the priority of a RequestSocket call that returned
+ // ERR_IO_PENDING and has not yet asynchronously completed. The same handle
+ // parameter must be passed to this method as was passed to the
+ // RequestSocket call being modified.
+ virtual void SetPriority(const std::string& group_name,
+ ClientSocketHandle* handle,
+ RequestPriority priority) = 0;
+
// Called to cancel a RequestSocket call that returned ERR_IO_PENDING. The
// same handle parameter must be passed to this method as was passed to the
// RequestSocket call being cancelled. The associated CompletionCallback is

Powered by Google App Engine
This is Rietveld 408576698