Added documentation to web_view.js/web_view_experimental.js regarding the webview...
[chromium-blink-merge.git] / chrome / renderer / extensions / runtime_custom_bindings.h
blob3200eb5c4cf51bdfe6cd56a33737dd1daa828077
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
6 #define CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/renderer/extensions/chrome_v8_extension.h"
10 #include "v8/include/v8.h"
12 class ExtensionDispatcher;
13 class ChromeV8Context;
15 namespace extensions {
17 // The native component of custom bindings for the chrome.runtime API.
18 class RuntimeCustomBindings : public ChromeV8Extension {
19 public:
20 RuntimeCustomBindings(Dispatcher* dispatcher, ChromeV8Context* context);
22 virtual ~RuntimeCustomBindings();
24 // Creates a new messaging channel to the given extension.
25 void OpenChannelToExtension(const v8::FunctionCallbackInfo<v8::Value>& args);
27 // Creates a new messaging channels for the specified native application.
28 void OpenChannelToNativeApp(const v8::FunctionCallbackInfo<v8::Value>& args);
30 private:
31 void GetManifest(const v8::FunctionCallbackInfo<v8::Value>& args);
32 void GetExtensionViews(const v8::FunctionCallbackInfo<v8::Value>& args);
35 } // namespace extensions
37 #endif // CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_