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..ec998634528f42e0c1b75fed33e2755f147805b2 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); |
+ // Wipes out data flagged by the predicate by deleting all saved files and |
+ // clearing the store. |
fgorski
2016/04/07 17:02:49
Deletes offline pages matching the URL predicate.
dmurph
2016/04/08 23:33:45
Done.
|
+ void ClearWithURLPredicate(const base::Callback<bool(const GURL&)> predicate, |
fgorski
2016/04/07 17:02:49
Rename: DeletePagesByURLPredicate
Add tests as we
dmurph
2016/04/08 23:33:45
Done.
|
+ const base::Closure& callback); |
+ |
// Returns true if there're offline pages. |
bool HasOfflinePages() const; |