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

Unified Diff: content/browser/loader/throttling_resource_handler.cc

Issue 12243002: Pass WebKit priority changes and parsing messages up to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: content/browser/loader/throttling_resource_handler.cc
diff --git a/content/browser/loader/throttling_resource_handler.cc b/content/browser/loader/throttling_resource_handler.cc
index 71bc17692d341f527d563b2d15f62c515224bf9c..27e10e3386e475e9c2ece6399d6a3a98e3abd7f7 100644
--- a/content/browser/loader/throttling_resource_handler.cc
+++ b/content/browser/loader/throttling_resource_handler.cc
@@ -101,6 +101,13 @@ bool ThrottlingResourceHandler::OnResponseStarted(int request_id,
return next_handler_->OnResponseStarted(request_id, response, defer);
}
+void ThrottlingResourceHandler::OnRequestPriorityChanged(int request_id) {
+ for (size_t i = 0; i < throttles_.size(); ++i) {
+ throttles_[i]->OnRequestPriorityChanged();
+ }
+ next_handler_->OnRequestPriorityChanged(request_id);
+}
+
void ThrottlingResourceHandler::Cancel() {
cancelled_by_resource_throttle_ = true;
controller()->Cancel();

Powered by Google App Engine
This is Rietveld 408576698