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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 2015793002: [Offline Pages] Linking storage manager and model with UMAs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wisp
Patch Set: fixing typo in histograms.xml 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 03aba53e238e2e1a87e6c0166cca27c268e70f04..61a77f71bf64625b2efa018d48e9b0d27cb77000 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -340,6 +340,14 @@ class OfflinePageModel : public KeyedService,
const base::Time& expiration_time,
bool success);
+ // Clears expired pages if there are any.
+ void ClearStorageIfNeeded(
+ const OfflinePageStorageManager::ClearStorageCallback& callback);
+
+ // Callback completing storage clearing.
+ void OnStorageCleared(size_t expired_page_count,
+ OfflinePageStorageManager::ClearStorageResult 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