OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_EVAL
UATOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_EVAL
UATOR_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_EVAL
UATOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_EVAL
UATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/extensions/api/declarative_content/content_predicate.h" | 12 #include "chrome/browser/extensions/api/declarative_content/content_predicate.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class BrowserContext; | 15 class BrowserContext; |
16 struct FrameNavigateParams; | 16 struct FrameNavigateParams; |
17 struct LoadCommittedDetails; | 17 struct LoadCommittedDetails; |
18 class WebContents; | 18 class WebContents; |
19 } // namespace content | 19 } // namespace content |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 class Extension; | |
24 | |
25 // Creates and manages instances of an associated ContentPredicate subclass and | 23 // Creates and manages instances of an associated ContentPredicate subclass and |
26 // tracks the url and browser context state required to evaluate the predicates. | 24 // tracks the url and browser context state required to evaluate the predicates. |
27 // | 25 // |
28 // A ContentPredicateEvaluator corresponds to a single attribute name across all | 26 // A ContentPredicateEvaluator corresponds to a single attribute name across all |
29 // chrome.declarativeContent.PageStateMatchers provided in all rules in the | 27 // chrome.declarativeContent.PageStateMatchers provided in all rules in the |
30 // Declarative Content API. For example, given the rules: | 28 // Declarative Content API. For example, given the rules: |
31 // | 29 // |
32 // var rule1 = { | 30 // var rule1 = { |
33 // conditions: [ | 31 // conditions: [ |
34 // new chrome.declarativeContent.PageStateMatcher({ | 32 // new chrome.declarativeContent.PageStateMatcher({ |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 Delegate(); | 130 Delegate(); |
133 virtual ~Delegate(); | 131 virtual ~Delegate(); |
134 | 132 |
135 private: | 133 private: |
136 DISALLOW_COPY_AND_ASSIGN(Delegate); | 134 DISALLOW_COPY_AND_ASSIGN(Delegate); |
137 }; | 135 }; |
138 | 136 |
139 } // namespace extensions | 137 } // namespace extensions |
140 | 138 |
141 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_E
VALUATOR_H_ | 139 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_PREDICATE_E
VALUATOR_H_ |
OLD | NEW |