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 e76be0da0b764d1147b04af5024a6727176f15ac..548767221bbcd03915f771778bc24896214b4153 100644 |
--- a/components/offline_pages/offline_page_model.h |
+++ b/components/offline_pages/offline_page_model.h |
@@ -176,6 +176,11 @@ class OfflinePageModel : public KeyedService, public base::SupportsUserData { |
// Wipes out all the data by deleting all saved files and clearing the store. |
void ClearAll(const base::Closure& callback); |
+ // Deletes offline pages matching the URL predicate. |
+ void DeletePagesByURLPredicate( |
+ const base::Callback<bool(const GURL&)>& predicate, |
+ const DeletePageCallback& callback); |
+ |
// Returns true if there're offline pages. |
bool HasOfflinePages() const; |
@@ -307,6 +312,12 @@ class OfflinePageModel : public KeyedService, public base::SupportsUserData { |
void DoDeletePagesByOfflineId(const std::vector<int64_t>& offline_ids, |
const DeletePageCallback& callback); |
+ // Similar to DoDeletePagesByOfflineId, does actual work of deleting, and |
+ // requires that the model is loaded. |
+ void DoDeletePagesByURLPredicate( |
+ const base::Callback<bool(const GURL&)>& predicate, |
+ const DeletePageCallback& callback); |
+ |
// Persistent store for offline page metadata. |
scoped_ptr<OfflinePageMetadataStore> store_; |