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

Unified Diff: net/socket/client_socket_handle.h

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt to fix windows compile failure. Created 3 years, 11 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_handle.h
diff --git a/net/socket/client_socket_handle.h b/net/socket/client_socket_handle.h
index de0381f674b90e0f61a3054ac0083f2f583f5fec..ac2526679f69f5a06864f3c51ed353532b10aebb 100644
--- a/net/socket/client_socket_handle.h
+++ b/net/socket/client_socket_handle.h
@@ -91,6 +91,12 @@ class NET_EXPORT ClientSocketHandle {
PoolType* pool,
const NetLogWithSource& net_log);
+ // Changes the priority of the ClientSocketHandle to the passed value.
+ // This function is a no-op if |priority| is the same as the current
+ // priority, of if Init() has not been called since the last time
+ // the ClientSocketHandle was reset.
+ void SetPriority(RequestPriority priority);
+
// An initialized handle can be reset, which causes it to return to the
// un-initialized state. This releases the underlying socket, which in the
// case of a socket that still has an established connection, indicates that

Powered by Google App Engine
This is Rietveld 408576698