Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 246 // Used to indicate if the query parameter is of type &key=value& | 246 // Used to indicate if the query parameter is of type &key=value& |
| 247 // (ELEMENT_TYPE_KEY_VALUE) or simply &key& (ELEMENT_TYPE_KEY). | 247 // (ELEMENT_TYPE_KEY_VALUE) or simply &key& (ELEMENT_TYPE_KEY). |
| 248 enum QueryElementType { ELEMENT_TYPE_KEY_VALUE, ELEMENT_TYPE_KEY }; | 248 enum QueryElementType { ELEMENT_TYPE_KEY_VALUE, ELEMENT_TYPE_KEY }; |
| 249 | 249 |
| 250 URLQueryElementMatcherCondition(const std::string& key, | 250 URLQueryElementMatcherCondition(const std::string& key, |
| 251 const std::string& value, | 251 const std::string& value, |
| 252 QueryValueMatchType query_value_match_type, | 252 QueryValueMatchType query_value_match_type, |
| 253 QueryElementType query_element_type, | 253 QueryElementType query_element_type, |
| 254 Type match_type, | 254 Type match_type, |
| 255 URLMatcherConditionFactory* factory); | 255 URLMatcherConditionFactory* factory); |
| 256 URLQueryElementMatcherCondition(const URLQueryElementMatcherCondition& other); | |
|
jochen (gone - plz use gerrit)
2016/02/24 08:10:49
i wonder whether this class should rather be DISAL
vmpstr
2016/02/25 00:20:38
It's being copied over here:
https://code.google.c
| |
| 256 ~URLQueryElementMatcherCondition(); | 257 ~URLQueryElementMatcherCondition(); |
| 257 | 258 |
| 258 bool operator<(const URLQueryElementMatcherCondition& rhs) const; | 259 bool operator<(const URLQueryElementMatcherCondition& rhs) const; |
| 259 | 260 |
| 260 // Returns whether the URL query satisfies the key value constraint. | 261 // Returns whether the URL query satisfies the key value constraint. |
| 261 bool IsMatch(const std::string& canonical_url_query) const; | 262 bool IsMatch(const std::string& canonical_url_query) const; |
| 262 | 263 |
| 263 const StringPattern* string_pattern() const { return string_pattern_; } | 264 const StringPattern* string_pattern() const { return string_pattern_; } |
| 264 | 265 |
| 265 private: | 266 private: |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 424 RegexSetMatcher origin_and_path_regex_set_matcher_; | 425 RegexSetMatcher origin_and_path_regex_set_matcher_; |
| 425 std::set<const StringPattern*> registered_full_url_patterns_; | 426 std::set<const StringPattern*> registered_full_url_patterns_; |
| 426 std::set<const StringPattern*> registered_url_component_patterns_; | 427 std::set<const StringPattern*> registered_url_component_patterns_; |
| 427 | 428 |
| 428 DISALLOW_COPY_AND_ASSIGN(URLMatcher); | 429 DISALLOW_COPY_AND_ASSIGN(URLMatcher); |
| 429 }; | 430 }; |
| 430 | 431 |
| 431 } // namespace url_matcher | 432 } // namespace url_matcher |
| 432 | 433 |
| 433 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ | 434 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ |
| OLD | NEW |