summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_storage_impl.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 21:39:23 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 21:39:23 +0000
commit31be98b016611afba449aace847074724f51e22d (patch)
tree88c7cf441d37d26a4f7eff0182669035aa8ae35c /webkit/appcache/appcache_storage_impl.cc
parent349e8d271a90f15a4746412c93706cc9f78e4520 (diff)
downloadchromium_src-31be98b016611afba449aace847074724f51e22d.zip
chromium_src-31be98b016611afba449aace847074724f51e22d.tar.gz
chromium_src-31be98b016611afba449aace847074724f51e22d.tar.bz2
Add a DeletableResponseIds table to the appcache database schema, groundwork for purging unused responses from the disk cache.
TEST=yes BUG=none Review URL: http://codereview.chromium.org/523157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_storage_impl.cc')
-rw-r--r--webkit/appcache/appcache_storage_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_storage_impl.cc b/webkit/appcache/appcache_storage_impl.cc
index 44c2365..3d88727 100644
--- a/webkit/appcache/appcache_storage_impl.cc
+++ b/webkit/appcache/appcache_storage_impl.cc
@@ -114,12 +114,14 @@ class AppCacheStorageImpl::InitTask : public DatabaseTask {
int64 last_group_id_;
int64 last_cache_id_;
int64 last_response_id_;
+ int64 last_deletable_response_rowid_;
std::set<GURL> origins_with_groups_;
};
void AppCacheStorageImpl::InitTask::Run() {
database_->FindLastStorageIds(
- &last_group_id_, &last_cache_id_, &last_response_id_);
+ &last_group_id_, &last_cache_id_, &last_response_id_,
+ &last_deletable_response_rowid_);
database_->FindOriginsWithGroups(&origins_with_groups_);
}