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

Unified Diff: content/browser/appcache/appcache.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, 11 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.h
diff --git a/content/browser/appcache/appcache.h b/content/browser/appcache/appcache.h
index a444579a64d04834843f916086ee99c35e7ed43b..27863ceccdc2cf39a68f75aeb782e61e3f520840 100644
--- a/content/browser/appcache/appcache.h
+++ b/content/browser/appcache/appcache.h
@@ -103,8 +103,13 @@ class CONTENT_EXPORT AppCache
return false;
}
+ // When this version was stored by an update job.
base::Time update_time() const { return update_time_; }
+ // Used to evict caches that fail to update in a reasonable timeframe.
+ base::Time newest_successful_unconditional_update_check_time() { return base::Time(); }
palmer 2015/04/21 19:56:34 In the real implementation, these wouldn't really
michaeln 2015/04/21 20:20:15 Just like update_time, the value would stored on d
+ base::Time oldest_failed_update_check_time() const; { return base::Time(); }
+
int64 cache_size() const { return cache_size_; }
void set_update_time(base::Time ticks) { update_time_ = ticks; }
« no previous file with comments | « no previous file | content/browser/appcache/appcache_update_job.cc » ('j') | content/browser/appcache/appcache_update_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698