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

Unified Diff: content/browser/appcache/mock_appcache_storage.cc

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, 5 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
« no previous file with comments | « content/browser/appcache/mock_appcache_storage.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/mock_appcache_storage.cc
diff --git a/content/browser/appcache/mock_appcache_storage.cc b/content/browser/appcache/mock_appcache_storage.cc
index efac9ba992ea50cd459cee9dc1722d98fd0b7402..a59fe30c437b8707eb684ca1de05179a30c173cc 100644
--- a/content/browser/appcache/mock_appcache_storage.cc
+++ b/content/browser/appcache/mock_appcache_storage.cc
@@ -155,6 +155,12 @@ void MockAppCacheStorage::MakeGroupObsolete(AppCacheGroup* group,
response_code));
}
+void MockAppCacheStorage::StoreEvictionTimes(AppCacheGroup* group) {
+ stored_eviction_times_[group->group_id()] =
+ std::make_pair(group->last_full_update_check_time(),
+ group->first_evictable_error_time());
+}
+
AppCacheResponseReader* MockAppCacheStorage::CreateResponseReader(
const GURL& manifest_url, int64 group_id, int64 response_id) {
if (simulated_reader_)
« no previous file with comments | « content/browser/appcache/mock_appcache_storage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698