summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/resource_dispatcher_host.h
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 17:48:14 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 17:48:14 +0000
commit0a8efffe56a55dd191da6b9d65829a23791af4e4 (patch)
tree1d378c5f4735d93c2c8a86faeef1a985a4a0155c /chrome/browser/renderer_host/resource_dispatcher_host.h
parentecde2747b368a859e01614c7894fca25f670f1e5 (diff)
downloadchromium_src-0a8efffe56a55dd191da6b9d65829a23791af4e4.zip
chromium_src-0a8efffe56a55dd191da6b9d65829a23791af4e4.tar.gz
chromium_src-0a8efffe56a55dd191da6b9d65829a23791af4e4.tar.bz2
Upgrade fonts to receive MEDIUM request priority like scripts and
stylesheets. A detailed discussion can be found here: http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/ http://paulirish.com/2009/fighting-the-font-face-fout/ Also, factor out resource priorities and ensure that all types are considered. BUG=none TEST=none Review URL: http://codereview.chromium.org/1572013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.h')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.h b/chrome/browser/renderer_host/resource_dispatcher_host.h
index e6d5d24..b9b7930 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.h
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.h
@@ -417,6 +417,10 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
const ResourceType::Type& resource_type,
ResourceDispatcherHostRequestInfo* request_info);
+ // Determine request priority based on how critical this resource typically
+ // is to user-perceived page load performance.
+ static net::RequestPriority DetermineRequestPriority(ResourceType::Type type);
+
PendingRequestList pending_requests_;
// A timer that periodically calls UpdateLoadStates while pending_requests_