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

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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_handle.h
diff --git a/net/socket/client_socket_handle.h b/net/socket/client_socket_handle.h
index 7c1788267ee613c240aa73b882d407eaf4af2955..17cfaf80dfa309693a276e74f2268d53263a4405 100644
--- a/net/socket/client_socket_handle.h
+++ b/net/socket/client_socket_handle.h
@@ -85,6 +85,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
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698