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

Unified Diff: components/offline_pages/offline_page_model.h

Issue 1741123002: Add removal filter support for Cookies, Storage, and Content Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android Created 4 years, 8 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 | « chrome/chrome_tests_unit.gypi ('k') | 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 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_;
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | components/offline_pages/offline_page_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698