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

Unified Diff: extensions/common/url_pattern_set.h

Issue 377553003: Create a ManifestPermission implementation for Automation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Working, probably; untested Created 6 years, 5 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: extensions/common/url_pattern_set.h
diff --git a/extensions/common/url_pattern_set.h b/extensions/common/url_pattern_set.h
index 0cab66740ccc9effadc6dfd581d6da5b3c601440..fc079dcc9cbfb68564e3c1656f564d79a37ca296 100644
--- a/extensions/common/url_pattern_set.h
+++ b/extensions/common/url_pattern_set.h
@@ -78,6 +78,8 @@ class URLPatternSet {
// Test if the extent contains a URL.
bool MatchesURL(const GURL& url) const;
+ bool MatchesAllURLs() const;
+
bool MatchesSecurityOrigin(const GURL& origin) const;
// Returns true if there is a single URL that would be in two extents.
@@ -90,6 +92,8 @@ class URLPatternSet {
bool allow_file_access,
std::string* error);
+ // Converts to and from a vector of strings.
+ scoped_ptr<std::vector<std::string> > ToStringVector() const;
bool Populate(const std::vector<std::string>& patterns,
int valid_schemes,
bool allow_file_access,

Powered by Google App Engine
This is Rietveld 408576698