diff options
author | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-05 19:45:32 +0000 |
---|---|---|
committer | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-05 19:45:32 +0000 |
commit | 102ab68eeb932e56276abd727b2b850e29abcd0b (patch) | |
tree | 85c8a8726e363cff02c86cec70bd00fa6b12b040 /content/common/resource_messages.h | |
parent | 185c0345eceb16301eac0b2a129382517f6acf04 (diff) | |
download | chromium_src-102ab68eeb932e56276abd727b2b850e29abcd0b.zip chromium_src-102ab68eeb932e56276abd727b2b850e29abcd0b.tar.gz chromium_src-102ab68eeb932e56276abd727b2b850e29abcd0b.tar.bz2 |
Use WebKit's resource priorities instead of computing our own.
This has no effect on PLT, Speed Index, TTFB, or first paint.
This simply allows us to benefit from improvements to WebKit's prioritization. For instance, deferred scripts should be lower priority than blocking scripts. We'll likely use the priority to deprioritize preloads too.
In practical terms, the only significant change is that WebKit prioritizes CSS above JS and fonts. That didn't affect the metrics.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/12045105
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/resource_messages.h')
-rw-r--r-- | content/common/resource_messages.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h index 03220af..ed53ec7 100644 --- a/content/common/resource_messages.h +++ b/content/common/resource_messages.h @@ -144,6 +144,9 @@ IPC_STRUCT_BEGIN(ResourceHostMsg_Request) // object). IPC_STRUCT_MEMBER(ResourceType::Type, resource_type) + // The priority of this request. + IPC_STRUCT_MEMBER(WebKit::WebURLRequest::Priority, priority) + // Used by plugin->browser requests to get the correct net::URLRequestContext. IPC_STRUCT_MEMBER(uint32, request_context) |