Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: content/browser/appcache/appcache_database.h

Issue 879393002: Expire appcaches that fail to update for "too long". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/appcache/appcache_database.h
diff --git a/content/browser/appcache/appcache_database.h b/content/browser/appcache/appcache_database.h
index ccfd891abbbd59983e6d5c2ce0d1464def5fce4a..89d7ff93dc2cded542ba3e144e2b919f8ff786b8 100644
--- a/content/browser/appcache/appcache_database.h
+++ b/content/browser/appcache/appcache_database.h
@@ -54,6 +54,8 @@ class CONTENT_EXPORT AppCacheDatabase {
GURL manifest_url;
base::Time creation_time;
base::Time last_access_time;
+ base::Time last_full_update_check_time;
+ base::Time first_evictable_error_time;
};
struct CONTENT_EXPORT CacheRecord {
@@ -120,6 +122,9 @@ class CONTENT_EXPORT AppCacheDatabase {
int64 group_id, base::Time last_access_time);
bool LazyUpdateLastAccessTime(
int64 group_id, base::Time last_access_time);
+ bool UpdateEvictionTimes(int64 group_id,
+ base::Time last_full_update_check_time,
+ base::Time first_evictable_error_time);
bool CommitLazyLastAccessTimes(); // The destructor calls this too.
bool InsertGroup(const GroupRecord* record);
bool DeleteGroup(int64 group_id);
« no previous file with comments | « no previous file | content/browser/appcache/appcache_database.cc » ('j') | content/browser/appcache/appcache_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698