summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_database.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 20:39:01 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 20:39:01 +0000
commitca25209a0338e538e0199b07bbd5c2411f52e906 (patch)
treec4cb2c20599249e0c8a23b6424551280dfc6fd15 /webkit/appcache/appcache_database.h
parent1ce698cdc9cec84dcd0eea437f266d5e0b217060 (diff)
downloadchromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.zip
chromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.tar.gz
chromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.tar.bz2
Keep track of appcache creation and last access times.
BUG=none TEST=none Review URL: http://codereview.chromium.org/630009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_database.h')
-rw-r--r--webkit/appcache/appcache_database.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_database.h b/webkit/appcache/appcache_database.h
index 97ed9e2..1c02463 100644
--- a/webkit/appcache/appcache_database.h
+++ b/webkit/appcache/appcache_database.h
@@ -34,6 +34,8 @@ class AppCacheDatabase {
int64 group_id;
GURL origin;
GURL manifest_url;
+ base::Time creation_time;
+ base::Time last_access_time;
GroupRecord() : group_id(0) {}
};
@@ -41,7 +43,7 @@ class AppCacheDatabase {
int64 cache_id;
int64 group_id;
bool online_wildcard;
- base::TimeTicks update_time;
+ base::Time update_time;
int64 cache_size; // the sum of all response sizes in this cache
CacheRecord()
: cache_id(0), group_id(0), online_wildcard(false), cache_size(0) {}
@@ -91,6 +93,8 @@ class AppCacheDatabase {
bool FindGroupsForOrigin(
const GURL& origin, std::vector<GroupRecord>* records);
bool FindGroupForCache(int64 cache_id, GroupRecord* record);
+ bool UpdateGroupLastAccessTime(
+ int64 group_id, base::Time last_access_time);
bool InsertGroup(const GroupRecord* record);
bool DeleteGroup(int64 group_id);