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

Unified Diff: content/child/resource_dispatcher.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/resource_dispatcher.h ('k') | content/child/web_url_loader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index ad64cd12964a823bf6c25f7626cacaa49d8adb98..b6a877fa65d5f8b9b91658ac2d14d5e01bb74680 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -80,7 +80,8 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge {
virtual bool Start(RequestPeer* peer) OVERRIDE;
virtual void Cancel() OVERRIDE;
virtual void SetDefersLoading(bool value) OVERRIDE;
- virtual void DidChangePriority(net::RequestPriority new_priority) OVERRIDE;
+ virtual void DidChangePriority(net::RequestPriority new_priority,
+ int intra_priority_value) OVERRIDE;
virtual void SyncLoad(SyncLoadResponse* response) OVERRIDE;
private:
@@ -219,13 +220,14 @@ void IPCResourceLoaderBridge::SetDefersLoading(bool value) {
}
void IPCResourceLoaderBridge::DidChangePriority(
- net::RequestPriority new_priority) {
+ net::RequestPriority new_priority, int intra_priority_value) {
if (request_id_ < 0) {
NOTREACHED() << "Trying to change priority of an unstarted request";
return;
}
- dispatcher_->DidChangePriority(routing_id_, request_id_, new_priority);
+ dispatcher_->DidChangePriority(routing_id_, request_id_, new_priority,
+ intra_priority_value);
}
void IPCResourceLoaderBridge::SyncLoad(SyncLoadResponse* response) {
@@ -614,10 +616,11 @@ void ResourceDispatcher::SetDefersLoading(int request_id, bool value) {
}
void ResourceDispatcher::DidChangePriority(
- int routing_id, int request_id, net::RequestPriority new_priority) {
+ int routing_id, int request_id, net::RequestPriority new_priority,
+ int intra_priority_value) {
DCHECK(ContainsKey(pending_requests_, request_id));
message_sender()->Send(new ResourceHostMsg_DidChangePriority(
- request_id, new_priority));
+ request_id, new_priority, intra_priority_value));
}
ResourceDispatcher::PendingRequestInfo::PendingRequestInfo()
« no previous file with comments | « content/child/resource_dispatcher.h ('k') | content/child/web_url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698