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

Unified Diff: chrome/common/content_settings_pattern.h

Issue 9254028: Added support for file URI path wildcards in content settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: chrome/common/content_settings_pattern.h
diff --git a/chrome/common/content_settings_pattern.h b/chrome/common/content_settings_pattern.h
index 3664851b1aa728a43e2456efe343b0a5b5ff1aa7..0a38f1acb67dd508d1d110ba17171ffa7e764ae1 100644
--- a/chrome/common/content_settings_pattern.h
+++ b/chrome/common/content_settings_pattern.h
@@ -93,6 +93,9 @@ class ContentSettingsPattern {
// specification. Only used for content settings pattern with a "file"
// scheme part.
std::string path;
+
+ // True if the path wildcard is set.
+ bool is_path_wildcard;
};
class BuilderInterface {
@@ -113,6 +116,8 @@ class ContentSettingsPattern {
virtual BuilderInterface* WithPath(const std::string& path) = 0;
+ virtual BuilderInterface* WithPathWildcard() = 0;
+
virtual BuilderInterface* Invalid() = 0;
// Returns a content settings pattern according to the current configuration
@@ -214,9 +219,12 @@ class ContentSettingsPattern {
virtual BuilderInterface* WithPath(const std::string& path) OVERRIDE;
+ virtual BuilderInterface* WithPathWildcard() OVERRIDE;
+
virtual BuilderInterface* Invalid() OVERRIDE;
virtual ContentSettingsPattern Build() OVERRIDE;
+
private:
// Canonicalizes the pattern parts so that they are ASCII only, either
// in original (if it was already ASCII) or punycode form. Returns true if

Powered by Google App Engine
This is Rietveld 408576698