/work/obj-fuzz/dist/include/mozilla/dom/RTCIdentityAssertionBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM RTCIdentityAssertion.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_RTCIdentityAssertionBinding_h |
4 | | #define mozilla_dom_RTCIdentityAssertionBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "js/RootingAPI.h" |
8 | | #include "jspubtd.h" |
9 | | #include "mozilla/ErrorResult.h" |
10 | | #include "mozilla/dom/BindingDeclarations.h" |
11 | | #include "mozilla/dom/Nullable.h" |
12 | | |
13 | | namespace mozilla { |
14 | | namespace dom { |
15 | | |
16 | | struct NativePropertyHooks; |
17 | | class ProtoAndIfaceCache; |
18 | | struct RTCIdentityAssertionAtoms; |
19 | | |
20 | | } // namespace dom |
21 | | } // namespace mozilla |
22 | | |
23 | | namespace mozilla { |
24 | | namespace dom { |
25 | | |
26 | | struct RTCIdentityAssertion : public DictionaryBase |
27 | | { |
28 | | MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mIdp; |
29 | | MOZ_INIT_OUTSIDE_CTOR Optional<nsString> mName; |
30 | | |
31 | | RTCIdentityAssertion(); |
32 | | |
33 | | explicit inline RTCIdentityAssertion(const FastDictionaryInitializer& ) |
34 | 0 | { |
35 | 0 | // Do nothing here; this is used by our "Fast" subclass |
36 | 0 | } |
37 | | |
38 | | explicit inline RTCIdentityAssertion(const RTCIdentityAssertion& aOther) |
39 | 0 | { |
40 | 0 | *this = aOther; |
41 | 0 | } |
42 | | |
43 | | bool |
44 | | Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false); |
45 | | |
46 | | bool |
47 | | Init(const nsAString& aJSON); |
48 | | |
49 | | bool |
50 | | ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const; |
51 | | |
52 | | bool |
53 | | ToJSON(nsAString& aJSON) const; |
54 | | |
55 | | void |
56 | | TraceDictionary(JSTracer* trc); |
57 | | |
58 | | RTCIdentityAssertion& |
59 | | operator=(const RTCIdentityAssertion& aOther); |
60 | | |
61 | | private: |
62 | | static bool |
63 | | InitIds(JSContext* cx, RTCIdentityAssertionAtoms* atomsCache); |
64 | | }; |
65 | | |
66 | | namespace binding_detail { |
67 | | struct FastRTCIdentityAssertion : public RTCIdentityAssertion |
68 | | { |
69 | | inline FastRTCIdentityAssertion() |
70 | | : RTCIdentityAssertion(FastDictionaryInitializer()) |
71 | 0 | { |
72 | 0 | // Doesn't matter what int we pass to the parent constructor |
73 | 0 | } |
74 | | }; |
75 | | } // namespace binding_detail |
76 | | |
77 | | |
78 | | } // namespace dom |
79 | | } // namespace mozilla |
80 | | |
81 | | #endif // mozilla_dom_RTCIdentityAssertionBinding_h |