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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1307753002: [Offline pages] Adding capability to free up space used by Offline pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Converting jlongarray to std::vector<int64> Created 5 years, 4 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 d97f90ae9db12aaa4b01f1734564d87da191b50d..402e909e0176087fdf9002fca0613c1e99e5db67 100644
--- a/components/offline_pages/offline_page_model.h
+++ b/components/offline_pages/offline_page_model.h
@@ -137,6 +137,10 @@ class OfflinePageModel : public KeyedService,
// Gets all available offline pages. Requires that the model is loaded.
const std::vector<OfflinePageItem> GetAllPages() const;
+ // Gets pages that should be removed to clean up storage. Requires that the
+ // model is loaded.
+ const std::vector<OfflinePageItem> GetPagesToCleanUp() const;
+
// Gets an offline page associated with a specified |bookmark_id|. Returns
// true if a matching offline page exists, and |offline_page| will be updated
// with corresponding value, or false, if no offline page was found.
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_bridge.cc ('k') | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698