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

Unified Diff: chrome/browser/browsing_data/origin_filter_builder.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: Created 4 years, 10 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: chrome/browser/browsing_data/origin_filter_builder.h
diff --git a/chrome/browser/browsing_data/origin_filter_builder.h b/chrome/browser/browsing_data/origin_filter_builder.h
index 092ec42b161422ee8c87132d9a155c3d8e2fe4f7..18c22fa6933c20dfaac9356820567fb72fe9fd9f 100644
--- a/chrome/browser/browsing_data/origin_filter_builder.h
+++ b/chrome/browser/browsing_data/origin_filter_builder.h
@@ -18,7 +18,9 @@
class OriginFilterBuilder {
public:
enum Mode {
+ // This means that only the origins given will be deleted.
WHITELIST,
+ // This means that the origins given will NOT be deleted.
BLACKLIST
};
@@ -33,6 +35,9 @@ class OriginFilterBuilder {
// Sets the |mode| of the filter.
void SetMode(Mode mode);
+ // Returns if we're an empty blacklist, where we delete everything.
+ bool IsEmptyBlacklist() const;
+
// Builds a filter that matches URLs whose origins are in the whitelist,
// or aren't in the blacklist.
base::Callback<bool(const GURL&)> BuildSameOriginFilter() const;

Powered by Google App Engine
This is Rietveld 408576698