- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / renderer / extensions / webrtc_native_handler.h
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.
4
5 #ifndef CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_
6 #define CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_
7
8 #include "chrome/renderer/extensions/object_backed_native_handler.h"
9 #include "v8/include/v8.h"
10
11 namespace extensions {
12
13 class ChromeV8Context;
14
15 // Native code that handle chrome.webrtc custom bindings.
16 class WebRtcNativeHandler : public ObjectBackedNativeHandler {
17  public:
18   explicit WebRtcNativeHandler(ChromeV8Context* context);
19   virtual ~WebRtcNativeHandler();
20
21  private:
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);
34
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);
43
44   DISALLOW_COPY_AND_ASSIGN(WebRtcNativeHandler);
45 };
46
47 }  // namespace extensions
48
49 #endif  // CHROME_RENDERER_EXTENSIONS_WEBRTC_NATIVE_HANDLER_H_