| 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_STRING_PATTERN_H_ | 5 #ifndef COMPONENTS_URL_MATCHER_STRING_PATTERN_H_ |
| 6 #define COMPONENTS_URL_MATCHER_STRING_PATTERN_H_ | 6 #define COMPONENTS_URL_MATCHER_STRING_PATTERN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "components/url_matcher/url_matcher_export.h" | 12 #include "components/url_matcher/url_matcher_export.h" |
| 13 | 13 |
| 14 namespace url_matcher { | 14 namespace url_matcher { |
| 15 | 15 |
| 16 // An individual pattern of a substring or regex matcher. A pattern consists of | 16 // An individual pattern of a substring or regex matcher. A pattern consists of |
| 17 // a string (interpreted as individual bytes, no character encoding) and an | 17 // a string (interpreted as individual bytes, no character encoding) and an |
| 18 // identifier. | 18 // identifier. |
| 19 // IDs are returned to the caller of SubstringSetMatcher::Match() or | 19 // IDs are returned to the caller of SubstringSetMatcher::Match() or |
| 20 // RegexMatcher::MatchURL() to help the caller to figure out what | 20 // RegexMatcher::MatchURL() to help the caller to figure out what |
| 21 // patterns matched a string. All patterns registered to a matcher | 21 // patterns matched a string. All patterns registered to a matcher |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 private: | 34 private: |
| 35 std::string pattern_; | 35 std::string pattern_; |
| 36 ID id_; | 36 ID id_; |
| 37 | 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(StringPattern); | 38 DISALLOW_COPY_AND_ASSIGN(StringPattern); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace url_matcher | 41 } // namespace url_matcher |
| 42 | 42 |
| 43 #endif // COMPONENTS_URL_MATCHER_STRING_PATTERN_H_ | 43 #endif // COMPONENTS_URL_MATCHER_STRING_PATTERN_H_ |
| OLD | NEW |