OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
| 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 #include "chrome/browser/extensions/script_executor.h" |
| 10 |
| 11 class WebviewExecuteScriptFunction : public AsyncExtensionFunction { |
| 12 public: |
| 13 DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT) |
| 14 |
| 15 WebviewExecuteScriptFunction(); |
| 16 |
| 17 protected: |
| 18 virtual ~WebviewExecuteScriptFunction(); |
| 19 |
| 20 // ExtensionFunction implementation. |
| 21 virtual bool RunImpl() OVERRIDE; |
| 22 |
| 23 private: |
| 24 |
| 25 void OnExecuteCodeFinished(const std::string& error, |
| 26 int32 on_page_id, |
| 27 const GURL& on_url, |
| 28 const ListValue& result); |
| 29 |
| 30 }; |
| 31 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
OLD | NEW |