/work/obj-fuzz/dist/include/mozilla/dom/PeerConnectionImplBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM PeerConnectionImpl.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_PeerConnectionImplBinding_h |
4 | | #define mozilla_dom_PeerConnectionImplBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "PeerConnectionImplEnumsBinding.h" |
8 | | #include "RTCPeerConnectionBinding.h" |
9 | | #include "js/RootingAPI.h" |
10 | | #include "jspubtd.h" |
11 | | #include "mozilla/ErrorResult.h" |
12 | | #include "mozilla/dom/BindingDeclarations.h" |
13 | | #include "mozilla/dom/Nullable.h" |
14 | | #include "mozilla/dom/PrototypeList.h" |
15 | | |
16 | | namespace mozilla { |
17 | | |
18 | | class PeerConnectionImpl; |
19 | | struct PeerConnectionImplAtoms; |
20 | | |
21 | | namespace dom { |
22 | | |
23 | | struct NativePropertyHooks; |
24 | | class ProtoAndIfaceCache; |
25 | | |
26 | | } // namespace dom |
27 | | |
28 | | } // namespace mozilla |
29 | | |
30 | | namespace mozilla { |
31 | | namespace dom { |
32 | | |
33 | | namespace PeerConnectionImpl_Binding { |
34 | | |
35 | | typedef mozilla::PeerConnectionImpl NativeType; |
36 | | |
37 | | bool |
38 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
39 | | |
40 | | const JSClass* |
41 | | GetJSClass(); |
42 | | |
43 | | bool |
44 | | Wrap(JSContext* aCx, mozilla::PeerConnectionImpl* aObject, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
45 | | |
46 | | // We declare this as an array so that retrieving a pointer to this |
47 | | // binding's property hooks only requires compile/link-time resolvable |
48 | | // address arithmetic. Declaring it as a pointer instead would require |
49 | | // doing a run-time load to fetch a pointer to this binding's property |
50 | | // hooks. And then structures which embedded a pointer to this structure |
51 | | // would require a run-time load for proper initialization, which would |
52 | | // then induce static constructors. Lots of static constructors. |
53 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
54 | | |
55 | | void |
56 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
57 | | |
58 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
59 | 0 | { |
60 | 0 | /* Get the interface prototype object for this class. This will create the |
61 | 0 | object as needed. */ |
62 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::PeerConnectionImpl, |
63 | 0 | &CreateInterfaceObjects, |
64 | 0 | /* aDefineOnGlobal = */ true); |
65 | 0 |
|
66 | 0 | } |
67 | | |
68 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
69 | 0 | { |
70 | 0 | /* Get the interface object for this class. This will create the object as |
71 | 0 | needed. */ |
72 | 0 |
|
73 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::PeerConnectionImpl, |
74 | 0 | &CreateInterfaceObjects, |
75 | 0 | aDefineOnGlobal); |
76 | 0 | } |
77 | | |
78 | | JSObject* |
79 | | GetConstructorObject(JSContext* aCx); |
80 | | |
81 | | } // namespace PeerConnectionImpl_Binding |
82 | | |
83 | | |
84 | | |
85 | | } // namespace dom |
86 | | } // namespace mozilla |
87 | | |
88 | | #endif // mozilla_dom_PeerConnectionImplBinding_h |