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..d670b78760c3e489af40cfe160cb93da45ec6f55 100644 |
--- a/chrome/common/content_settings_pattern.h |
+++ b/chrome/common/content_settings_pattern.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -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 |