Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PWebAuthnTransaction.h"
8 :
9 : namespace mozilla {
10 : namespace dom {
11 : namespace PWebAuthnTransaction {
12 :
13 : nsresult
14 0 : CreateEndpoints(
15 : base::ProcessId aParentDestPid,
16 : base::ProcessId aChildDestPid,
17 : mozilla::ipc::Endpoint<mozilla::dom::PWebAuthnTransactionParent>* aParent,
18 : mozilla::ipc::Endpoint<mozilla::dom::PWebAuthnTransactionChild>* aChild)
19 : {
20 0 : return mozilla::ipc::CreateEndpoints(mozilla::ipc::PrivateIPDLInterface(), aParentDestPid, aChildDestPid, PWebAuthnTransactionMsgStart, PWebAuthnTransactionMsgStartChild, aParent, aChild);
21 : }
22 : void
23 0 : Transition(
24 : MessageType msg,
25 : State* next)
26 : {
27 0 : switch ((*(next))) {
28 : case __Null:
29 0 : if ((Msg___delete____ID) == (msg)) {
30 0 : (*(next)) = __Dead;
31 : }
32 0 : break;
33 : case __Dead:
34 0 : mozilla::ipc::LogicError("__delete__()d actor");
35 0 : break;
36 : default:
37 0 : mozilla::ipc::LogicError("corrupted actor state");
38 0 : break;
39 : }
40 0 : }
41 : IPC::Message*
42 0 : Msg___delete__(int32_t routingId)
43 : {
44 0 : return new IPC::Message(routingId, Msg___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg___delete__", true);
45 : }
46 : IPC::Message*
47 0 : Reply___delete__(int32_t routingId)
48 : {
49 0 : return new IPC::Message(routingId, Reply___delete____ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Reply___delete__", true);
50 : }
51 : IPC::Message*
52 0 : Msg_RequestRegister(int32_t routingId)
53 : {
54 0 : return new IPC::Message(routingId, Msg_RequestRegister__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_RequestRegister", true);
55 : }
56 : IPC::Message*
57 0 : Msg_RequestSign(int32_t routingId)
58 : {
59 0 : return new IPC::Message(routingId, Msg_RequestSign__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_RequestSign", true);
60 : }
61 : IPC::Message*
62 0 : Msg_RequestCancel(int32_t routingId)
63 : {
64 0 : return new IPC::Message(routingId, Msg_RequestCancel__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_RequestCancel", true);
65 : }
66 : IPC::Message*
67 0 : Msg_ConfirmRegister(int32_t routingId)
68 : {
69 0 : return new IPC::Message(routingId, Msg_ConfirmRegister__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_ConfirmRegister", true);
70 : }
71 : IPC::Message*
72 0 : Msg_ConfirmSign(int32_t routingId)
73 : {
74 0 : return new IPC::Message(routingId, Msg_ConfirmSign__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_ConfirmSign", true);
75 : }
76 : IPC::Message*
77 0 : Msg_Cancel(int32_t routingId)
78 : {
79 0 : return new IPC::Message(routingId, Msg_Cancel__ID, 0, IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, "PWebAuthnTransaction::Msg_Cancel", true);
80 : }
81 :
82 : } // namespace PWebAuthnTransaction
83 : } // namespace dom
84 : } // namespace mozilla
85 :
86 : //-----------------------------------------------------------------------------
87 : // Method definitions for the IPDL type |struct WebAuthnScopedCredentialDescriptor|
88 : //
89 : namespace mozilla {
90 : namespace dom {
91 0 : MOZ_IMPLICIT WebAuthnScopedCredentialDescriptor::WebAuthnScopedCredentialDescriptor()
92 : {
93 0 : Init();
94 0 : }
95 :
96 0 : WebAuthnScopedCredentialDescriptor::~WebAuthnScopedCredentialDescriptor()
97 : {
98 0 : }
99 :
100 0 : auto WebAuthnScopedCredentialDescriptor::operator==(const WebAuthnScopedCredentialDescriptor& _o) const -> bool
101 : {
102 0 : if ((!((id()) == ((_o).id())))) {
103 0 : return false;
104 : }
105 0 : return true;
106 : }
107 :
108 0 : auto WebAuthnScopedCredentialDescriptor::operator!=(const WebAuthnScopedCredentialDescriptor& _o) const -> bool
109 : {
110 0 : return (!(operator==(_o)));
111 : }
112 :
113 0 : auto WebAuthnScopedCredentialDescriptor::Init() -> void
114 : {
115 0 : }
116 :
117 0 : auto WebAuthnScopedCredentialDescriptor::Assign(const nsTArray<uint8_t>& _id) -> void
118 : {
119 0 : id_ = _id;
120 0 : }
121 :
122 : } // namespace dom
123 : } // namespace mozilla
124 :
125 : //-----------------------------------------------------------------------------
126 : // Method definitions for the IPDL type |struct WebAuthnExtension|
127 : //
128 : namespace mozilla {
129 : namespace dom {
130 0 : WebAuthnExtension::~WebAuthnExtension()
131 : {
132 0 : }
133 :
134 0 : auto WebAuthnExtension::operator==(const WebAuthnExtension& _o) const -> bool
135 : {
136 0 : return true;
137 : }
138 :
139 0 : auto WebAuthnExtension::operator!=(const WebAuthnExtension& _o) const -> bool
140 : {
141 0 : return (!(operator==(_o)));
142 : }
143 :
144 0 : auto WebAuthnExtension::Init() -> void
145 : {
146 0 : }
147 :
148 0 : auto WebAuthnExtension::Assign() -> void
149 : {
150 0 : }
151 :
152 : } // namespace dom
153 : } // namespace mozilla
154 :
155 : //-----------------------------------------------------------------------------
156 : // Method definitions for the IPDL type |struct WebAuthnTransactionInfo|
157 : //
158 : namespace mozilla {
159 : namespace dom {
160 0 : MOZ_IMPLICIT WebAuthnTransactionInfo::WebAuthnTransactionInfo() :
161 0 : TimeoutMS_()
162 : {
163 0 : Init();
164 0 : }
165 :
166 0 : WebAuthnTransactionInfo::~WebAuthnTransactionInfo()
167 : {
168 0 : }
169 :
170 0 : auto WebAuthnTransactionInfo::operator==(const WebAuthnTransactionInfo& _o) const -> bool
171 : {
172 0 : if ((!((RpIdHash()) == ((_o).RpIdHash())))) {
173 0 : return false;
174 : }
175 0 : if ((!((ClientDataHash()) == ((_o).ClientDataHash())))) {
176 0 : return false;
177 : }
178 0 : if ((!((TimeoutMS()) == ((_o).TimeoutMS())))) {
179 0 : return false;
180 : }
181 0 : if ((!((Descriptors()) == ((_o).Descriptors())))) {
182 0 : return false;
183 : }
184 0 : if ((!((Extensions()) == ((_o).Extensions())))) {
185 0 : return false;
186 : }
187 0 : return true;
188 : }
189 :
190 0 : auto WebAuthnTransactionInfo::operator!=(const WebAuthnTransactionInfo& _o) const -> bool
191 : {
192 0 : return (!(operator==(_o)));
193 : }
194 :
195 0 : auto WebAuthnTransactionInfo::Init() -> void
196 : {
197 0 : }
198 :
199 0 : auto WebAuthnTransactionInfo::Assign(
200 : const nsTArray<uint8_t>& _RpIdHash,
201 : const nsTArray<uint8_t>& _ClientDataHash,
202 : const uint32_t& _TimeoutMS,
203 : const nsTArray<WebAuthnScopedCredentialDescriptor>& _Descriptors,
204 : const nsTArray<WebAuthnExtension>& _Extensions) -> void
205 : {
206 0 : RpIdHash_ = _RpIdHash;
207 0 : ClientDataHash_ = _ClientDataHash;
208 0 : TimeoutMS_ = _TimeoutMS;
209 0 : Descriptors_ = _Descriptors;
210 0 : Extensions_ = _Extensions;
211 0 : }
212 :
213 : } // namespace dom
214 : } // namespace mozilla
|