summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_update_job.h
diff options
context:
space:
mode:
authorjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:11:42 +0000
committerjennb@chromium.org <jennb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 18:11:42 +0000
commit4f6c2faf31dcfd7d76ba617930884dbcb32802ee (patch)
treeff38ae7be5316fa9af1a6b25374b70ed1e84d986 /webkit/appcache/appcache_update_job.h
parente4da01c7723a09831395bbac6d896c8ce762c892 (diff)
downloadchromium_src-4f6c2faf31dcfd7d76ba617930884dbcb32802ee.zip
chromium_src-4f6c2faf31dcfd7d76ba617930884dbcb32802ee.tar.gz
chromium_src-4f6c2faf31dcfd7d76ba617930884dbcb32802ee.tar.bz2
Load manifest data for newest cache from storage to compare against fetched manifest.
TEST=updated BUG=none Review URL: http://codereview.chromium.org/386013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job.h')
-rw-r--r--webkit/appcache/appcache_update_job.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h
index b65ecd5..b60ca0b 100644
--- a/webkit/appcache/appcache_update_job.h
+++ b/webkit/appcache/appcache_update_job.h
@@ -111,12 +111,7 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
// Checks if manifest is byte for byte identical with the manifest
// in the newest application cache.
void CheckIfManifestChanged();
- void ContinueCheckIfManifestChanged(const std::string& loaded_manifest);
-
- // TODO(jennb): delete when able to mock storage behavior
- void SimulateManifestChanged(bool changed) {
- simulate_manifest_changed_ = changed;
- }
+ void OnManifestDataReadComplete(int result);
// Creates the list of files that may need to be fetched and initiates
// fetches. Section 6.9.4 steps 12-17
@@ -194,12 +189,13 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
std::string manifest_refetch_data_;
scoped_ptr<net::HttpResponseInfo> manifest_response_info_;
scoped_ptr<AppCacheResponseWriter> manifest_response_writer_;
+ scoped_refptr<net::IOBuffer> read_manifest_buffer_;
+ std::string loaded_manifest_data_;
+ scoped_ptr<AppCacheResponseReader> manifest_response_reader_;
net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_info_write_callback_;
net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_write_callback_;
-
- // TODO(jennb): delete when able to mock storage behavior
- bool simulate_manifest_changed_;
+ net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_read_callback_;
DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
};