diff options
author | gavinp@google.com <gavinp@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 01:30:03 +0000 |
---|---|---|
committer | gavinp@google.com <gavinp@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-31 01:30:03 +0000 |
commit | c9c6f5cbd15124457b0fe77f03fda9e4c4855f48 (patch) | |
tree | c23bd4ba9fbe29cfd872bc38f4f3b808c39fd949 /webkit/glue/weburlloader_impl.cc | |
parent | 8dd21c4de17c8011703f3ac5a6e155b6325f65a2 (diff) | |
download | chromium_src-c9c6f5cbd15124457b0fe77f03fda9e4c4855f48.zip chromium_src-c9c6f5cbd15124457b0fe77f03fda9e4c4855f48.tar.gz chromium_src-c9c6f5cbd15124457b0fe77f03fda9e4c4855f48.tar.bz2 |
Implement prefetching in chrome
With this CL (see also issue 2910009), chrome will support basic
prefetching. You can optionally deactivate prefetching with the
command line argument --disable-prefetch.
A new RequestPriority was created as well, IDLE, which is lower
than LOWEST. Unfortunately, SPDY has only two bits for priority, so
as a temporary measure (pending SPDY v3 which will have three), we
have a mapping in SPDY that folds net::LOWEST and net::IDLE together.
BUG=13505
TEST=http://gemal.dk/browserspy/prefetch.php
Review URL: http://codereview.chromium.org/3050016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r-- | webkit/glue/weburlloader_impl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc index dcb05fa..3b61bc0 100644 --- a/webkit/glue/weburlloader_impl.cc +++ b/webkit/glue/weburlloader_impl.cc @@ -132,6 +132,8 @@ ResourceType::Type FromTargetType(WebURLRequest::TargetType type) { return ResourceType::WORKER; case WebURLRequest::TargetIsSharedWorker: return ResourceType::SHARED_WORKER; + case WebURLRequest::TargetIsPrefetch: + return ResourceType::PREFETCH; default: NOTREACHED(); return ResourceType::SUB_RESOURCE; |