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

Side by Side 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 unified diff | Download patch
OLDNEW
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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698