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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 146333004: Introduce an intra-priority level sorting value - Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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
« no previous file with comments | « content/child/web_url_loader_impl.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 00bbf1b1e61598ff987a349e5a580198774c28b6..ac0ad9907d483bce5ed05fcb30c62de742f08f49 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -231,7 +231,8 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
void Cancel();
void SetDefersLoading(bool value);
- void DidChangePriority(WebURLRequest::Priority new_priority);
+ void DidChangePriority(WebURLRequest::Priority new_priority,
+ int intra_priority_value);
void Start(const WebURLRequest& request,
SyncLoadResponse* sync_load_response);
@@ -302,10 +303,10 @@ void WebURLLoaderImpl::Context::SetDefersLoading(bool value) {
}
void WebURLLoaderImpl::Context::DidChangePriority(
- WebURLRequest::Priority new_priority) {
+ WebURLRequest::Priority new_priority, int intra_priority_value) {
if (bridge_)
bridge_->DidChangePriority(
- ConvertWebKitPriorityToNetPriority(new_priority));
+ ConvertWebKitPriorityToNetPriority(new_priority), intra_priority_value);
}
void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
@@ -867,8 +868,9 @@ void WebURLLoaderImpl::setDefersLoading(bool value) {
context_->SetDefersLoading(value);
}
-void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
- context_->DidChangePriority(new_priority);
+void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority,
+ int intra_priority_value) {
+ context_->DidChangePriority(new_priority, intra_priority_value);
}
} // namespace content
« no previous file with comments | « content/child/web_url_loader_impl.h ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698