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

Unified Diff: net/socket/client_socket_handle.cc

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/socket/client_socket_handle.h ('k') | net/socket/client_socket_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index 905128a86aa5bc776be5f065c8832fb834a6d140..3de9fd1eb713e540e73b9f9288fdc6d0eefdd114 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -31,6 +31,17 @@ ClientSocketHandle::~ClientSocketHandle() {
Reset();
}
+void ClientSocketHandle::SetPriority(RequestPriority priority) {
+ if (socket_) {
+ // The priority of the handle is no longer relevant to the socket pool;
+ // just return.
+ return;
+ }
+
+ if (pool_)
+ pool_->SetPriority(group_name_, this, priority);
+}
+
void ClientSocketHandle::Reset() {
ResetInternal(true);
ResetErrorState();
« no previous file with comments | « net/socket/client_socket_handle.h ('k') | net/socket/client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698