summaryrefslogtreecommitdiffstats
path: root/content/common/resource_messages.h
diff options
context:
space:
mode:
authorsimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 22:02:39 +0000
committersimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 22:02:39 +0000
commited038bff0dc6d14b38f8c74d89d252b35f105881 (patch)
treed2b182617900f6940848950f2cfb52743ab5cc10 /content/common/resource_messages.h
parentca6e0a823730e79cf546491f7a548a684920480a (diff)
downloadchromium_src-ed038bff0dc6d14b38f8c74d89d252b35f105881.zip
chromium_src-ed038bff0dc6d14b38f8c74d89d252b35f105881.tar.gz
chromium_src-ed038bff0dc6d14b38f8c74d89d252b35f105881.tar.bz2
This CL adds an intra-priority level sorting value for finer grained control of resource loading. The blink side of this patch sorts visible images by estimated on screen real-estate, preferring to download images with more visual impact first. Ie. On a page with a large banner, and dozens of small icons, the large banner will most likely be scheduled ahead of the others.
In the future, we can also use this to experiment with other signals, ie. prioritize by distance to viewport. This needs https://codereview.chromium.org/153983004/ to land first. In our tests, this was a nice win on speed-index for desktop, with a gain of about ~2-3%. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260665 Review URL: https://codereview.chromium.org/146333004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/resource_messages.h')
-rw-r--r--content/common/resource_messages.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index 73a5956..a77864f 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -342,6 +342,7 @@ IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
int /* request_id */)
// Sent by the renderer when a resource request changes priority.
-IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority,
+IPC_MESSAGE_CONTROL3(ResourceHostMsg_DidChangePriority,
int /* request_id */,
- net::RequestPriority)
+ net::RequestPriority,
+ int /* intra_priority_value */)