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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 7 years, 9 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/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index caf344c325363afafb7dd6ed1fa8c42306d93e41..1d71aee29c04a5aea1d34068dded93777b33ec3a 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1578,6 +1578,12 @@ void URLRequestHttpJob::NotifyURLRequestDestroyed() {
awaiting_callback_ = false;
}
+void URLRequestHttpJob::SetPriority(RequestPriority priority) {
+ request_info_.priority = priority;
+ if (transaction_)
+ transaction_->SetPriority(priority);
+}
+
void URLRequestHttpJob::OnDetachRequest() {
http_transaction_delegate_->OnDetachRequest();
}

Powered by Google App Engine
This is Rietveld 408576698