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

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: 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..f2e272eee8341a87995b63fc1881c33ba1360f66 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1578,6 +1578,11 @@ void URLRequestHttpJob::NotifyURLRequestDestroyed() {
awaiting_callback_ = false;
}
+void URLRequestHttpJob::SetPriority(RequestPriority priority) {
mmenke 2013/03/12 18:40:22 request_info_.priority = priority;? We may want t
akalin 2013/03/12 22:08:28 Done, added TODO to separate out priority.
+ if (transaction_.get())
mmenke 2013/03/12 18:40:22 nit: "transaction_" is now preferred. This file
akalin 2013/03/12 22:08:28 Done.
+ transaction_->SetPriority(priority);
+}
+
void URLRequestHttpJob::OnDetachRequest() {
http_transaction_delegate_->OnDetachRequest();
}

Powered by Google App Engine
This is Rietveld 408576698