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

Unified Diff: chrome/common/extensions/matcher/url_matcher.h

Issue 10692158: Refactor URLBlacklistManager to use URLMatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 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: chrome/common/extensions/matcher/url_matcher.h
diff --git a/chrome/common/extensions/matcher/url_matcher.h b/chrome/common/extensions/matcher/url_matcher.h
index 8f812ec2f4a7bfa2db937f003becc807d6e5da02..c547ae62fd79c6743bc97c4dde577645cfa41972 100644
--- a/chrome/common/extensions/matcher/url_matcher.h
+++ b/chrome/common/extensions/matcher/url_matcher.h
@@ -44,6 +44,7 @@ class URLMatcherCondition {
QUERY_CONTAINS,
QUERY_EQUALS,
HOST_SUFFIX_PATH_PREFIX,
+ HOST_EQUALS_PATH_PREFIX,
URL_PREFIX,
URL_SUFFIX,
URL_CONTAINS,
@@ -138,6 +139,9 @@ class URLMatcherConditionFactory {
URLMatcherCondition CreateHostSuffixPathPrefixCondition(
const std::string& host_suffix,
const std::string& path_prefix);
+ URLMatcherCondition CreateHostEqualsPathPrefixCondition(
+ const std::string& host,
+ const std::string& path_prefix);
// Canonicalizes a URL for "CreateURL*Condition" searches.
std::string CanonicalizeURLForFullSearches(const GURL& url);

Powered by Google App Engine
This is Rietveld 408576698