OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_H_ | 5 #ifndef EXTENSIONS_COMMON_MATCHER_URL_MATCHER_H_ |
6 #define CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_H_ | 6 #define EXTENSIONS_COMMON_MATCHER_URL_MATCHER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "chrome/common/extensions/matcher/regex_set_matcher.h" | 14 #include "extensions/common/matcher/regex_set_matcher.h" |
15 #include "chrome/common/extensions/matcher/substring_set_matcher.h" | 15 #include "extensions/common/matcher/substring_set_matcher.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class DictionaryValue; | 20 class DictionaryValue; |
21 } | 21 } |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 // This class represents a single URL matching condition, e.g. a match on the | 25 // This class represents a single URL matching condition, e.g. a match on the |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 SubstringSetMatcher url_component_matcher_; | 333 SubstringSetMatcher url_component_matcher_; |
334 RegexSetMatcher regex_set_matcher_; | 334 RegexSetMatcher regex_set_matcher_; |
335 std::set<const StringPattern*> registered_full_url_patterns_; | 335 std::set<const StringPattern*> registered_full_url_patterns_; |
336 std::set<const StringPattern*> registered_url_component_patterns_; | 336 std::set<const StringPattern*> registered_url_component_patterns_; |
337 | 337 |
338 DISALLOW_COPY_AND_ASSIGN(URLMatcher); | 338 DISALLOW_COPY_AND_ASSIGN(URLMatcher); |
339 }; | 339 }; |
340 | 340 |
341 } // namespace extensions | 341 } // namespace extensions |
342 | 342 |
343 #endif // CHROME_COMMON_EXTENSIONS_MATCHER_URL_MATCHER_H_ | 343 #endif // EXTENSIONS_COMMON_MATCHER_URL_MATCHER_H_ |
OLD | NEW |