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

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 Matt's comments. Created 4 years, 7 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..f4e8ae5e13f0c307b2ec10d6f5861d7bbcc65bd3 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -31,6 +31,11 @@ ClientSocketHandle::~ClientSocketHandle() {
Reset();
}
+void ClientSocketHandle::SetPriority(RequestPriority priority) {
+ if (pool_)
mmenke 2016/05/09 18:41:03 When is this called without a pool?
Randy Smith (Not in Mondays) 2017/01/03 21:09:08 Well, as I read the code, HttpStreamFactoryImpl::J
mmenke 2017/01/03 21:28:22 You're right, but setting the priority of an "unin
Randy Smith (Not in Mondays) 2017/01/05 03:47:18 So I looked into this option in response to your c
+ pool_->SetPriority(group_name_, this, priority);
mmenke 2017/01/03 21:28:22 Also, this is calling SetPriority even after this
Randy Smith (Not in Mondays) 2017/01/05 03:47:18 It's worse than doesn't seem right--it can produce
+}
+
void ClientSocketHandle::Reset() {
ResetInternal(true);
ResetErrorState();

Powered by Google App Engine
This is Rietveld 408576698