Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5621)

Unified Diff: chrome/browser/extensions/execute_code_in_tab_function.h

Issue 274059: Small cleanup to extension function registration to avoid scattered definitions. (Closed)
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/execute_code_in_tab_function.h
diff --git a/chrome/browser/extensions/execute_code_in_tab_function.h b/chrome/browser/extensions/execute_code_in_tab_function.h
index 5ea91e6bb6e4fe552bfac88e5e588691981c7239..8215fd26922fc3493dc381080da78560787a28c4 100755
--- a/chrome/browser/extensions/execute_code_in_tab_function.h
+++ b/chrome/browser/extensions/execute_code_in_tab_function.h
@@ -46,4 +46,12 @@ class ExecuteCodeInTabFunction : public AsyncExtensionFunction,
ExtensionResource resource_;
};
+class TabsExecuteScriptFunction : public ExecuteCodeInTabFunction {
+ DECLARE_EXTENSION_FUNCTION_NAME("tabs.executeScript")
+};
+
+class TabsInsertCSSFunction : public ExecuteCodeInTabFunction {
+ DECLARE_EXTENSION_FUNCTION_NAME("tabs.insertCSS")
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_EXECUTE_CODE_IN_TAB_FUNCTION_H__

Powered by Google App Engine
This is Rietveld 408576698