Chromium Code Reviews| 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..5881e86bec438fc5d97b9a5f42aca98b79bb2662 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, |
|
fgorski
2016/04/11 20:07:27
Pass by const ref as well.
dmurph
2016/04/11 22:29:29
Done.
|
| + 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, |
|
fgorski
2016/04/11 20:07:27
pass by const ref as well.
dmurph
2016/04/11 22:29:29
Done.
|
| + const DeletePageCallback& callback); |
| + |
| // Persistent store for offline page metadata. |
| scoped_ptr<OfflinePageMetadataStore> store_; |