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 <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "components/url_matcher/regex_set_matcher.h" | 16 #include "components/url_matcher/regex_set_matcher.h" |
17 #include "components/url_matcher/substring_set_matcher.h" | 17 #include "components/url_matcher/substring_set_matcher.h" |
18 #include "components/url_matcher/url_matcher_export.h" | 18 #include "components/url_matcher/url_matcher_export.h" |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 | 21 |
22 namespace base { | |
23 class DictionaryValue; | |
24 } | |
25 | |
26 namespace url_matcher { | 22 namespace url_matcher { |
27 | 23 |
28 // This class represents a single URL matching condition, e.g. a match on the | 24 // This class represents a single URL matching condition, e.g. a match on the |
29 // host suffix or the containment of a string in the query component of a GURL. | 25 // host suffix or the containment of a string in the query component of a GURL. |
30 // | 26 // |
31 // The difference from a simple StringPattern is that this also supports | 27 // The difference from a simple StringPattern is that this also supports |
32 // checking whether the {Host, Path, Query} of a URL contains a string. The | 28 // checking whether the {Host, Path, Query} of a URL contains a string. The |
33 // reduction of URL matching conditions to StringPatterns conducted by | 29 // reduction of URL matching conditions to StringPatterns conducted by |
34 // URLMatcherConditionFactory is not capable of expressing that alone. | 30 // URLMatcherConditionFactory is not capable of expressing that alone. |
35 // | 31 // |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 RegexSetMatcher origin_and_path_regex_set_matcher_; | 423 RegexSetMatcher origin_and_path_regex_set_matcher_; |
428 std::set<const StringPattern*> registered_full_url_patterns_; | 424 std::set<const StringPattern*> registered_full_url_patterns_; |
429 std::set<const StringPattern*> registered_url_component_patterns_; | 425 std::set<const StringPattern*> registered_url_component_patterns_; |
430 | 426 |
431 DISALLOW_COPY_AND_ASSIGN(URLMatcher); | 427 DISALLOW_COPY_AND_ASSIGN(URLMatcher); |
432 }; | 428 }; |
433 | 429 |
434 } // namespace url_matcher | 430 } // namespace url_matcher |
435 | 431 |
436 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ | 432 #endif // COMPONENTS_URL_MATCHER_URL_MATCHER_H_ |
OLD | NEW |