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

Unified Diff: components/content_settings/core/browser/host_content_settings_map.h

Issue 2594723002: Count number of origins with data affected by clearing "cookies and site data". (Closed)
Patch Set: Add comments for issues with incomplete data deletion Created 3 years, 11 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 b74865acb39abbfc5c6760930572de5c19dc477e..3888e089564d48ffbea050e4e4300d8685f4bbe7 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -218,6 +218,11 @@ class HostContentSettingsMap : public content_settings::Observer,
// This should only be called on the UI thread.
void ClearSettingsForOneType(ContentSettingsType content_type);
+ // Returns a list of |origins| with that have a setting for |content_type|
+ // stored in the pref provider.
+ std::vector<GURL> GetSitesWithSettingsInPrefProvider(
+ ContentSettingsType content_type);
+
// If |pattern_predicate| is null, this method is equivalent to the above.
// Otherwise, it only deletes exceptions matched by |pattern_predicate|.
void ClearSettingsForOneTypeWithPredicate(

Powered by Google App Engine
This is Rietveld 408576698