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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1993953002: [Offline pages] Adding expiration capability to OfflinePageModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing 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
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..0e336ccf4144bdf21a1cb799879efa31d07dbb7f 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -215,6 +215,11 @@ class OfflinePageModel : public KeyedService,
// observers.
void CheckForExternalFileDeletion();
+ // Marks pages as expired and removes their respective files from the archive
+ // directory.
+ void ExpirePages(const std::vector<int64_t>& offline_ids,
+ const base::Time& expiration_time);
+
// Returns the policy controller.
ClientPolicyController* GetPolicyController();
@@ -329,6 +334,11 @@ class OfflinePageModel : public KeyedService,
void DoDeletePagesByURLPredicate(const UrlPredicate& predicate,
const DeletePageCallback& callback);
+ // Callback completing page expiration.
+ void OnExpirePageDone(int64_t offline_id,
+ const base::Time& expiration_time,
+ bool success);
+
void RunWhenLoaded(const base::Closure& job);
// Persistent store for offline page metadata.
« no previous file with comments | « components/offline_pages/offline_page_metadata_store_sql.cc ('k') | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698