Index: chrome/common/content_settings_pattern.h |
=================================================================== |
--- chrome/common/content_settings_pattern.h (revision 118265) |
+++ chrome/common/content_settings_pattern.h (working copy) |
@@ -93,6 +93,9 @@ |
// 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 @@ |
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 @@ |
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 |