Index: chrome/browser/extensions/api/webview/execute_script_function.h |
diff --git a/chrome/browser/extensions/api/webview/execute_script_function.h b/chrome/browser/extensions/api/webview/execute_script_function.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9ecd9e5850211d08253381583878a514d6105542 |
--- /dev/null |
+++ b/chrome/browser/extensions/api/webview/execute_script_function.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_EXECUTE_SCRIPT_FUNCTION_H_ |
+#define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_EXECUTE_SCRIPT_FUNCTION_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/extensions/extension_function.h" |
+#include "chrome/browser/extensions/script_executor.h" |
+ |
+namespace extensions { |
+ |
+class ExecuteScriptFunction : public AsyncExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT) |
+ |
+ ExecuteScriptFunction(); |
+ |
+ protected: |
+ virtual ~ExecuteScriptFunction(); |
+ |
+ // ExtensionFunction implementation. |
+ virtual bool RunImpl() OVERRIDE; |
+ |
+ private: |
+ |
+ void OnExecuteCodeFinished(const std::string& error, |
+ int32 on_page_id, |
+ const GURL& on_url, |
+ const ListValue& result); |
+ |
+}; |
+ |
+} // namespace extensions |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_EXECUTE_SCRIPT_FUNCTION_H_ |