summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_update_job.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 23:20:25 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 23:20:25 +0000
commit0b28f3b07cf243d582fcc2ed4a59dceb3e3378ce (patch)
tree9029d0ad8fd76fba12c3a2398f124455fc770004 /webkit/appcache/appcache_update_job.h
parentab2d6f997f12dbc5c182e1c1462df5daa8eaa748 (diff)
downloadchromium_src-0b28f3b07cf243d582fcc2ed4a59dceb3e3378ce.zip
chromium_src-0b28f3b07cf243d582fcc2ed4a59dceb3e3378ce.tar.gz
chromium_src-0b28f3b07cf243d582fcc2ed4a59dceb3e3378ce.tar.bz2
When an update job doesn't complete successfully, doom all responses created by that job.
TEST=existing tests apply BUG=none Review URL: http://codereview.chromium.org/523039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job.h')
-rw-r--r--webkit/appcache/appcache_update_job.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h
index 0d343f0..e4d50ca 100644
--- a/webkit/appcache/appcache_update_job.h
+++ b/webkit/appcache/appcache_update_job.h
@@ -236,6 +236,10 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
std::string loaded_manifest_data_;
scoped_ptr<AppCacheResponseReader> manifest_response_reader_;
+ // Response ids stored by this update job, used to cleanup in
+ // error conditions.
+ std::vector<int64> stored_response_ids_;
+
net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_info_write_callback_;
net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_write_callback_;
net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_read_callback_;