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

Unified Diff: chrome/common/content_settings_pattern.h

Issue 9133002: Added support for file URI path wildcards in content settings (Closed) Base URL: http://src.chromium.org/svn/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
« no previous file with comments | « AUTHORS ('k') | chrome/common/content_settings_pattern.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « AUTHORS ('k') | chrome/common/content_settings_pattern.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698