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

Side by Side Diff: chrome/browser/extensions/api/execute_code_function.h

Issue 543873002: Add ChromeExtensionFunctionDetails (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_EXECUTE_CODE_FUNCTION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EXECUTE_CODE_FUNCTION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EXECUTE_CODE_FUNCTION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EXECUTE_CODE_FUNCTION_H_
7 7
8 #include "chrome/browser/extensions/chrome_extension_function.h"
9 #include "chrome/common/extensions/api/tabs.h" 8 #include "chrome/common/extensions/api/tabs.h"
9 #include "extensions/browser/extension_function.h"
10 #include "extensions/browser/script_executor.h" 10 #include "extensions/browser/script_executor.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // Base class for javascript code injection. 14 // Base class for javascript code injection.
15 // This is used by both chrome.webview.executeScript and 15 // This is used by both chrome.webview.executeScript and
16 // chrome.tabs.executeScript. 16 // chrome.tabs.executeScript.
17 class ExecuteCodeFunction : public ChromeAsyncExtensionFunction { 17 class ExecuteCodeFunction : public AsyncExtensionFunction {
18 public: 18 public:
19 ExecuteCodeFunction(); 19 ExecuteCodeFunction();
20 20
21 protected: 21 protected:
22 virtual ~ExecuteCodeFunction(); 22 virtual ~ExecuteCodeFunction();
23 23
24 // ExtensionFunction implementation. 24 // ExtensionFunction implementation.
25 virtual bool HasPermission() OVERRIDE; 25 virtual bool HasPermission() OVERRIDE;
26 virtual bool RunAsync() OVERRIDE; 26 virtual bool RunAsync() OVERRIDE;
27 27
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ExtensionResource resource_; 65 ExtensionResource resource_;
66 66
67 // The URL of the file being injected into the page. 67 // The URL of the file being injected into the page.
68 GURL file_url_; 68 GURL file_url_;
69 }; 69 };
70 70
71 } // namespace extensions 71 } // namespace extensions
72 72
73 #endif // CHROME_BROWSER_EXTENSIONS_API_EXECUTE_CODE_FUNCTION_H_ 73 #endif // CHROME_BROWSER_EXTENSIONS_API_EXECUTE_CODE_FUNCTION_H_
74 74
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/tabs/tabs_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698