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

Unified Diff: content/browser/appcache/mock_appcache_storage.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, 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
Index: content/browser/appcache/mock_appcache_storage.h
diff --git a/content/browser/appcache/mock_appcache_storage.h b/content/browser/appcache/mock_appcache_storage.h
index 7803ff7cc5ad7c9f4b52a051cab06aa35ee9eab0..25c95846e45c10e29458150bd74a02af3d474571 100644
--- a/content/browser/appcache/mock_appcache_storage.h
+++ b/content/browser/appcache/mock_appcache_storage.h
@@ -67,6 +67,7 @@ class MockAppCacheStorage : public AppCacheStorage {
void MakeGroupObsolete(AppCacheGroup* group,
Delegate* delegate,
int response_code) override;
+ void StoreEvictionTimes(AppCacheGroup* group) override;
AppCacheResponseReader* CreateResponseReader(const GURL& manifest_url,
int64 group_id,
int64 response_id) override;
@@ -89,6 +90,8 @@ class MockAppCacheStorage : public AppCacheStorage {
typedef base::hash_map<int64, scoped_refptr<AppCache> > StoredCacheMap;
typedef std::map<GURL, scoped_refptr<AppCacheGroup> > StoredGroupMap;
typedef std::set<int64> DoomedResponseIds;
+ typedef std::map<int64, std::pair<base::Time, base::Time>>
+ StoredEvictionTimesMap;
void ProcessGetAllInfo(scoped_refptr<DelegateReference> delegate_ref);
void ProcessLoadCache(
@@ -194,6 +197,7 @@ class MockAppCacheStorage : public AppCacheStorage {
StoredCacheMap stored_caches_;
StoredGroupMap stored_groups_;
+ StoredEvictionTimesMap stored_eviction_times_;
DoomedResponseIds doomed_response_ids_;
scoped_ptr<AppCacheDiskCache> disk_cache_;
std::deque<base::Closure> pending_tasks_;
« no previous file with comments | « content/browser/appcache/appcache_update_job_unittest.cc ('k') | content/browser/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698