diff options
author | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 00:54:57 +0000 |
---|---|---|
committer | jennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-01 00:54:57 +0000 |
commit | a17b674580be4397cf56e2c955fac9f2c4a3bfaa (patch) | |
tree | 09e01865679b16cbaa27d55de7ee02930d304ec2 /webkit/appcache/appcache_host.h | |
parent | b2fb9ff65d58beffec6a59853e1c3cfa5ecdb173 (diff) | |
download | chromium_src-a17b674580be4397cf56e2c955fac9f2c4a3bfaa.zip chromium_src-a17b674580be4397cf56e2c955fac9f2c4a3bfaa.tar.gz chromium_src-a17b674580be4397cf56e2c955fac9f2c4a3bfaa.tar.bz2 |
Appcache update support for pending master entries:
- Update process issues a URL request to fetch pending master entries.
- Pending master entry fetch logic kept separate from regular url fetching as this will be the case in the long-term solution.
- No optimizations to avoid issuing URL request if pending master entry is also listed in the manifest. (simpler)
- Only optimized to prevent refetching something that has already been successfully fetched.
Long-term optimized solution should be to siphon the responses as the master resource is downloaded instead of having the update job issue URL requests.
TEST=new tests for update jobs with pending master entries
BUG=none
Review URL: http://codereview.chromium.org/402098
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_host.h')
-rw-r--r-- | webkit/appcache/appcache_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_host.h b/webkit/appcache/appcache_host.h index 0622e3f..f154bae 100644 --- a/webkit/appcache/appcache_host.h +++ b/webkit/appcache/appcache_host.h @@ -84,6 +84,12 @@ class AppCacheHost : public AppCacheStorage::Delegate, // Used to ensure that a loaded appcache survives a frame navigation. void LoadMainResourceCache(int64 cache_id); + // Used by the update job to keep track of which hosts are associated + // with which pending master entries. + const GURL& pending_master_entry_url() const { + return new_master_entry_url_; + } + int host_id() const { return host_id_; } AppCacheService* service() const { return service_; } AppCacheFrontend* frontend() const { return frontend_; } @@ -163,6 +169,7 @@ class AppCacheHost : public AppCacheStorage::Delegate, ObserverList<Observer> observers_; friend class AppCacheRequestHandlerTest; + friend class AppCacheUpdateJobTest; FRIEND_TEST(AppCacheTest, CleanupUnusedCache); FRIEND_TEST(AppCacheGroupTest, CleanupUnusedGroup); FRIEND_TEST(AppCacheHostTest, Basic); |