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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1997543002: [Useless] Hooking up storage manager in page model. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shouldClean
Patch Set: Created 4 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
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/offline_page_model.h
diff --git a/components/offline_pages/offline_page_model.h b/components/offline_pages/offline_page_model.h
index d5fe0fb782649a99befb40dc2d0806e089dc813c..92013903eb23fc212f54e66453702c1fdaf1fe43 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -215,6 +215,9 @@ class OfflinePageModel : public KeyedService,
// observers.
void CheckForExternalFileDeletion();
+ // Call storage manager to clear expired pages explicitly.
+ void ExpirePages(const OfflinePageStorageManager::ClearPageCallback&);
fgorski 2016/05/19 04:16:23 Who is calling this one?
romax 2016/05/20 00:47:50 No one is calling this one as of now. I was assumi
+
// Returns the policy controller.
ClientPolicyController* GetPolicyController();
@@ -329,6 +332,11 @@ class OfflinePageModel : public KeyedService,
void DoDeletePagesByURLPredicate(const UrlPredicate& predicate,
const DeletePageCallback& callback);
+ // Callbacks for calling storage manager to expire pages.
+ void OnExpiredPagesCleared(
+ const int expired_page_count,
+ OfflinePageStorageManager::StorageClearResult result);
+
void RunWhenLoaded(const base::Closure& job);
// Persistent store for offline page metadata.
« no previous file with comments | « no previous file | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698