diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 01:26:10 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 01:26:10 +0000 |
commit | 4f32303e4491c3b2358825e0b26f8c5db3b28b33 (patch) | |
tree | eeb15549ae8540ddc6e1be0a5400247d5f771844 /webkit/appcache/appcache_update_job.h | |
parent | e07dfdab975039ea0719e8dc7e7f5faaf0887a91 (diff) | |
download | chromium_src-4f32303e4491c3b2358825e0b26f8c5db3b28b33.zip chromium_src-4f32303e4491c3b2358825e0b26f8c5db3b28b33.tar.gz chromium_src-4f32303e4491c3b2358825e0b26f8c5db3b28b33.tar.bz2 |
Undo in memory changes made by an update job if the commit to disk fails. Provide a more clear error message when the commit fails due to exceeding the quota.
TEST=MasterEntryFailStoreNewestCacheTest
BUG=50985
Review URL: http://codereview.chromium.org/2836075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job.h')
-rw-r--r-- | webkit/appcache/appcache_update_job.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h index ff6452c..d4a7d40 100644 --- a/webkit/appcache/appcache_update_job.h +++ b/webkit/appcache/appcache_update_job.h @@ -104,7 +104,7 @@ class AppCacheUpdateJob : public URLRequest::Delegate, void OnResponseInfoLoaded(AppCacheResponseInfo* response_info, int64 response_id); void OnGroupAndNewestCacheStored(AppCacheGroup* group, AppCache* newest_cache, - bool success); + bool success, bool would_exceed_quota); void OnGroupMadeObsolete(AppCacheGroup* group, bool success); // Methods for AppCacheHost::Observer. @@ -263,6 +263,10 @@ class AppCacheUpdateJob : public URLRequest::Delegate, std::string loaded_manifest_data_; scoped_ptr<AppCacheResponseReader> manifest_response_reader_; + // New master entries added to the cache by this job, used to cleanup + // in error conditions. + std::vector<GURL> added_master_entries_; + // Response ids stored by this update job, used to cleanup in // error conditions. std::vector<int64> stored_response_ids_; |