1 // Copyright 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.
5 #ifndef CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_
6 #define CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_
8 #include "chrome/renderer/extensions/object_backed_native_handler.h"
9 #include "v8/include/v8.h"
11 namespace extensions {
13 class ChromeV8Context;
15 // Native code that handle chrome.webrtc custom bindings.
16 class WebRtcNativeHandler : public ObjectBackedNativeHandler {
18 explicit WebRtcNativeHandler(ChromeV8Context* context);
19 virtual ~WebRtcNativeHandler();
22 void CreateCastSendTransport(
23 const v8::FunctionCallbackInfo<v8::Value>& args);
24 void DestroyCastSendTransport(
25 const v8::FunctionCallbackInfo<v8::Value>& args);
26 void CreateParamsCastSendTransport(
27 const v8::FunctionCallbackInfo<v8::Value>& args);
28 void GetCapsCastSendTransport(
29 const v8::FunctionCallbackInfo<v8::Value>& args);
30 void StartCastSendTransport(
31 const v8::FunctionCallbackInfo<v8::Value>& args);
32 void StopCastSendTransport(
33 const v8::FunctionCallbackInfo<v8::Value>& args);
35 void CreateCastUdpTransport(
36 const v8::FunctionCallbackInfo<v8::Value>& args);
37 void DestroyCastUdpTransport(
38 const v8::FunctionCallbackInfo<v8::Value>& args);
39 void StartCastUdpTransport(
40 const v8::FunctionCallbackInfo<v8::Value>& args);
41 void StopCastUdpTransport(
42 const v8::FunctionCallbackInfo<v8::Value>& args);
44 DISALLOW_COPY_AND_ASSIGN(WebRtcNativeHandler);
47 } // namespace extensions
49 #endif // CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_