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_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "extensions/browser/api/declarative/declarative_rule.h" | |
13 #include "extensions/browser/declarative_user_script_master.h" | 12 #include "extensions/browser/declarative_user_script_master.h" |
14 #include "extensions/common/user_script.h" | 13 #include "extensions/common/user_script.h" |
15 | 14 |
16 namespace base { | 15 namespace base { |
17 class Time; | 16 class Time; |
18 class Value; | 17 class Value; |
| 18 class DictionaryValue; |
19 } | 19 } |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 class BrowserContext; | 22 class BrowserContext; |
23 class WebContents; | 23 class WebContents; |
24 } | 24 } |
25 | 25 |
26 namespace extensions { | 26 namespace extensions { |
27 class Extension; | 27 class Extension; |
28 | 28 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 void InstructRenderProcessToInject(content::WebContents* contents, | 152 void InstructRenderProcessToInject(content::WebContents* contents, |
153 const std::string& extension_id) const; | 153 const std::string& extension_id) const; |
154 | 154 |
155 UserScript script_; | 155 UserScript script_; |
156 DeclarativeUserScriptMaster* master_; | 156 DeclarativeUserScriptMaster* master_; |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(RequestContentScript); | 158 DISALLOW_COPY_AND_ASSIGN(RequestContentScript); |
159 }; | 159 }; |
160 | 160 |
161 typedef DeclarativeActionSet<ContentAction> ContentActionSet; | |
162 | |
163 } // namespace extensions | 161 } // namespace extensions |
164 | 162 |
165 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ | 163 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_CONTENT_CONTENT_ACTION_H_ |
OLD | NEW |