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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.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: components/content_settings/core/browser/host_content_settings_map.h
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h
index 98fe724f79dc75b7aa9aebc0b87c4d8e0ebe80cc..cd695516c6e90c16c238f086200ac008ec37a049 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -12,6 +12,7 @@
#include <string>
#include <vector>
+#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list.h"
@@ -188,6 +189,18 @@ class HostContentSettingsMap : public content_settings::Observer,
// This should only be called on the UI thread.
void ClearSettingsForOneType(ContentSettingsType content_type);
+
+ // Clears all host-specific settings for one content type that satisfy the
+ // given predicate.
+ //
+ // This should only be called on the UI thread.
+ void ClearSettingsForOneTypeWithPredicate(
raymes 2016/02/29 00:44:59 Hey Daniel, we chatted about potentially using Get
msramek 2016/02/29 17:46:07 I would disagree. If the deletion is done in an it
dmurph 2016/03/01 00:10:00 I moved the method to a static method in the Brows
raymes 2016/03/01 00:14:50 Great, thanks! This sounds much better :)
+ ContentSettingsType content_type,
+ const base::Callback<
+ bool(const ContentSettingsPattern& primary_pattern,
+ const ContentSettingsPattern& secondary_pattern)>
+ predicate);
+
static bool IsDefaultSettingAllowedForType(ContentSetting setting,
ContentSettingsType content_type);

Powered by Google App Engine
This is Rietveld 408576698