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

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: 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_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index 0dc7b39309cfedafb6f12b9a47d1e4c549403a08..6f890cb3806fd763cc93460ffb6960471d421dfa 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -31,6 +31,10 @@ ClientSocketHandle::~ClientSocketHandle() {
Reset();
}
+void ClientSocketHandle::SetPriority(RequestPriority priority) {
+ pool_->SetPriority(group_name_, this, priority);
+}
+
void ClientSocketHandle::Reset() {
ResetInternal(true);
ResetErrorState();

Powered by Google App Engine
This is Rietveld 408576698