/work/obj-fuzz/ipc/ipdl/PSpeechSynthesisRequestParent.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/dom/PSpeechSynthesisRequestParent.h" |
8 | | |
9 | | #include "mozilla/dom/PSpeechSynthesisParent.h" |
10 | | |
11 | | #include "nsIFile.h" |
12 | | #include "GeckoProfiler.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | |
18 | | auto PSpeechSynthesisRequestParent::Recv__delete__() -> mozilla::ipc::IPCResult |
19 | 0 | { |
20 | 0 | return IPC_OK(); |
21 | 0 | } |
22 | | |
23 | | auto PSpeechSynthesisRequestParent::ActorDestroy(ActorDestroyReason aWhy) -> void |
24 | 0 | { |
25 | 0 | } |
26 | | |
27 | | MOZ_IMPLICIT PSpeechSynthesisRequestParent::PSpeechSynthesisRequestParent() : |
28 | | mozilla::ipc::IProtocol(mozilla::ipc::ParentSide), |
29 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
30 | 0 | { |
31 | 0 | MOZ_COUNT_CTOR(PSpeechSynthesisRequestParent); |
32 | 0 | } |
33 | | |
34 | | PSpeechSynthesisRequestParent::~PSpeechSynthesisRequestParent() |
35 | 0 | { |
36 | 0 | MOZ_COUNT_DTOR(PSpeechSynthesisRequestParent); |
37 | 0 | } |
38 | | |
39 | | auto PSpeechSynthesisRequestParent::Manager() const -> PSpeechSynthesisParent* |
40 | 0 | { |
41 | 0 | return static_cast<PSpeechSynthesisParent*>(IProtocol::Manager()); |
42 | 0 | } |
43 | | |
44 | | auto PSpeechSynthesisRequestParent::SendOnEnd( |
45 | | const bool& aIsError, |
46 | | const float& aElapsedTime, |
47 | | const uint32_t& aCharIndex) -> bool |
48 | 0 | { |
49 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnEnd(Id()); |
50 | 0 |
|
51 | 0 | WriteIPDLParam(msg__, this, aIsError); |
52 | 0 | // Sentinel = 'aIsError' |
53 | 0 | (msg__)->WriteSentinel(3979019701); |
54 | 0 | WriteIPDLParam(msg__, this, aElapsedTime); |
55 | 0 | // Sentinel = 'aElapsedTime' |
56 | 0 | (msg__)->WriteSentinel(45978708); |
57 | 0 | WriteIPDLParam(msg__, this, aCharIndex); |
58 | 0 | // Sentinel = 'aCharIndex' |
59 | 0 | (msg__)->WriteSentinel(3951557473); |
60 | 0 |
|
61 | 0 |
|
62 | 0 |
|
63 | 0 |
|
64 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
65 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
66 | 0 | } |
67 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnEnd", OTHER); |
68 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
69 | 0 | mozilla::ipc::LogicError("Transition error"); |
70 | 0 | } |
71 | 0 |
|
72 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
73 | 0 | return sendok__; |
74 | 0 | } |
75 | | |
76 | | auto PSpeechSynthesisRequestParent::SendOnStart(const nsString& aUri) -> bool |
77 | 0 | { |
78 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnStart(Id()); |
79 | 0 |
|
80 | 0 | WriteIPDLParam(msg__, this, aUri); |
81 | 0 | // Sentinel = 'aUri' |
82 | 0 | (msg__)->WriteSentinel(2043506205); |
83 | 0 |
|
84 | 0 |
|
85 | 0 |
|
86 | 0 |
|
87 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
88 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
89 | 0 | } |
90 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnStart", OTHER); |
91 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
92 | 0 | mozilla::ipc::LogicError("Transition error"); |
93 | 0 | } |
94 | 0 |
|
95 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
96 | 0 | return sendok__; |
97 | 0 | } |
98 | | |
99 | | auto PSpeechSynthesisRequestParent::SendOnPause( |
100 | | const float& aElapsedTime, |
101 | | const uint32_t& aCharIndex) -> bool |
102 | 0 | { |
103 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnPause(Id()); |
104 | 0 |
|
105 | 0 | WriteIPDLParam(msg__, this, aElapsedTime); |
106 | 0 | // Sentinel = 'aElapsedTime' |
107 | 0 | (msg__)->WriteSentinel(45978708); |
108 | 0 | WriteIPDLParam(msg__, this, aCharIndex); |
109 | 0 | // Sentinel = 'aCharIndex' |
110 | 0 | (msg__)->WriteSentinel(3951557473); |
111 | 0 |
|
112 | 0 |
|
113 | 0 |
|
114 | 0 |
|
115 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
116 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
117 | 0 | } |
118 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnPause", OTHER); |
119 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
120 | 0 | mozilla::ipc::LogicError("Transition error"); |
121 | 0 | } |
122 | 0 |
|
123 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
124 | 0 | return sendok__; |
125 | 0 | } |
126 | | |
127 | | auto PSpeechSynthesisRequestParent::SendOnResume( |
128 | | const float& aElapsedTime, |
129 | | const uint32_t& aCharIndex) -> bool |
130 | 0 | { |
131 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnResume(Id()); |
132 | 0 |
|
133 | 0 | WriteIPDLParam(msg__, this, aElapsedTime); |
134 | 0 | // Sentinel = 'aElapsedTime' |
135 | 0 | (msg__)->WriteSentinel(45978708); |
136 | 0 | WriteIPDLParam(msg__, this, aCharIndex); |
137 | 0 | // Sentinel = 'aCharIndex' |
138 | 0 | (msg__)->WriteSentinel(3951557473); |
139 | 0 |
|
140 | 0 |
|
141 | 0 |
|
142 | 0 |
|
143 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
144 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
145 | 0 | } |
146 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnResume", OTHER); |
147 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
148 | 0 | mozilla::ipc::LogicError("Transition error"); |
149 | 0 | } |
150 | 0 |
|
151 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
152 | 0 | return sendok__; |
153 | 0 | } |
154 | | |
155 | | auto PSpeechSynthesisRequestParent::SendOnBoundary( |
156 | | const nsString& aName, |
157 | | const float& aElapsedTime, |
158 | | const uint32_t& aCharIndex, |
159 | | const uint32_t& aCharLength, |
160 | | const uint8_t& argc) -> bool |
161 | 0 | { |
162 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnBoundary(Id()); |
163 | 0 |
|
164 | 0 | WriteIPDLParam(msg__, this, aName); |
165 | 0 | // Sentinel = 'aName' |
166 | 0 | (msg__)->WriteSentinel(1450162941); |
167 | 0 | WriteIPDLParam(msg__, this, aElapsedTime); |
168 | 0 | // Sentinel = 'aElapsedTime' |
169 | 0 | (msg__)->WriteSentinel(45978708); |
170 | 0 | WriteIPDLParam(msg__, this, aCharIndex); |
171 | 0 | // Sentinel = 'aCharIndex' |
172 | 0 | (msg__)->WriteSentinel(3951557473); |
173 | 0 | WriteIPDLParam(msg__, this, aCharLength); |
174 | 0 | // Sentinel = 'aCharLength' |
175 | 0 | (msg__)->WriteSentinel(1167657610); |
176 | 0 | WriteIPDLParam(msg__, this, argc); |
177 | 0 | // Sentinel = 'argc' |
178 | 0 | (msg__)->WriteSentinel(2823760603); |
179 | 0 |
|
180 | 0 |
|
181 | 0 |
|
182 | 0 |
|
183 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
184 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
185 | 0 | } |
186 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnBoundary", OTHER); |
187 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
188 | 0 | mozilla::ipc::LogicError("Transition error"); |
189 | 0 | } |
190 | 0 |
|
191 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
192 | 0 | return sendok__; |
193 | 0 | } |
194 | | |
195 | | auto PSpeechSynthesisRequestParent::SendOnMark( |
196 | | const nsString& aName, |
197 | | const float& aElapsedTime, |
198 | | const uint32_t& aCharIndex) -> bool |
199 | 0 | { |
200 | 0 | IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_OnMark(Id()); |
201 | 0 |
|
202 | 0 | WriteIPDLParam(msg__, this, aName); |
203 | 0 | // Sentinel = 'aName' |
204 | 0 | (msg__)->WriteSentinel(1450162941); |
205 | 0 | WriteIPDLParam(msg__, this, aElapsedTime); |
206 | 0 | // Sentinel = 'aElapsedTime' |
207 | 0 | (msg__)->WriteSentinel(45978708); |
208 | 0 | WriteIPDLParam(msg__, this, aCharIndex); |
209 | 0 | // Sentinel = 'aCharIndex' |
210 | 0 | (msg__)->WriteSentinel(3951557473); |
211 | 0 |
|
212 | 0 |
|
213 | 0 |
|
214 | 0 |
|
215 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
216 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
217 | 0 | } |
218 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnMark", OTHER); |
219 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
220 | 0 | mozilla::ipc::LogicError("Transition error"); |
221 | 0 | } |
222 | 0 |
|
223 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
224 | 0 | return sendok__; |
225 | 0 | } |
226 | | |
227 | | auto PSpeechSynthesisRequestParent::RemoveManagee( |
228 | | int32_t aProtocolId, |
229 | | IProtocol* aListener) -> void |
230 | 0 | { |
231 | 0 | FatalError("unreached"); |
232 | 0 | return; |
233 | 0 | } |
234 | | |
235 | | auto PSpeechSynthesisRequestParent::OnMessageReceived(const Message& msg__) -> PSpeechSynthesisRequestParent::Result |
236 | 0 | { |
237 | 0 | switch ((msg__).type()) { |
238 | 0 | case PSpeechSynthesisRequest::Msg___delete____ID: |
239 | 0 | { |
240 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
241 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
242 | 0 | } |
243 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg___delete__", OTHER); |
244 | 0 |
|
245 | 0 | PickleIterator iter__(msg__); |
246 | 0 | PSpeechSynthesisRequestParent* actor; |
247 | 0 |
|
248 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) { |
249 | 0 | FatalError("Error deserializing 'PSpeechSynthesisRequestParent'"); |
250 | 0 | return MsgValueError; |
251 | 0 | } |
252 | 0 | if ((!((*((&(actor))))))) { |
253 | 0 | FatalError("Error deserializing 'PSpeechSynthesisRequestParent'"); |
254 | 0 | return MsgValueError; |
255 | 0 | } |
256 | 0 | // Sentinel = 'actor' |
257 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
258 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PSpeechSynthesisRequestParent'"); |
259 | 0 | return MsgValueError; |
260 | 0 | } |
261 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
262 | 0 | if ((!(StateTransition(true, (&(mLivenessState)))))) { |
263 | 0 | FatalError("Transition error"); |
264 | 0 | return MsgValueError; |
265 | 0 | } |
266 | 0 | if ((!(Recv__delete__()))) { |
267 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
268 | 0 | // Error handled in mozilla::ipc::IPCResult |
269 | 0 | return MsgProcessingError; |
270 | 0 | } |
271 | 0 | |
272 | 0 | |
273 | 0 | IProtocol* mgr = (actor)->Manager(); |
274 | 0 | (actor)->DestroySubtree(Deletion); |
275 | 0 | (actor)->DeallocSubtree(); |
276 | 0 | (mgr)->RemoveManagee(PSpeechSynthesisRequestMsgStart, actor); |
277 | 0 |
|
278 | 0 | return MsgProcessed; |
279 | 0 | } |
280 | 0 | case PSpeechSynthesisRequest::Msg_Pause__ID: |
281 | 0 | { |
282 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
283 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
284 | 0 | } |
285 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Pause", OTHER); |
286 | 0 |
|
287 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
288 | 0 | FatalError("Transition error"); |
289 | 0 | return MsgValueError; |
290 | 0 | } |
291 | 0 | if ((!(RecvPause()))) { |
292 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
293 | 0 | // Error handled in mozilla::ipc::IPCResult |
294 | 0 | return MsgProcessingError; |
295 | 0 | } |
296 | 0 | |
297 | 0 | return MsgProcessed; |
298 | 0 | } |
299 | 0 | case PSpeechSynthesisRequest::Msg_Resume__ID: |
300 | 0 | { |
301 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
302 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
303 | 0 | } |
304 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Resume", OTHER); |
305 | 0 |
|
306 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
307 | 0 | FatalError("Transition error"); |
308 | 0 | return MsgValueError; |
309 | 0 | } |
310 | 0 | if ((!(RecvResume()))) { |
311 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
312 | 0 | // Error handled in mozilla::ipc::IPCResult |
313 | 0 | return MsgProcessingError; |
314 | 0 | } |
315 | 0 | |
316 | 0 | return MsgProcessed; |
317 | 0 | } |
318 | 0 | case PSpeechSynthesisRequest::Msg_Cancel__ID: |
319 | 0 | { |
320 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
321 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
322 | 0 | } |
323 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Cancel", OTHER); |
324 | 0 |
|
325 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
326 | 0 | FatalError("Transition error"); |
327 | 0 | return MsgValueError; |
328 | 0 | } |
329 | 0 | if ((!(RecvCancel()))) { |
330 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
331 | 0 | // Error handled in mozilla::ipc::IPCResult |
332 | 0 | return MsgProcessingError; |
333 | 0 | } |
334 | 0 | |
335 | 0 | return MsgProcessed; |
336 | 0 | } |
337 | 0 | case PSpeechSynthesisRequest::Msg_ForceEnd__ID: |
338 | 0 | { |
339 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
340 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
341 | 0 | } |
342 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_ForceEnd", OTHER); |
343 | 0 |
|
344 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
345 | 0 | FatalError("Transition error"); |
346 | 0 | return MsgValueError; |
347 | 0 | } |
348 | 0 | if ((!(RecvForceEnd()))) { |
349 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
350 | 0 | // Error handled in mozilla::ipc::IPCResult |
351 | 0 | return MsgProcessingError; |
352 | 0 | } |
353 | 0 | |
354 | 0 | return MsgProcessed; |
355 | 0 | } |
356 | 0 | case PSpeechSynthesisRequest::Msg_SetAudioOutputVolume__ID: |
357 | 0 | { |
358 | 0 | if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestParent")) { |
359 | 0 | mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
360 | 0 | } |
361 | 0 | AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_SetAudioOutputVolume", OTHER); |
362 | 0 |
|
363 | 0 | PickleIterator iter__(msg__); |
364 | 0 | float aVolume; |
365 | 0 |
|
366 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aVolume)))))) { |
367 | 0 | FatalError("Error deserializing 'float'"); |
368 | 0 | return MsgValueError; |
369 | 0 | } |
370 | 0 | // Sentinel = 'aVolume' |
371 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3908369896)))) { |
372 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'float'"); |
373 | 0 | return MsgValueError; |
374 | 0 | } |
375 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
376 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
377 | 0 | FatalError("Transition error"); |
378 | 0 | return MsgValueError; |
379 | 0 | } |
380 | 0 | if ((!(RecvSetAudioOutputVolume(aVolume)))) { |
381 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
382 | 0 | // Error handled in mozilla::ipc::IPCResult |
383 | 0 | return MsgProcessingError; |
384 | 0 | } |
385 | 0 | |
386 | 0 | return MsgProcessed; |
387 | 0 | } |
388 | 0 | default: |
389 | 0 | { |
390 | 0 | return MsgNotKnown; |
391 | 0 | } |
392 | 0 | } |
393 | 0 | } |
394 | | |
395 | | auto PSpeechSynthesisRequestParent::OnMessageReceived( |
396 | | const Message& msg__, |
397 | | Message*& reply__) -> PSpeechSynthesisRequestParent::Result |
398 | 0 | { |
399 | 0 | return MsgNotKnown; |
400 | 0 | } |
401 | | |
402 | | auto PSpeechSynthesisRequestParent::OnCallReceived( |
403 | | const Message& msg__, |
404 | | Message*& reply__) -> PSpeechSynthesisRequestParent::Result |
405 | 0 | { |
406 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
407 | 0 | return MsgNotKnown; |
408 | 0 | } |
409 | | |
410 | | auto PSpeechSynthesisRequestParent::GetProtocolTypeId() -> int32_t |
411 | 0 | { |
412 | 0 | return PSpeechSynthesisRequestMsgStart; |
413 | 0 | } |
414 | | |
415 | | auto PSpeechSynthesisRequestParent::DestroySubtree(ActorDestroyReason why) -> void |
416 | 0 | { |
417 | 0 | // Unregister from our manager. |
418 | 0 | Unregister(Id()); |
419 | 0 |
|
420 | 0 | // Reject owning pending responses. |
421 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
422 | 0 |
|
423 | 0 | // Finally, destroy "us". |
424 | 0 | ActorDestroy(why); |
425 | 0 | } |
426 | | |
427 | | auto PSpeechSynthesisRequestParent::DeallocSubtree() -> void |
428 | 0 | { |
429 | 0 | } |
430 | | |
431 | | |
432 | | |
433 | | } // namespace dom |
434 | | } // namespace mozilla |
435 | | namespace mozilla { |
436 | | namespace ipc { |
437 | | auto IPDLParamTraits<mozilla::dom::PSpeechSynthesisRequestParent>::Write( |
438 | | IPC::Message* aMsg, |
439 | | mozilla::ipc::IProtocol* aActor, |
440 | | const paramType& aVar) -> void |
441 | 0 | { |
442 | 0 | int32_t id; |
443 | 0 | if ((!(aVar))) { |
444 | 0 | id = 0; |
445 | 0 | } |
446 | 0 | else { |
447 | 0 | id = (aVar)->Id(); |
448 | 0 | if ((1) == (id)) { |
449 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
450 | 0 | } |
451 | 0 | } |
452 | 0 | WriteIPDLParam(aMsg, aActor, id); |
453 | 0 | } |
454 | | |
455 | | auto IPDLParamTraits<mozilla::dom::PSpeechSynthesisRequestParent>::Read( |
456 | | const IPC::Message* aMsg, |
457 | | PickleIterator* aIter, |
458 | | mozilla::ipc::IProtocol* aActor, |
459 | | paramType* aVar) -> bool |
460 | 0 | { |
461 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PSpeechSynthesisRequest", PSpeechSynthesisRequestMsgStart); |
462 | 0 | if ((actor).isNothing()) { |
463 | 0 | return false; |
464 | 0 | } |
465 | 0 | |
466 | 0 | (*(aVar)) = static_cast<mozilla::dom::PSpeechSynthesisRequestParent*>((actor).value()); |
467 | 0 | return true; |
468 | 0 | } |
469 | | |
470 | | } // namespace ipc |
471 | | } // namespace mozilla |