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

Unified Diff: components/content_settings/core/common/content_settings_pattern.h

Issue 1767423002: [Do not commit] Track revocations in content_settings::Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/common/content_settings_pattern.h
diff --git a/components/content_settings/core/common/content_settings_pattern.h b/components/content_settings/core/common/content_settings_pattern.h
index f85c648bfc036aa9ac0261d0aa3cb62ed0d5318f..791ab87f192b667ce785f618882a75f74b895467 100644
--- a/components/content_settings/core/common/content_settings_pattern.h
+++ b/components/content_settings/core/common/content_settings_pattern.h
@@ -167,6 +167,10 @@ class ContentSettingsPattern {
// True if this pattern matches all hosts (i.e. it has a host wildcard).
bool MatchesAllHosts() const;
+ // True if this pattern has no wildcards (and therefore matches exactly one
+ // host).
+ bool HasNoWildcard() const;
+
// Returns a std::string representation of this pattern.
std::string ToString() const;

Powered by Google App Engine
This is Rietveld 408576698