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_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
6 #define CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
12 #include "chrome/common/extensions/extension_resource.h" | 12 #include "chrome/common/extensions/extension_resource.h" |
13 #include "chrome/common/extensions/user_script.h" | 13 #include "chrome/common/extensions/user_script.h" |
14 | 14 |
15 // Implement API call tabs.executeScript and tabs.insertCSS. | 15 // Implement API call tabs.executeScript and tabs.insertCSS. |
16 class ExecuteCodeInTabFunction : public AsyncExtensionFunction { | 16 class ExecuteCodeInTabFunction : public AsyncExtensionFunction { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 DECLARE_EXTENSION_FUNCTION_NAME("tabs.executeScript") | 70 DECLARE_EXTENSION_FUNCTION_NAME("tabs.executeScript") |
71 }; | 71 }; |
72 | 72 |
73 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { | 73 class TabsInsertCSSFunction : public ExecuteCodeInTabFunction { |
74 private: | 74 private: |
75 virtual ~TabsInsertCSSFunction() {} | 75 virtual ~TabsInsertCSSFunction() {} |
76 | 76 |
77 DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS") | 77 DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS") |
78 }; | 78 }; |
79 | 79 |
80 #endif // CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ | 80 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_EXECUTE_CODE_IN_TAB_FUNCTION_H__ |
OLD | NEW |