summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_group.h
diff options
context:
space:
mode:
authorjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:52:21 +0000
committerjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:52:21 +0000
commit9fb8cf6994d2c87644f5819b360bfa4d4a5af820 (patch)
tree03aa196ce0f5217a5c2a569cd013c9c44087ca93 /webkit/appcache/appcache_group.h
parent5d4cd6254ffb1a1f6720803adb8ef611d89df2c3 (diff)
downloadchromium_src-9fb8cf6994d2c87644f5819b360bfa4d4a5af820.zip
chromium_src-9fb8cf6994d2c87644f5819b360bfa4d4a5af820.tar.gz
chromium_src-9fb8cf6994d2c87644f5819b360bfa4d4a5af820.tar.bz2
Add storage code to appcache update process.
Add storage API for simulating storage errors. TEST=verify appcache update wrote to storage correctly BUG=none Review URL: http://codereview.chromium.org/326002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_group.h')
-rw-r--r--webkit/appcache/appcache_group.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_group.h b/webkit/appcache/appcache_group.h
index 6f3c210..dece474 100644
--- a/webkit/appcache/appcache_group.h
+++ b/webkit/appcache/appcache_group.h
@@ -86,6 +86,10 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
const Caches& old_caches() const { return old_caches_; }
+ // Used by update process to restore the group's newest cache if storage
+ // fails to store the newly created cache.
+ void RestoreCacheAsNewest(AppCache* cache);
+
GURL manifest_url_;
UpdateStatus update_status_;
bool is_obsolete_;