OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 NotificationRegistrar registrar_; | 39 NotificationRegistrar registrar_; |
40 | 40 |
41 // Id of tab which executes code. | 41 // Id of tab which executes code. |
42 int execute_tab_id_; | 42 int execute_tab_id_; |
43 | 43 |
44 // Contains extension resource built from path of file which is | 44 // Contains extension resource built from path of file which is |
45 // specified in JSON arguments. | 45 // specified in JSON arguments. |
46 ExtensionResource resource_; | 46 ExtensionResource resource_; |
47 }; | 47 }; |
48 | 48 |
| 49 class TabsExecuteScriptFunction : public ExecuteCodeInTabFunction { |
| 50 DECLARE_EXTENSION_FUNCTION_NAME("tabs.executeScript") |
| 51 }; |
| 52 |
| 53 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { |
| 54 DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS") |
| 55 }; |
| 56 |
49 #endif // CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 57 #endif // CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
OLD | NEW |