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

Unified Diff: chrome/browser/content_settings/content_settings_pattern.h

Issue 7049007: Origin Identifier Value Map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 7 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/content_settings/content_settings_pattern.h
diff --git a/chrome/browser/content_settings/content_settings_pattern.h b/chrome/browser/content_settings/content_settings_pattern.h
index 4b55683c81d473f4e99e9afcfe1fc09d72a86723..d1185e2b7ac6581a7ca8b63f5c17c4308e727991 100644
--- a/chrome/browser/content_settings/content_settings_pattern.h
+++ b/chrome/browser/content_settings/content_settings_pattern.h
@@ -122,6 +122,14 @@ class ContentSettingsPattern {
return Compare(other) == IDENTITY;
}
+ bool operator < (const ContentSettingsPattern& other) const {
Bernhard Bauer 2011/05/26 23:14:42 Nit: no space around the less-than-sign.
markusheintz_ 2011/05/31 11:46:41 Done. Same below
+ return Compare(other) == SUCCESSOR;
+ }
+
+ bool operator > (const ContentSettingsPattern& other) const {
+ return Compare(other) == PREDECESSOR;
+ }
+
private:
friend class content_settings::PatternParser;
friend class ContentSettingsPatternParserTest_SerializePatterns_Test;

Powered by Google App Engine
This is Rietveld 408576698