OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_URL_MATCHER_URL_MATCHER_H_ | 5 #ifndef COMPONENTS_URL_MATCHER_URL_MATCHER_H_ |
6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_H_ | 6 #define COMPONENTS_URL_MATCHER_URL_MATCHER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 URLMatcherCondition CreateHostEqualsCondition(const std::string& str); | 137 URLMatcherCondition CreateHostEqualsCondition(const std::string& str); |
138 | 138 |
139 URLMatcherCondition CreatePathPrefixCondition(const std::string& prefix); | 139 URLMatcherCondition CreatePathPrefixCondition(const std::string& prefix); |
140 URLMatcherCondition CreatePathSuffixCondition(const std::string& suffix); | 140 URLMatcherCondition CreatePathSuffixCondition(const std::string& suffix); |
141 URLMatcherCondition CreatePathContainsCondition(const std::string& str); | 141 URLMatcherCondition CreatePathContainsCondition(const std::string& str); |
142 URLMatcherCondition CreatePathEqualsCondition(const std::string& str); | 142 URLMatcherCondition CreatePathEqualsCondition(const std::string& str); |
143 | 143 |
144 URLMatcherCondition CreateQueryPrefixCondition(const std::string& prefix); | 144 URLMatcherCondition CreateQueryPrefixCondition(const std::string& prefix); |
145 URLMatcherCondition CreateQuerySuffixCondition(const std::string& suffix); | 145 URLMatcherCondition CreateQuerySuffixCondition(const std::string& suffix); |
146 URLMatcherCondition CreateQueryContainsCondition(const std::string& str); | 146 URLMatcherCondition CreateQueryContainsCondition(const std::string& str); |
| 147 URLMatcherCondition CreateQueryContainsExactCondition(const std::string& str); |
147 URLMatcherCondition CreateQueryEqualsCondition(const std::string& str); | 148 URLMatcherCondition CreateQueryEqualsCondition(const std::string& str); |
148 | 149 |
149 // This covers the common case, where you don't care whether a domain | 150 // This covers the common case, where you don't care whether a domain |
150 // "foobar.com" is expressed as "foobar.com" or "www.foobar.com", and it | 151 // "foobar.com" is expressed as "foobar.com" or "www.foobar.com", and it |
151 // should be followed by a given |path_prefix|. | 152 // should be followed by a given |path_prefix|. |
152 URLMatcherCondition CreateHostSuffixPathPrefixCondition( | 153 URLMatcherCondition CreateHostSuffixPathPrefixCondition( |
153 const std::string& host_suffix, | 154 const std::string& host_suffix, |
154 const std::string& path_prefix); | 155 const std::string& path_prefix); |
155 URLMatcherCondition CreateHostEqualsPathPrefixCondition( | 156 URLMatcherCondition CreateHostEqualsPathPrefixCondition( |
156 const std::string& host, | 157 const std::string& host, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 RegexSetMatcher origin_and_path_regex_set_matcher_; | 349 RegexSetMatcher origin_and_path_regex_set_matcher_; |
349 std::set<const StringPattern*> registered_full_url_patterns_; | 350 std::set<const StringPattern*> registered_full_url_patterns_; |
350 std::set<const StringPattern*> registered_url_component_patterns_; | 351 std::set<const StringPattern*> registered_url_component_patterns_; |
351 | 352 |
352 DISALLOW_COPY_AND_ASSIGN(URLMatcher); | 353 DISALLOW_COPY_AND_ASSIGN(URLMatcher); |
353 }; | 354 }; |
354 | 355 |
355 } // namespace url_matcher | 356 } // namespace url_matcher |
356 | 357 |
357 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ | 358 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ |
OLD | NEW |