diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 20:00:11 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 20:00:11 +0000 |
commit | 6c270d442c1ee1a526538b8530e6198a9ada90e4 (patch) | |
tree | 5e5ccfbcd54cc59bbb250a233cf128df9dac5fab /webkit/appcache/appcache_service.cc | |
parent | e10d86c2067313fa2cdc8684b5f0904b0d8d985e (diff) | |
download | chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.zip chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.tar.gz chromium_src-6c270d442c1ee1a526538b8530e6198a9ada90e4.tar.bz2 |
1) Tell the AppCacheService which request context to use when fetching resources for updates. Done for both chrome and test_shell. The service does not yet take a reference to that context, because the extra reference apparently gives some tests grief.
2) Added methods to generate new storage ids for different object types on the IO thread.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/195077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_service.cc')
-rw-r--r-- | webkit/appcache/appcache_service.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_service.cc b/webkit/appcache/appcache_service.cc index 0fd5356..029c4ef 100644 --- a/webkit/appcache/appcache_service.cc +++ b/webkit/appcache/appcache_service.cc @@ -11,6 +11,11 @@ namespace appcache { +AppCacheService::AppCacheService() + : last_cache_id_(0), last_group_id_(0), + last_entry_id_(0), last_response_id_(0) { +} + AppCacheService::~AppCacheService() { DCHECK(backends_.empty()); DCHECK(caches_.empty()); @@ -20,6 +25,7 @@ AppCacheService::~AppCacheService() { void AppCacheService::Initialize(const FilePath& cache_directory) { // An empty cache directory indicates chrome incognito. cache_directory_ = cache_directory; + // TODO(michaeln): load last_<foo>_ids from storage } void AppCacheService::RegisterBackend( |