summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/extension_process_bindings.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 09:18:27 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 09:18:27 +0000
commit309d7a28aa6c938f60ac7a543ab4a73827d29562 (patch)
treea806e83ff1533242c190a736519dbd31d43fb1e6 /chrome/renderer/extensions/extension_process_bindings.h
parentcb2c560e5c5761329e614aeeaeb6ccb5dcfc1987 (diff)
downloadchromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.zip
chromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.tar.gz
chromium_src-309d7a28aa6c938f60ac7a543ab4a73827d29562.tar.bz2
Add basic infrastructure for sending async browser API request and receiving results.
Review URL: http://codereview.chromium.org/42262 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/extension_process_bindings.h')
-rw-r--r--chrome/renderer/extensions/extension_process_bindings.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h
new file mode 100644
index 0000000..cbdd0bd
--- /dev/null
+++ b/chrome/renderer/extensions/extension_process_bindings.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2009 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.
+
+// Exposes extension APIs into the extension process.
+
+#ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
+#define CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_
+
+#include <string>
+
+#include "v8/include/v8.h"
+
+class WebFrame;
+
+namespace extensions_v8 {
+
+class ExtensionProcessBindings {
+ public:
+ static v8::Extension* Get();
+ static void ExecuteCallbackInFrame(WebFrame* frame, int callback_id,
+ const std::string& response);
+};
+
+} // namespace extensions_v8
+
+#endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_PROCESS_BINDINGS_H_