Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PWyciwygChannelChild.h"
8 : #include "SerializedLoadContext.h"
9 :
10 : #include "mozilla/net/PNeckoChild.h"
11 : #include "mozilla/dom/PBrowserChild.h"
12 :
13 : #include "nsIFile.h"
14 : #include "GeckoProfiler.h"
15 :
16 : namespace mozilla {
17 : namespace net {
18 :
19 :
20 0 : auto PWyciwygChannelChild::ActorDestroy(ActorDestroyReason aWhy) -> void
21 : {
22 0 : }
23 :
24 0 : MOZ_IMPLICIT PWyciwygChannelChild::PWyciwygChannelChild() :
25 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
26 0 : mState(PWyciwygChannel::__Dead)
27 : {
28 0 : MOZ_COUNT_CTOR(PWyciwygChannelChild);
29 0 : }
30 :
31 0 : PWyciwygChannelChild::~PWyciwygChannelChild()
32 : {
33 0 : MOZ_COUNT_DTOR(PWyciwygChannelChild);
34 0 : }
35 :
36 0 : auto PWyciwygChannelChild::Manager() const -> PNeckoChild*
37 : {
38 0 : return static_cast<PNeckoChild*>(IProtocol::Manager());
39 : }
40 :
41 0 : auto PWyciwygChannelChild::Send__delete__(PWyciwygChannelChild* actor) -> bool
42 : {
43 0 : if ((!(actor))) {
44 0 : return false;
45 : }
46 :
47 0 : IPC::Message* msg__ = PWyciwygChannel::Msg___delete__((actor)->Id());
48 :
49 0 : (actor)->Write(actor, msg__, false);
50 : // Sentinel = 'actor'
51 0 : (msg__)->WriteSentinel(875202478);
52 :
53 :
54 :
55 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
56 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
57 : }
58 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg___delete__", OTHER);
59 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg___delete____ID, (&((actor)->mState)));
60 :
61 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
62 :
63 0 : IProtocol* mgr = (actor)->Manager();
64 0 : (actor)->DestroySubtree(Deletion);
65 0 : (actor)->DeallocSubtree();
66 0 : (mgr)->RemoveManagee(PWyciwygChannelMsgStart, actor);
67 0 : return sendok__;
68 : }
69 :
70 0 : auto PWyciwygChannelChild::SendInit(
71 : const URIParams& uri,
72 : const PrincipalInfo& requestingPrincipalInfo,
73 : const PrincipalInfo& triggeringPrincipalInfo,
74 : const PrincipalInfo& principalToInheritInfo,
75 : const uint32_t& securityFlags,
76 : const uint32_t& contentPolicyType) -> bool
77 : {
78 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_Init(Id());
79 :
80 0 : Write(uri, msg__);
81 : // Sentinel = 'uri'
82 0 : (msg__)->WriteSentinel(1453210605);
83 0 : Write(requestingPrincipalInfo, msg__);
84 : // Sentinel = 'requestingPrincipalInfo'
85 0 : (msg__)->WriteSentinel(3181737698);
86 0 : Write(triggeringPrincipalInfo, msg__);
87 : // Sentinel = 'triggeringPrincipalInfo'
88 0 : (msg__)->WriteSentinel(4145483429);
89 0 : Write(principalToInheritInfo, msg__);
90 : // Sentinel = 'principalToInheritInfo'
91 0 : (msg__)->WriteSentinel(3087636212);
92 0 : Write(securityFlags, msg__);
93 : // Sentinel = 'securityFlags'
94 0 : (msg__)->WriteSentinel(1948430358);
95 0 : Write(contentPolicyType, msg__);
96 : // Sentinel = 'contentPolicyType'
97 0 : (msg__)->WriteSentinel(3089607692);
98 :
99 :
100 :
101 :
102 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
103 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
104 : }
105 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_Init", OTHER);
106 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_Init__ID, (&(mState)));
107 :
108 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
109 0 : return sendok__;
110 : }
111 :
112 0 : auto PWyciwygChannelChild::SendAsyncOpen(
113 : const URIParams& originalURI,
114 : const uint32_t& loadFlags,
115 : const SerializedLoadContext& loadContext,
116 : const PBrowserOrId& browser) -> bool
117 : {
118 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_AsyncOpen(Id());
119 :
120 0 : Write(originalURI, msg__);
121 : // Sentinel = 'originalURI'
122 0 : (msg__)->WriteSentinel(2451791718);
123 0 : Write(loadFlags, msg__);
124 : // Sentinel = 'loadFlags'
125 0 : (msg__)->WriteSentinel(2391120444);
126 0 : Write(loadContext, msg__);
127 : // Sentinel = 'loadContext'
128 0 : (msg__)->WriteSentinel(2917317838);
129 0 : Write(browser, msg__);
130 : // Sentinel = 'browser'
131 0 : (msg__)->WriteSentinel(2836343679);
132 :
133 :
134 :
135 :
136 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
137 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
138 : }
139 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_AsyncOpen", OTHER);
140 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_AsyncOpen__ID, (&(mState)));
141 :
142 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
143 0 : return sendok__;
144 : }
145 :
146 0 : auto PWyciwygChannelChild::SendAppData(
147 : const SerializedLoadContext& loadContext,
148 : const PBrowserOrId& browser) -> bool
149 : {
150 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_AppData(Id());
151 :
152 0 : Write(loadContext, msg__);
153 : // Sentinel = 'loadContext'
154 0 : (msg__)->WriteSentinel(2917317838);
155 0 : Write(browser, msg__);
156 : // Sentinel = 'browser'
157 0 : (msg__)->WriteSentinel(2836343679);
158 :
159 :
160 :
161 :
162 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
163 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
164 : }
165 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_AppData", OTHER);
166 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_AppData__ID, (&(mState)));
167 :
168 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
169 0 : return sendok__;
170 : }
171 :
172 0 : auto PWyciwygChannelChild::SendWriteToCacheEntry(const nsDependentSubstring& data) -> bool
173 : {
174 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_WriteToCacheEntry(Id());
175 :
176 0 : Write(data, msg__);
177 : // Sentinel = 'data'
178 0 : (msg__)->WriteSentinel(843352540);
179 :
180 :
181 :
182 :
183 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
184 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
185 : }
186 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_WriteToCacheEntry", OTHER);
187 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_WriteToCacheEntry__ID, (&(mState)));
188 :
189 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
190 0 : return sendok__;
191 : }
192 :
193 0 : auto PWyciwygChannelChild::SendCloseCacheEntry(const nsresult& reason) -> bool
194 : {
195 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_CloseCacheEntry(Id());
196 :
197 0 : Write(reason, msg__);
198 : // Sentinel = 'reason'
199 0 : (msg__)->WriteSentinel(4151390930);
200 :
201 :
202 :
203 :
204 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
205 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
206 : }
207 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_CloseCacheEntry", OTHER);
208 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_CloseCacheEntry__ID, (&(mState)));
209 :
210 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
211 0 : return sendok__;
212 : }
213 :
214 0 : auto PWyciwygChannelChild::SendSetCharsetAndSource(
215 : const int32_t& source,
216 : const nsCString& charset) -> bool
217 : {
218 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_SetCharsetAndSource(Id());
219 :
220 0 : Write(source, msg__);
221 : // Sentinel = 'source'
222 0 : (msg__)->WriteSentinel(774264369);
223 0 : Write(charset, msg__);
224 : // Sentinel = 'charset'
225 0 : (msg__)->WriteSentinel(1551550891);
226 :
227 :
228 :
229 :
230 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
231 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
232 : }
233 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_SetCharsetAndSource", OTHER);
234 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_SetCharsetAndSource__ID, (&(mState)));
235 :
236 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
237 0 : return sendok__;
238 : }
239 :
240 0 : auto PWyciwygChannelChild::SendSetSecurityInfo(const nsCString& securityInfo) -> bool
241 : {
242 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_SetSecurityInfo(Id());
243 :
244 0 : Write(securityInfo, msg__);
245 : // Sentinel = 'securityInfo'
246 0 : (msg__)->WriteSentinel(158838750);
247 :
248 :
249 :
250 :
251 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
252 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
253 : }
254 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_SetSecurityInfo", OTHER);
255 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_SetSecurityInfo__ID, (&(mState)));
256 :
257 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
258 0 : return sendok__;
259 : }
260 :
261 0 : auto PWyciwygChannelChild::SendCancel(const nsresult& status) -> bool
262 : {
263 0 : IPC::Message* msg__ = PWyciwygChannel::Msg_Cancel(Id());
264 :
265 0 : Write(status, msg__);
266 : // Sentinel = 'status'
267 0 : (msg__)->WriteSentinel(3714608576);
268 :
269 :
270 :
271 :
272 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
273 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
274 : }
275 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_Cancel", OTHER);
276 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_Cancel__ID, (&(mState)));
277 :
278 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
279 0 : return sendok__;
280 : }
281 :
282 0 : auto PWyciwygChannelChild::RemoveManagee(
283 : int32_t aProtocolId,
284 : ProtocolBase* aListener) -> void
285 : {
286 0 : FatalError("unreached");
287 0 : return;
288 : }
289 :
290 0 : auto PWyciwygChannelChild::OnMessageReceived(const Message& msg__) -> PWyciwygChannelChild::Result
291 : {
292 0 : switch ((msg__).type()) {
293 : case PWyciwygChannel::Reply___delete____ID:
294 : {
295 0 : return MsgProcessed;
296 : }
297 : case PWyciwygChannel::Msg_OnStartRequest__ID:
298 : {
299 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
300 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
301 : }
302 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_OnStartRequest", OTHER);
303 :
304 0 : PickleIterator iter__(msg__);
305 : nsresult statusCode;
306 : int64_t contentLength;
307 : int32_t source;
308 0 : nsCString charset;
309 0 : nsCString securityInfo;
310 :
311 0 : if ((!(Read((&(statusCode)), (&(msg__)), (&(iter__)))))) {
312 0 : FatalError("Error deserializing 'nsresult'");
313 0 : return MsgValueError;
314 : }
315 : // Sentinel = 'statusCode'
316 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
317 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
318 0 : return MsgValueError;
319 : }
320 0 : if ((!(Read((&(contentLength)), (&(msg__)), (&(iter__)))))) {
321 0 : FatalError("Error deserializing 'int64_t'");
322 0 : return MsgValueError;
323 : }
324 : // Sentinel = 'contentLength'
325 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2619011242)))) {
326 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
327 0 : return MsgValueError;
328 : }
329 0 : if ((!(Read((&(source)), (&(msg__)), (&(iter__)))))) {
330 0 : FatalError("Error deserializing 'int32_t'");
331 0 : return MsgValueError;
332 : }
333 : // Sentinel = 'source'
334 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 774264369)))) {
335 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
336 0 : return MsgValueError;
337 : }
338 0 : if ((!(Read((&(charset)), (&(msg__)), (&(iter__)))))) {
339 0 : FatalError("Error deserializing 'nsCString'");
340 0 : return MsgValueError;
341 : }
342 : // Sentinel = 'charset'
343 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1551550891)))) {
344 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
345 0 : return MsgValueError;
346 : }
347 0 : if ((!(Read((&(securityInfo)), (&(msg__)), (&(iter__)))))) {
348 0 : FatalError("Error deserializing 'nsCString'");
349 0 : return MsgValueError;
350 : }
351 : // Sentinel = 'securityInfo'
352 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 158838750)))) {
353 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
354 0 : return MsgValueError;
355 : }
356 0 : (msg__).EndRead(iter__, (msg__).type());
357 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_OnStartRequest__ID, (&(mState)));
358 0 : if ((!(RecvOnStartRequest(mozilla::Move(statusCode), mozilla::Move(contentLength), mozilla::Move(source), mozilla::Move(charset), mozilla::Move(securityInfo))))) {
359 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
360 : // Error handled in mozilla::ipc::IPCResult
361 0 : return MsgProcessingError;
362 : }
363 :
364 0 : return MsgProcessed;
365 : }
366 : case PWyciwygChannel::Msg_OnDataAvailable__ID:
367 : {
368 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
369 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
370 : }
371 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_OnDataAvailable", OTHER);
372 :
373 0 : PickleIterator iter__(msg__);
374 0 : nsCString data;
375 : uint64_t offset;
376 :
377 0 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
378 0 : FatalError("Error deserializing 'nsCString'");
379 0 : return MsgValueError;
380 : }
381 : // Sentinel = 'data'
382 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
383 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
384 0 : return MsgValueError;
385 : }
386 0 : if ((!(Read((&(offset)), (&(msg__)), (&(iter__)))))) {
387 0 : FatalError("Error deserializing 'uint64_t'");
388 0 : return MsgValueError;
389 : }
390 : // Sentinel = 'offset'
391 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1369947863)))) {
392 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
393 0 : return MsgValueError;
394 : }
395 0 : (msg__).EndRead(iter__, (msg__).type());
396 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_OnDataAvailable__ID, (&(mState)));
397 0 : if ((!(RecvOnDataAvailable(mozilla::Move(data), mozilla::Move(offset))))) {
398 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
399 : // Error handled in mozilla::ipc::IPCResult
400 0 : return MsgProcessingError;
401 : }
402 :
403 0 : return MsgProcessed;
404 : }
405 : case PWyciwygChannel::Msg_OnStopRequest__ID:
406 : {
407 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
408 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
409 : }
410 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_OnStopRequest", OTHER);
411 :
412 0 : PickleIterator iter__(msg__);
413 : nsresult statusCode;
414 :
415 0 : if ((!(Read((&(statusCode)), (&(msg__)), (&(iter__)))))) {
416 0 : FatalError("Error deserializing 'nsresult'");
417 0 : return MsgValueError;
418 : }
419 : // Sentinel = 'statusCode'
420 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
421 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
422 0 : return MsgValueError;
423 : }
424 0 : (msg__).EndRead(iter__, (msg__).type());
425 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_OnStopRequest__ID, (&(mState)));
426 0 : if ((!(RecvOnStopRequest(mozilla::Move(statusCode))))) {
427 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
428 : // Error handled in mozilla::ipc::IPCResult
429 0 : return MsgProcessingError;
430 : }
431 :
432 0 : return MsgProcessed;
433 : }
434 : case PWyciwygChannel::Msg_CancelEarly__ID:
435 : {
436 0 : if (mozilla::ipc::LoggingEnabledFor("PWyciwygChannelChild")) {
437 0 : mozilla::ipc::LogMessageForProtocol("PWyciwygChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
438 : }
439 0 : AUTO_PROFILER_LABEL("PWyciwygChannel::Msg_CancelEarly", OTHER);
440 :
441 0 : PickleIterator iter__(msg__);
442 : nsresult statusCode;
443 :
444 0 : if ((!(Read((&(statusCode)), (&(msg__)), (&(iter__)))))) {
445 0 : FatalError("Error deserializing 'nsresult'");
446 0 : return MsgValueError;
447 : }
448 : // Sentinel = 'statusCode'
449 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2709278591)))) {
450 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
451 0 : return MsgValueError;
452 : }
453 0 : (msg__).EndRead(iter__, (msg__).type());
454 0 : PWyciwygChannel::Transition(PWyciwygChannel::Msg_CancelEarly__ID, (&(mState)));
455 0 : if ((!(RecvCancelEarly(mozilla::Move(statusCode))))) {
456 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
457 : // Error handled in mozilla::ipc::IPCResult
458 0 : return MsgProcessingError;
459 : }
460 :
461 0 : return MsgProcessed;
462 : }
463 : default:
464 : {
465 0 : return MsgNotKnown;
466 : }
467 : }
468 : }
469 :
470 0 : auto PWyciwygChannelChild::OnMessageReceived(
471 : const Message& msg__,
472 : Message*& reply__) -> PWyciwygChannelChild::Result
473 : {
474 0 : return MsgNotKnown;
475 : }
476 :
477 0 : auto PWyciwygChannelChild::OnCallReceived(
478 : const Message& msg__,
479 : Message*& reply__) -> PWyciwygChannelChild::Result
480 : {
481 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
482 : return MsgNotKnown;
483 : }
484 :
485 0 : auto PWyciwygChannelChild::GetProtocolTypeId() -> int32_t
486 : {
487 0 : return PWyciwygChannelMsgStart;
488 : }
489 :
490 0 : auto PWyciwygChannelChild::ProtocolName() const -> const char*
491 : {
492 0 : return "PWyciwygChannelChild";
493 : }
494 :
495 0 : auto PWyciwygChannelChild::DestroySubtree(ActorDestroyReason why) -> void
496 : {
497 : // Unregister from our manager.
498 0 : Unregister(Id());
499 :
500 : // Reject owning pending promises.
501 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
502 :
503 : // Finally, destroy "us".
504 0 : ActorDestroy(why);
505 0 : }
506 :
507 0 : auto PWyciwygChannelChild::DeallocSubtree() -> void
508 : {
509 0 : }
510 :
511 0 : auto PWyciwygChannelChild::Write(
512 : const SystemPrincipalInfo& v__,
513 : Message* msg__) -> void
514 : {
515 0 : }
516 :
517 0 : auto PWyciwygChannelChild::Read(
518 : SystemPrincipalInfo* v__,
519 : const Message* msg__,
520 : PickleIterator* iter__) -> bool
521 : {
522 0 : return true;
523 : }
524 :
525 0 : auto PWyciwygChannelChild::Write(
526 : const nsTArray<PrincipalInfo>& v__,
527 : Message* msg__) -> void
528 : {
529 0 : uint32_t length = (v__).Length();
530 0 : Write(length, msg__);
531 : // Sentinel = ('length', 'PrincipalInfo[]')
532 0 : (msg__)->WriteSentinel(1032188126);
533 :
534 0 : for (auto& elem : v__) {
535 0 : Write(elem, msg__);
536 : // Sentinel = 'PrincipalInfo[]'
537 0 : (msg__)->WriteSentinel(413380193);
538 : }
539 0 : }
540 :
541 0 : auto PWyciwygChannelChild::Read(
542 : nsTArray<PrincipalInfo>* v__,
543 : const Message* msg__,
544 : PickleIterator* iter__) -> bool
545 : {
546 0 : nsTArray<PrincipalInfo> fa;
547 : uint32_t length;
548 0 : if ((!(Read((&(length)), msg__, iter__)))) {
549 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
550 0 : return false;
551 : }
552 : // Sentinel = ('length', 'PrincipalInfo[]')
553 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
554 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
555 0 : return false;
556 : }
557 :
558 0 : PrincipalInfo* elems = (fa).AppendElements(length);
559 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
560 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
561 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
562 0 : return false;
563 : }
564 : // Sentinel = 'PrincipalInfo[]'
565 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
566 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
567 0 : return false;
568 : }
569 : }
570 0 : (v__)->SwapElements(fa);
571 0 : return true;
572 : }
573 :
574 0 : auto PWyciwygChannelChild::Write(
575 : const OptionalURIParams& v__,
576 : Message* msg__) -> void
577 : {
578 : typedef OptionalURIParams type__;
579 0 : Write(int((v__).type()), msg__);
580 : // Sentinel = 'OptionalURIParams'
581 0 : (msg__)->WriteSentinel(1977079525);
582 :
583 0 : switch ((v__).type()) {
584 : case type__::Tvoid_t:
585 : {
586 0 : Write((v__).get_void_t(), msg__);
587 : // Sentinel = 'Tvoid_t'
588 0 : (msg__)->WriteSentinel(3041273328);
589 0 : return;
590 : }
591 : case type__::TURIParams:
592 : {
593 0 : Write((v__).get_URIParams(), msg__);
594 : // Sentinel = 'TURIParams'
595 0 : (msg__)->WriteSentinel(1132652062);
596 0 : return;
597 : }
598 : default:
599 : {
600 0 : FatalError("unknown union type");
601 0 : return;
602 : }
603 : }
604 : }
605 :
606 0 : auto PWyciwygChannelChild::Read(
607 : OptionalURIParams* v__,
608 : const Message* msg__,
609 : PickleIterator* iter__) -> bool
610 : {
611 : typedef OptionalURIParams type__;
612 : int type;
613 0 : if ((!(Read((&(type)), msg__, iter__)))) {
614 0 : mozilla::ipc::UnionTypeReadError("OptionalURIParams");
615 0 : return false;
616 : }
617 : // Sentinel = 'OptionalURIParams'
618 0 : if ((!((msg__)->ReadSentinel(iter__, 1977079525)))) {
619 0 : mozilla::ipc::SentinelReadError("OptionalURIParams");
620 0 : return false;
621 : }
622 :
623 0 : switch (type) {
624 : case type__::Tvoid_t:
625 : {
626 : void_t tmp = void_t();
627 0 : (*(v__)) = tmp;
628 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
629 0 : FatalError("Error deserializing Union type");
630 0 : return false;
631 : }
632 : // Sentinel = 'Tvoid_t'
633 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
634 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
635 0 : return false;
636 : }
637 0 : return true;
638 : }
639 : case type__::TURIParams:
640 : {
641 0 : URIParams tmp = URIParams();
642 0 : (*(v__)) = tmp;
643 0 : if ((!(Read((&((v__)->get_URIParams())), msg__, iter__)))) {
644 0 : FatalError("Error deserializing Union type");
645 0 : return false;
646 : }
647 : // Sentinel = 'TURIParams'
648 0 : if ((!((msg__)->ReadSentinel(iter__, 1132652062)))) {
649 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
650 0 : return false;
651 : }
652 0 : return true;
653 : }
654 : default:
655 : {
656 0 : FatalError("unknown union type");
657 0 : return false;
658 : }
659 : }
660 : }
661 :
662 0 : auto PWyciwygChannelChild::Write(
663 : const ContentPrincipalInfoOriginNoSuffix& v__,
664 : Message* msg__) -> void
665 : {
666 : typedef ContentPrincipalInfoOriginNoSuffix type__;
667 0 : Write(int((v__).type()), msg__);
668 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
669 0 : (msg__)->WriteSentinel(2442066713);
670 :
671 0 : switch ((v__).type()) {
672 : case type__::TnsCString:
673 : {
674 0 : Write((v__).get_nsCString(), msg__);
675 : // Sentinel = 'TnsCString'
676 0 : (msg__)->WriteSentinel(2427411293);
677 0 : return;
678 : }
679 : case type__::Tvoid_t:
680 : {
681 0 : Write((v__).get_void_t(), msg__);
682 : // Sentinel = 'Tvoid_t'
683 0 : (msg__)->WriteSentinel(3041273328);
684 0 : return;
685 : }
686 : default:
687 : {
688 0 : FatalError("unknown union type");
689 0 : return;
690 : }
691 : }
692 : }
693 :
694 0 : auto PWyciwygChannelChild::Read(
695 : ContentPrincipalInfoOriginNoSuffix* v__,
696 : const Message* msg__,
697 : PickleIterator* iter__) -> bool
698 : {
699 : typedef ContentPrincipalInfoOriginNoSuffix type__;
700 : int type;
701 0 : if ((!(Read((&(type)), msg__, iter__)))) {
702 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
703 0 : return false;
704 : }
705 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
706 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
707 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
708 0 : return false;
709 : }
710 :
711 0 : switch (type) {
712 : case type__::TnsCString:
713 : {
714 0 : nsCString tmp = nsCString();
715 0 : (*(v__)) = tmp;
716 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
717 0 : FatalError("Error deserializing Union type");
718 0 : return false;
719 : }
720 : // Sentinel = 'TnsCString'
721 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
722 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
723 0 : return false;
724 : }
725 0 : return true;
726 : }
727 : case type__::Tvoid_t:
728 : {
729 : void_t tmp = void_t();
730 0 : (*(v__)) = tmp;
731 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
732 0 : FatalError("Error deserializing Union type");
733 0 : return false;
734 : }
735 : // Sentinel = 'Tvoid_t'
736 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
737 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
738 0 : return false;
739 : }
740 0 : return true;
741 : }
742 : default:
743 : {
744 0 : FatalError("unknown union type");
745 0 : return false;
746 : }
747 : }
748 : }
749 :
750 0 : auto PWyciwygChannelChild::Write(
751 : const StandardURLParams& v__,
752 : Message* msg__) -> void
753 : {
754 0 : Write((v__).urlType(), msg__);
755 : // Sentinel = 'urlType'
756 0 : (msg__)->WriteSentinel(4149428228);
757 0 : Write((v__).port(), msg__);
758 : // Sentinel = 'port'
759 0 : (msg__)->WriteSentinel(3633211549);
760 0 : Write((v__).defaultPort(), msg__);
761 : // Sentinel = 'defaultPort'
762 0 : (msg__)->WriteSentinel(599318897);
763 0 : Write((v__).spec(), msg__);
764 : // Sentinel = 'spec'
765 0 : (msg__)->WriteSentinel(1630740541);
766 0 : Write((v__).scheme(), msg__);
767 : // Sentinel = 'scheme'
768 0 : (msg__)->WriteSentinel(3619238715);
769 0 : Write((v__).authority(), msg__);
770 : // Sentinel = 'authority'
771 0 : (msg__)->WriteSentinel(1669684878);
772 0 : Write((v__).username(), msg__);
773 : // Sentinel = 'username'
774 0 : (msg__)->WriteSentinel(689225024);
775 0 : Write((v__).password(), msg__);
776 : // Sentinel = 'password'
777 0 : (msg__)->WriteSentinel(2527534683);
778 0 : Write((v__).host(), msg__);
779 : // Sentinel = 'host'
780 0 : (msg__)->WriteSentinel(4070301394);
781 0 : Write((v__).path(), msg__);
782 : // Sentinel = 'path'
783 0 : (msg__)->WriteSentinel(913629401);
784 0 : Write((v__).filePath(), msg__);
785 : // Sentinel = 'filePath'
786 0 : (msg__)->WriteSentinel(4122896455);
787 0 : Write((v__).directory(), msg__);
788 : // Sentinel = 'directory'
789 0 : (msg__)->WriteSentinel(1201172472);
790 0 : Write((v__).baseName(), msg__);
791 : // Sentinel = 'baseName'
792 0 : (msg__)->WriteSentinel(2448877418);
793 0 : Write((v__).extension(), msg__);
794 : // Sentinel = 'extension'
795 0 : (msg__)->WriteSentinel(3211853542);
796 0 : Write((v__).query(), msg__);
797 : // Sentinel = 'query'
798 0 : (msg__)->WriteSentinel(4249802777);
799 0 : Write((v__).ref(), msg__);
800 : // Sentinel = 'ref'
801 0 : (msg__)->WriteSentinel(2626476732);
802 0 : Write((v__).originCharset(), msg__);
803 : // Sentinel = 'originCharset'
804 0 : (msg__)->WriteSentinel(1320725495);
805 0 : Write((v__).isMutable(), msg__);
806 : // Sentinel = 'isMutable'
807 0 : (msg__)->WriteSentinel(3552466783);
808 0 : Write((v__).supportsFileURL(), msg__);
809 : // Sentinel = 'supportsFileURL'
810 0 : (msg__)->WriteSentinel(1871785710);
811 0 : }
812 :
813 0 : auto PWyciwygChannelChild::Read(
814 : StandardURLParams* v__,
815 : const Message* msg__,
816 : PickleIterator* iter__) -> bool
817 : {
818 0 : if ((!(Read((&((v__)->urlType())), msg__, iter__)))) {
819 0 : FatalError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
820 0 : return false;
821 : }
822 : // Sentinel = 'urlType'
823 0 : if ((!((msg__)->ReadSentinel(iter__, 4149428228)))) {
824 0 : mozilla::ipc::SentinelReadError("Error deserializing 'urlType' (uint32_t) member of 'StandardURLParams'");
825 0 : return false;
826 : }
827 0 : if ((!(Read((&((v__)->port())), msg__, iter__)))) {
828 0 : FatalError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
829 0 : return false;
830 : }
831 : // Sentinel = 'port'
832 0 : if ((!((msg__)->ReadSentinel(iter__, 3633211549)))) {
833 0 : mozilla::ipc::SentinelReadError("Error deserializing 'port' (int32_t) member of 'StandardURLParams'");
834 0 : return false;
835 : }
836 0 : if ((!(Read((&((v__)->defaultPort())), msg__, iter__)))) {
837 0 : FatalError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
838 0 : return false;
839 : }
840 : // Sentinel = 'defaultPort'
841 0 : if ((!((msg__)->ReadSentinel(iter__, 599318897)))) {
842 0 : mozilla::ipc::SentinelReadError("Error deserializing 'defaultPort' (int32_t) member of 'StandardURLParams'");
843 0 : return false;
844 : }
845 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
846 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
847 0 : return false;
848 : }
849 : // Sentinel = 'spec'
850 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
851 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'StandardURLParams'");
852 0 : return false;
853 : }
854 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
855 0 : FatalError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
856 0 : return false;
857 : }
858 : // Sentinel = 'scheme'
859 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
860 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (StandardURLSegment) member of 'StandardURLParams'");
861 0 : return false;
862 : }
863 0 : if ((!(Read((&((v__)->authority())), msg__, iter__)))) {
864 0 : FatalError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
865 0 : return false;
866 : }
867 : // Sentinel = 'authority'
868 0 : if ((!((msg__)->ReadSentinel(iter__, 1669684878)))) {
869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'authority' (StandardURLSegment) member of 'StandardURLParams'");
870 0 : return false;
871 : }
872 0 : if ((!(Read((&((v__)->username())), msg__, iter__)))) {
873 0 : FatalError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
874 0 : return false;
875 : }
876 : // Sentinel = 'username'
877 0 : if ((!((msg__)->ReadSentinel(iter__, 689225024)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'username' (StandardURLSegment) member of 'StandardURLParams'");
879 0 : return false;
880 : }
881 0 : if ((!(Read((&((v__)->password())), msg__, iter__)))) {
882 0 : FatalError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
883 0 : return false;
884 : }
885 : // Sentinel = 'password'
886 0 : if ((!((msg__)->ReadSentinel(iter__, 2527534683)))) {
887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'password' (StandardURLSegment) member of 'StandardURLParams'");
888 0 : return false;
889 : }
890 0 : if ((!(Read((&((v__)->host())), msg__, iter__)))) {
891 0 : FatalError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
892 0 : return false;
893 : }
894 : // Sentinel = 'host'
895 0 : if ((!((msg__)->ReadSentinel(iter__, 4070301394)))) {
896 0 : mozilla::ipc::SentinelReadError("Error deserializing 'host' (StandardURLSegment) member of 'StandardURLParams'");
897 0 : return false;
898 : }
899 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
900 0 : FatalError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
901 0 : return false;
902 : }
903 : // Sentinel = 'path'
904 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
905 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (StandardURLSegment) member of 'StandardURLParams'");
906 0 : return false;
907 : }
908 0 : if ((!(Read((&((v__)->filePath())), msg__, iter__)))) {
909 0 : FatalError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
910 0 : return false;
911 : }
912 : // Sentinel = 'filePath'
913 0 : if ((!((msg__)->ReadSentinel(iter__, 4122896455)))) {
914 0 : mozilla::ipc::SentinelReadError("Error deserializing 'filePath' (StandardURLSegment) member of 'StandardURLParams'");
915 0 : return false;
916 : }
917 0 : if ((!(Read((&((v__)->directory())), msg__, iter__)))) {
918 0 : FatalError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
919 0 : return false;
920 : }
921 : // Sentinel = 'directory'
922 0 : if ((!((msg__)->ReadSentinel(iter__, 1201172472)))) {
923 0 : mozilla::ipc::SentinelReadError("Error deserializing 'directory' (StandardURLSegment) member of 'StandardURLParams'");
924 0 : return false;
925 : }
926 0 : if ((!(Read((&((v__)->baseName())), msg__, iter__)))) {
927 0 : FatalError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
928 0 : return false;
929 : }
930 : // Sentinel = 'baseName'
931 0 : if ((!((msg__)->ReadSentinel(iter__, 2448877418)))) {
932 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseName' (StandardURLSegment) member of 'StandardURLParams'");
933 0 : return false;
934 : }
935 0 : if ((!(Read((&((v__)->extension())), msg__, iter__)))) {
936 0 : FatalError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
937 0 : return false;
938 : }
939 : // Sentinel = 'extension'
940 0 : if ((!((msg__)->ReadSentinel(iter__, 3211853542)))) {
941 0 : mozilla::ipc::SentinelReadError("Error deserializing 'extension' (StandardURLSegment) member of 'StandardURLParams'");
942 0 : return false;
943 : }
944 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
945 0 : FatalError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
946 0 : return false;
947 : }
948 : // Sentinel = 'query'
949 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
950 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (StandardURLSegment) member of 'StandardURLParams'");
951 0 : return false;
952 : }
953 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
954 0 : FatalError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
955 0 : return false;
956 : }
957 : // Sentinel = 'ref'
958 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
959 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (StandardURLSegment) member of 'StandardURLParams'");
960 0 : return false;
961 : }
962 0 : if ((!(Read((&((v__)->originCharset())), msg__, iter__)))) {
963 0 : FatalError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
964 0 : return false;
965 : }
966 : // Sentinel = 'originCharset'
967 0 : if ((!((msg__)->ReadSentinel(iter__, 1320725495)))) {
968 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originCharset' (nsCString) member of 'StandardURLParams'");
969 0 : return false;
970 : }
971 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
972 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
973 0 : return false;
974 : }
975 : // Sentinel = 'isMutable'
976 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
977 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'StandardURLParams'");
978 0 : return false;
979 : }
980 0 : if ((!(Read((&((v__)->supportsFileURL())), msg__, iter__)))) {
981 0 : FatalError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
982 0 : return false;
983 : }
984 : // Sentinel = 'supportsFileURL'
985 0 : if ((!((msg__)->ReadSentinel(iter__, 1871785710)))) {
986 0 : mozilla::ipc::SentinelReadError("Error deserializing 'supportsFileURL' (bool) member of 'StandardURLParams'");
987 0 : return false;
988 : }
989 0 : return true;
990 : }
991 :
992 0 : auto PWyciwygChannelChild::Write(
993 : const URIParams& v__,
994 : Message* msg__) -> void
995 : {
996 : typedef URIParams type__;
997 0 : Write(int((v__).type()), msg__);
998 : // Sentinel = 'URIParams'
999 0 : (msg__)->WriteSentinel(1039516337);
1000 :
1001 0 : switch ((v__).type()) {
1002 : case type__::TSimpleURIParams:
1003 : {
1004 0 : Write((v__).get_SimpleURIParams(), msg__);
1005 : // Sentinel = 'TSimpleURIParams'
1006 0 : (msg__)->WriteSentinel(4028607586);
1007 0 : return;
1008 : }
1009 : case type__::TStandardURLParams:
1010 : {
1011 0 : Write((v__).get_StandardURLParams(), msg__);
1012 : // Sentinel = 'TStandardURLParams'
1013 0 : (msg__)->WriteSentinel(248174578);
1014 0 : return;
1015 : }
1016 : case type__::TJARURIParams:
1017 : {
1018 0 : Write((v__).get_JARURIParams(), msg__);
1019 : // Sentinel = 'TJARURIParams'
1020 0 : (msg__)->WriteSentinel(3404434792);
1021 0 : return;
1022 : }
1023 : case type__::TIconURIParams:
1024 : {
1025 0 : Write((v__).get_IconURIParams(), msg__);
1026 : // Sentinel = 'TIconURIParams'
1027 0 : (msg__)->WriteSentinel(1824279023);
1028 0 : return;
1029 : }
1030 : case type__::TNullPrincipalURIParams:
1031 : {
1032 0 : Write((v__).get_NullPrincipalURIParams(), msg__);
1033 : // Sentinel = 'TNullPrincipalURIParams'
1034 0 : (msg__)->WriteSentinel(216801182);
1035 0 : return;
1036 : }
1037 : case type__::TJSURIParams:
1038 : {
1039 0 : Write((v__).get_JSURIParams(), msg__);
1040 : // Sentinel = 'TJSURIParams'
1041 0 : (msg__)->WriteSentinel(32222119);
1042 0 : return;
1043 : }
1044 : case type__::TSimpleNestedURIParams:
1045 : {
1046 0 : Write((v__).get_SimpleNestedURIParams(), msg__);
1047 : // Sentinel = 'TSimpleNestedURIParams'
1048 0 : (msg__)->WriteSentinel(3192238307);
1049 0 : return;
1050 : }
1051 : case type__::THostObjectURIParams:
1052 : {
1053 0 : Write((v__).get_HostObjectURIParams(), msg__);
1054 : // Sentinel = 'THostObjectURIParams'
1055 0 : (msg__)->WriteSentinel(1307971301);
1056 0 : return;
1057 : }
1058 : default:
1059 : {
1060 0 : FatalError("unknown union type");
1061 0 : return;
1062 : }
1063 : }
1064 : }
1065 :
1066 0 : auto PWyciwygChannelChild::Read(
1067 : URIParams* v__,
1068 : const Message* msg__,
1069 : PickleIterator* iter__) -> bool
1070 : {
1071 : typedef URIParams type__;
1072 : int type;
1073 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1074 0 : mozilla::ipc::UnionTypeReadError("URIParams");
1075 0 : return false;
1076 : }
1077 : // Sentinel = 'URIParams'
1078 0 : if ((!((msg__)->ReadSentinel(iter__, 1039516337)))) {
1079 0 : mozilla::ipc::SentinelReadError("URIParams");
1080 0 : return false;
1081 : }
1082 :
1083 0 : switch (type) {
1084 : case type__::TSimpleURIParams:
1085 : {
1086 0 : SimpleURIParams tmp = SimpleURIParams();
1087 0 : (*(v__)) = tmp;
1088 0 : if ((!(Read((&((v__)->get_SimpleURIParams())), msg__, iter__)))) {
1089 0 : FatalError("Error deserializing Union type");
1090 0 : return false;
1091 : }
1092 : // Sentinel = 'TSimpleURIParams'
1093 0 : if ((!((msg__)->ReadSentinel(iter__, 4028607586)))) {
1094 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1095 0 : return false;
1096 : }
1097 0 : return true;
1098 : }
1099 : case type__::TStandardURLParams:
1100 : {
1101 0 : StandardURLParams tmp = StandardURLParams();
1102 0 : (*(v__)) = tmp;
1103 0 : if ((!(Read((&((v__)->get_StandardURLParams())), msg__, iter__)))) {
1104 0 : FatalError("Error deserializing Union type");
1105 0 : return false;
1106 : }
1107 : // Sentinel = 'TStandardURLParams'
1108 0 : if ((!((msg__)->ReadSentinel(iter__, 248174578)))) {
1109 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1110 0 : return false;
1111 : }
1112 0 : return true;
1113 : }
1114 : case type__::TJARURIParams:
1115 : {
1116 0 : JARURIParams tmp = JARURIParams();
1117 0 : (*(v__)) = tmp;
1118 0 : if ((!(Read((&((v__)->get_JARURIParams())), msg__, iter__)))) {
1119 0 : FatalError("Error deserializing Union type");
1120 0 : return false;
1121 : }
1122 : // Sentinel = 'TJARURIParams'
1123 0 : if ((!((msg__)->ReadSentinel(iter__, 3404434792)))) {
1124 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1125 0 : return false;
1126 : }
1127 0 : return true;
1128 : }
1129 : case type__::TIconURIParams:
1130 : {
1131 0 : IconURIParams tmp = IconURIParams();
1132 0 : (*(v__)) = tmp;
1133 0 : if ((!(Read((&((v__)->get_IconURIParams())), msg__, iter__)))) {
1134 0 : FatalError("Error deserializing Union type");
1135 0 : return false;
1136 : }
1137 : // Sentinel = 'TIconURIParams'
1138 0 : if ((!((msg__)->ReadSentinel(iter__, 1824279023)))) {
1139 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1140 0 : return false;
1141 : }
1142 0 : return true;
1143 : }
1144 : case type__::TNullPrincipalURIParams:
1145 : {
1146 0 : NullPrincipalURIParams tmp = NullPrincipalURIParams();
1147 0 : (*(v__)) = tmp;
1148 0 : if ((!(Read((&((v__)->get_NullPrincipalURIParams())), msg__, iter__)))) {
1149 0 : FatalError("Error deserializing Union type");
1150 0 : return false;
1151 : }
1152 : // Sentinel = 'TNullPrincipalURIParams'
1153 0 : if ((!((msg__)->ReadSentinel(iter__, 216801182)))) {
1154 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1155 0 : return false;
1156 : }
1157 0 : return true;
1158 : }
1159 : case type__::TJSURIParams:
1160 : {
1161 0 : JSURIParams tmp = JSURIParams();
1162 0 : (*(v__)) = tmp;
1163 0 : if ((!(Read((&((v__)->get_JSURIParams())), msg__, iter__)))) {
1164 0 : FatalError("Error deserializing Union type");
1165 0 : return false;
1166 : }
1167 : // Sentinel = 'TJSURIParams'
1168 0 : if ((!((msg__)->ReadSentinel(iter__, 32222119)))) {
1169 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1170 0 : return false;
1171 : }
1172 0 : return true;
1173 : }
1174 : case type__::TSimpleNestedURIParams:
1175 : {
1176 0 : SimpleNestedURIParams tmp = SimpleNestedURIParams();
1177 0 : (*(v__)) = tmp;
1178 0 : if ((!(Read((&((v__)->get_SimpleNestedURIParams())), msg__, iter__)))) {
1179 0 : FatalError("Error deserializing Union type");
1180 0 : return false;
1181 : }
1182 : // Sentinel = 'TSimpleNestedURIParams'
1183 0 : if ((!((msg__)->ReadSentinel(iter__, 3192238307)))) {
1184 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1185 0 : return false;
1186 : }
1187 0 : return true;
1188 : }
1189 : case type__::THostObjectURIParams:
1190 : {
1191 0 : HostObjectURIParams tmp = HostObjectURIParams();
1192 0 : (*(v__)) = tmp;
1193 0 : if ((!(Read((&((v__)->get_HostObjectURIParams())), msg__, iter__)))) {
1194 0 : FatalError("Error deserializing Union type");
1195 0 : return false;
1196 : }
1197 : // Sentinel = 'THostObjectURIParams'
1198 0 : if ((!((msg__)->ReadSentinel(iter__, 1307971301)))) {
1199 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1200 0 : return false;
1201 : }
1202 0 : return true;
1203 : }
1204 : default:
1205 : {
1206 0 : FatalError("unknown union type");
1207 0 : return false;
1208 : }
1209 : }
1210 : }
1211 :
1212 0 : auto PWyciwygChannelChild::Write(
1213 : const SimpleNestedURIParams& v__,
1214 : Message* msg__) -> void
1215 : {
1216 0 : Write((v__).simpleParams(), msg__);
1217 : // Sentinel = 'simpleParams'
1218 0 : (msg__)->WriteSentinel(3404291700);
1219 0 : Write((v__).innerURI(), msg__);
1220 : // Sentinel = 'innerURI'
1221 0 : (msg__)->WriteSentinel(2573245334);
1222 0 : }
1223 :
1224 0 : auto PWyciwygChannelChild::Read(
1225 : SimpleNestedURIParams* v__,
1226 : const Message* msg__,
1227 : PickleIterator* iter__) -> bool
1228 : {
1229 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1230 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
1231 0 : return false;
1232 : }
1233 : // Sentinel = 'simpleParams'
1234 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1235 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'SimpleNestedURIParams'");
1236 0 : return false;
1237 : }
1238 0 : if ((!(Read((&((v__)->innerURI())), msg__, iter__)))) {
1239 0 : FatalError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
1240 0 : return false;
1241 : }
1242 : // Sentinel = 'innerURI'
1243 0 : if ((!((msg__)->ReadSentinel(iter__, 2573245334)))) {
1244 0 : mozilla::ipc::SentinelReadError("Error deserializing 'innerURI' (URIParams) member of 'SimpleNestedURIParams'");
1245 0 : return false;
1246 : }
1247 0 : return true;
1248 : }
1249 :
1250 0 : auto PWyciwygChannelChild::Write(
1251 : const OptionalPrincipalInfo& v__,
1252 : Message* msg__) -> void
1253 : {
1254 : typedef OptionalPrincipalInfo type__;
1255 0 : Write(int((v__).type()), msg__);
1256 : // Sentinel = 'OptionalPrincipalInfo'
1257 0 : (msg__)->WriteSentinel(3041452007);
1258 :
1259 0 : switch ((v__).type()) {
1260 : case type__::Tvoid_t:
1261 : {
1262 0 : Write((v__).get_void_t(), msg__);
1263 : // Sentinel = 'Tvoid_t'
1264 0 : (msg__)->WriteSentinel(3041273328);
1265 0 : return;
1266 : }
1267 : case type__::TPrincipalInfo:
1268 : {
1269 0 : Write((v__).get_PrincipalInfo(), msg__);
1270 : // Sentinel = 'TPrincipalInfo'
1271 0 : (msg__)->WriteSentinel(1396743580);
1272 0 : return;
1273 : }
1274 : default:
1275 : {
1276 0 : FatalError("unknown union type");
1277 0 : return;
1278 : }
1279 : }
1280 : }
1281 :
1282 0 : auto PWyciwygChannelChild::Read(
1283 : OptionalPrincipalInfo* v__,
1284 : const Message* msg__,
1285 : PickleIterator* iter__) -> bool
1286 : {
1287 : typedef OptionalPrincipalInfo type__;
1288 : int type;
1289 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1290 0 : mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
1291 0 : return false;
1292 : }
1293 : // Sentinel = 'OptionalPrincipalInfo'
1294 0 : if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
1295 0 : mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
1296 0 : return false;
1297 : }
1298 :
1299 0 : switch (type) {
1300 : case type__::Tvoid_t:
1301 : {
1302 : void_t tmp = void_t();
1303 0 : (*(v__)) = tmp;
1304 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1305 0 : FatalError("Error deserializing Union type");
1306 0 : return false;
1307 : }
1308 : // Sentinel = 'Tvoid_t'
1309 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1310 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1311 0 : return false;
1312 : }
1313 0 : return true;
1314 : }
1315 : case type__::TPrincipalInfo:
1316 : {
1317 0 : PrincipalInfo tmp = PrincipalInfo();
1318 0 : (*(v__)) = tmp;
1319 0 : if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
1320 0 : FatalError("Error deserializing Union type");
1321 0 : return false;
1322 : }
1323 : // Sentinel = 'TPrincipalInfo'
1324 0 : if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
1325 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1326 0 : return false;
1327 : }
1328 0 : return true;
1329 : }
1330 : default:
1331 : {
1332 0 : FatalError("unknown union type");
1333 0 : return false;
1334 : }
1335 : }
1336 : }
1337 :
1338 0 : auto PWyciwygChannelChild::Write(
1339 : const PBrowserOrId& v__,
1340 : Message* msg__) -> void
1341 : {
1342 : typedef PBrowserOrId type__;
1343 0 : Write(int((v__).type()), msg__);
1344 : // Sentinel = 'PBrowserOrId'
1345 0 : (msg__)->WriteSentinel(1715137324);
1346 :
1347 0 : switch ((v__).type()) {
1348 : case type__::TPBrowserParent:
1349 : {
1350 0 : FatalError("wrong side!");
1351 0 : return;
1352 : }
1353 : case type__::TPBrowserChild:
1354 : {
1355 0 : Write((v__).get_PBrowserChild(), msg__, true);
1356 : // Sentinel = 'TPBrowserChild'
1357 0 : (msg__)->WriteSentinel(2417584432);
1358 0 : return;
1359 : }
1360 : case type__::TTabId:
1361 : {
1362 0 : Write((v__).get_TabId(), msg__);
1363 : // Sentinel = 'TTabId'
1364 0 : (msg__)->WriteSentinel(1071104628);
1365 0 : return;
1366 : }
1367 : default:
1368 : {
1369 0 : FatalError("unknown union type");
1370 0 : return;
1371 : }
1372 : }
1373 : }
1374 :
1375 0 : auto PWyciwygChannelChild::Read(
1376 : PBrowserOrId* v__,
1377 : const Message* msg__,
1378 : PickleIterator* iter__) -> bool
1379 : {
1380 : typedef PBrowserOrId type__;
1381 : int type;
1382 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1383 0 : mozilla::ipc::UnionTypeReadError("PBrowserOrId");
1384 0 : return false;
1385 : }
1386 : // Sentinel = 'PBrowserOrId'
1387 0 : if ((!((msg__)->ReadSentinel(iter__, 1715137324)))) {
1388 0 : mozilla::ipc::SentinelReadError("PBrowserOrId");
1389 0 : return false;
1390 : }
1391 :
1392 0 : switch (type) {
1393 : case type__::TPBrowserParent:
1394 : {
1395 0 : PBrowserChild* tmp = nullptr;
1396 0 : (*(v__)) = tmp;
1397 0 : if ((!(Read((&((v__)->get_PBrowserChild())), msg__, iter__, true)))) {
1398 0 : FatalError("Error deserializing Union type");
1399 0 : return false;
1400 : }
1401 : // Sentinel = 'TPBrowserParent'
1402 0 : if ((!((msg__)->ReadSentinel(iter__, 3996262243)))) {
1403 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1404 0 : return false;
1405 : }
1406 0 : return true;
1407 : }
1408 : case type__::TPBrowserChild:
1409 : {
1410 0 : return false;
1411 : }
1412 : case type__::TTabId:
1413 : {
1414 0 : TabId tmp = TabId();
1415 0 : (*(v__)) = tmp;
1416 0 : if ((!(Read((&((v__)->get_TabId())), msg__, iter__)))) {
1417 0 : FatalError("Error deserializing Union type");
1418 0 : return false;
1419 : }
1420 : // Sentinel = 'TTabId'
1421 0 : if ((!((msg__)->ReadSentinel(iter__, 1071104628)))) {
1422 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1423 0 : return false;
1424 : }
1425 0 : return true;
1426 : }
1427 : default:
1428 : {
1429 0 : FatalError("unknown union type");
1430 0 : return false;
1431 : }
1432 : }
1433 : }
1434 :
1435 0 : auto PWyciwygChannelChild::Write(
1436 : const ExpandedPrincipalInfo& v__,
1437 : Message* msg__) -> void
1438 : {
1439 0 : Write((v__).attrs(), msg__);
1440 : // Sentinel = 'attrs'
1441 0 : (msg__)->WriteSentinel(3014987797);
1442 0 : Write((v__).whitelist(), msg__);
1443 : // Sentinel = 'whitelist'
1444 0 : (msg__)->WriteSentinel(3731637258);
1445 0 : }
1446 :
1447 0 : auto PWyciwygChannelChild::Read(
1448 : ExpandedPrincipalInfo* v__,
1449 : const Message* msg__,
1450 : PickleIterator* iter__) -> bool
1451 : {
1452 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1453 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1454 0 : return false;
1455 : }
1456 : // Sentinel = 'attrs'
1457 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1458 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
1459 0 : return false;
1460 : }
1461 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
1462 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1463 0 : return false;
1464 : }
1465 : // Sentinel = 'whitelist'
1466 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
1467 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
1468 0 : return false;
1469 : }
1470 0 : return true;
1471 : }
1472 :
1473 0 : auto PWyciwygChannelChild::Write(
1474 : const HostObjectURIParams& v__,
1475 : Message* msg__) -> void
1476 : {
1477 0 : Write((v__).simpleParams(), msg__);
1478 : // Sentinel = 'simpleParams'
1479 0 : (msg__)->WriteSentinel(3404291700);
1480 0 : Write((v__).principal(), msg__);
1481 : // Sentinel = 'principal'
1482 0 : (msg__)->WriteSentinel(732240927);
1483 0 : }
1484 :
1485 0 : auto PWyciwygChannelChild::Read(
1486 : HostObjectURIParams* v__,
1487 : const Message* msg__,
1488 : PickleIterator* iter__) -> bool
1489 : {
1490 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
1491 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1492 0 : return false;
1493 : }
1494 : // Sentinel = 'simpleParams'
1495 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
1496 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'HostObjectURIParams'");
1497 0 : return false;
1498 : }
1499 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
1500 0 : FatalError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1501 0 : return false;
1502 : }
1503 : // Sentinel = 'principal'
1504 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
1505 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (OptionalPrincipalInfo) member of 'HostObjectURIParams'");
1506 0 : return false;
1507 : }
1508 0 : return true;
1509 : }
1510 :
1511 0 : auto PWyciwygChannelChild::Write(
1512 : const PrincipalInfo& v__,
1513 : Message* msg__) -> void
1514 : {
1515 : typedef PrincipalInfo type__;
1516 0 : Write(int((v__).type()), msg__);
1517 : // Sentinel = 'PrincipalInfo'
1518 0 : (msg__)->WriteSentinel(4194518819);
1519 :
1520 0 : switch ((v__).type()) {
1521 : case type__::TContentPrincipalInfo:
1522 : {
1523 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
1524 : // Sentinel = 'TContentPrincipalInfo'
1525 0 : (msg__)->WriteSentinel(3677342258);
1526 0 : return;
1527 : }
1528 : case type__::TSystemPrincipalInfo:
1529 : {
1530 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
1531 : // Sentinel = 'TSystemPrincipalInfo'
1532 0 : (msg__)->WriteSentinel(3590603679);
1533 0 : return;
1534 : }
1535 : case type__::TNullPrincipalInfo:
1536 : {
1537 0 : Write((v__).get_NullPrincipalInfo(), msg__);
1538 : // Sentinel = 'TNullPrincipalInfo'
1539 0 : (msg__)->WriteSentinel(3477774965);
1540 0 : return;
1541 : }
1542 : case type__::TExpandedPrincipalInfo:
1543 : {
1544 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
1545 : // Sentinel = 'TExpandedPrincipalInfo'
1546 0 : (msg__)->WriteSentinel(589324917);
1547 0 : return;
1548 : }
1549 : default:
1550 : {
1551 0 : FatalError("unknown union type");
1552 0 : return;
1553 : }
1554 : }
1555 : }
1556 :
1557 0 : auto PWyciwygChannelChild::Read(
1558 : PrincipalInfo* v__,
1559 : const Message* msg__,
1560 : PickleIterator* iter__) -> bool
1561 : {
1562 : typedef PrincipalInfo type__;
1563 : int type;
1564 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1565 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
1566 0 : return false;
1567 : }
1568 : // Sentinel = 'PrincipalInfo'
1569 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
1570 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
1571 0 : return false;
1572 : }
1573 :
1574 0 : switch (type) {
1575 : case type__::TContentPrincipalInfo:
1576 : {
1577 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
1578 0 : (*(v__)) = tmp;
1579 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
1580 0 : FatalError("Error deserializing Union type");
1581 0 : return false;
1582 : }
1583 : // Sentinel = 'TContentPrincipalInfo'
1584 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
1585 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1586 0 : return false;
1587 : }
1588 0 : return true;
1589 : }
1590 : case type__::TSystemPrincipalInfo:
1591 : {
1592 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
1593 0 : (*(v__)) = tmp;
1594 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
1595 0 : FatalError("Error deserializing Union type");
1596 0 : return false;
1597 : }
1598 : // Sentinel = 'TSystemPrincipalInfo'
1599 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
1600 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1601 0 : return false;
1602 : }
1603 0 : return true;
1604 : }
1605 : case type__::TNullPrincipalInfo:
1606 : {
1607 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
1608 0 : (*(v__)) = tmp;
1609 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
1610 0 : FatalError("Error deserializing Union type");
1611 0 : return false;
1612 : }
1613 : // Sentinel = 'TNullPrincipalInfo'
1614 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
1615 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1616 0 : return false;
1617 : }
1618 0 : return true;
1619 : }
1620 : case type__::TExpandedPrincipalInfo:
1621 : {
1622 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
1623 0 : (*(v__)) = tmp;
1624 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
1625 0 : FatalError("Error deserializing Union type");
1626 0 : return false;
1627 : }
1628 : // Sentinel = 'TExpandedPrincipalInfo'
1629 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
1630 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1631 0 : return false;
1632 : }
1633 0 : return true;
1634 : }
1635 : default:
1636 : {
1637 0 : FatalError("unknown union type");
1638 0 : return false;
1639 : }
1640 : }
1641 : }
1642 :
1643 0 : auto PWyciwygChannelChild::Write(
1644 : const JARURIParams& v__,
1645 : Message* msg__) -> void
1646 : {
1647 0 : Write((v__).jarFile(), msg__);
1648 : // Sentinel = 'jarFile'
1649 0 : (msg__)->WriteSentinel(1572070078);
1650 0 : Write((v__).jarEntry(), msg__);
1651 : // Sentinel = 'jarEntry'
1652 0 : (msg__)->WriteSentinel(941016033);
1653 0 : Write((v__).charset(), msg__);
1654 : // Sentinel = 'charset'
1655 0 : (msg__)->WriteSentinel(1551550891);
1656 0 : }
1657 :
1658 0 : auto PWyciwygChannelChild::Read(
1659 : JARURIParams* v__,
1660 : const Message* msg__,
1661 : PickleIterator* iter__) -> bool
1662 : {
1663 0 : if ((!(Read((&((v__)->jarFile())), msg__, iter__)))) {
1664 0 : FatalError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
1665 0 : return false;
1666 : }
1667 : // Sentinel = 'jarFile'
1668 0 : if ((!((msg__)->ReadSentinel(iter__, 1572070078)))) {
1669 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarFile' (URIParams) member of 'JARURIParams'");
1670 0 : return false;
1671 : }
1672 0 : if ((!(Read((&((v__)->jarEntry())), msg__, iter__)))) {
1673 0 : FatalError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
1674 0 : return false;
1675 : }
1676 : // Sentinel = 'jarEntry'
1677 0 : if ((!((msg__)->ReadSentinel(iter__, 941016033)))) {
1678 0 : mozilla::ipc::SentinelReadError("Error deserializing 'jarEntry' (URIParams) member of 'JARURIParams'");
1679 0 : return false;
1680 : }
1681 0 : if ((!(Read((&((v__)->charset())), msg__, iter__)))) {
1682 0 : FatalError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
1683 0 : return false;
1684 : }
1685 : // Sentinel = 'charset'
1686 0 : if ((!((msg__)->ReadSentinel(iter__, 1551550891)))) {
1687 0 : mozilla::ipc::SentinelReadError("Error deserializing 'charset' (nsCString) member of 'JARURIParams'");
1688 0 : return false;
1689 : }
1690 0 : return true;
1691 : }
1692 :
1693 0 : auto PWyciwygChannelChild::Write(
1694 : const ContentPrincipalInfo& v__,
1695 : Message* msg__) -> void
1696 : {
1697 0 : Write((v__).attrs(), msg__);
1698 : // Sentinel = 'attrs'
1699 0 : (msg__)->WriteSentinel(3014987797);
1700 0 : Write((v__).originNoSuffix(), msg__);
1701 : // Sentinel = 'originNoSuffix'
1702 0 : (msg__)->WriteSentinel(2833071422);
1703 0 : Write((v__).spec(), msg__);
1704 : // Sentinel = 'spec'
1705 0 : (msg__)->WriteSentinel(1630740541);
1706 0 : }
1707 :
1708 0 : auto PWyciwygChannelChild::Read(
1709 : ContentPrincipalInfo* v__,
1710 : const Message* msg__,
1711 : PickleIterator* iter__) -> bool
1712 : {
1713 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1714 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
1715 0 : return false;
1716 : }
1717 : // Sentinel = 'attrs'
1718 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1719 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
1720 0 : return false;
1721 : }
1722 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
1723 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
1724 0 : return false;
1725 : }
1726 : // Sentinel = 'originNoSuffix'
1727 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
1728 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
1729 0 : return false;
1730 : }
1731 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1732 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
1733 0 : return false;
1734 : }
1735 : // Sentinel = 'spec'
1736 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1737 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
1738 0 : return false;
1739 : }
1740 0 : return true;
1741 : }
1742 :
1743 0 : auto PWyciwygChannelChild::Write(
1744 : const SimpleURIParams& v__,
1745 : Message* msg__) -> void
1746 : {
1747 0 : Write((v__).scheme(), msg__);
1748 : // Sentinel = 'scheme'
1749 0 : (msg__)->WriteSentinel(3619238715);
1750 0 : Write((v__).path(), msg__);
1751 : // Sentinel = 'path'
1752 0 : (msg__)->WriteSentinel(913629401);
1753 0 : Write((v__).ref(), msg__);
1754 : // Sentinel = 'ref'
1755 0 : (msg__)->WriteSentinel(2626476732);
1756 0 : Write((v__).query(), msg__);
1757 : // Sentinel = 'query'
1758 0 : (msg__)->WriteSentinel(4249802777);
1759 0 : Write((v__).isMutable(), msg__);
1760 : // Sentinel = 'isMutable'
1761 0 : (msg__)->WriteSentinel(3552466783);
1762 0 : }
1763 :
1764 0 : auto PWyciwygChannelChild::Read(
1765 : SimpleURIParams* v__,
1766 : const Message* msg__,
1767 : PickleIterator* iter__) -> bool
1768 : {
1769 0 : if ((!(Read((&((v__)->scheme())), msg__, iter__)))) {
1770 0 : FatalError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
1771 0 : return false;
1772 : }
1773 : // Sentinel = 'scheme'
1774 0 : if ((!((msg__)->ReadSentinel(iter__, 3619238715)))) {
1775 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scheme' (nsCString) member of 'SimpleURIParams'");
1776 0 : return false;
1777 : }
1778 0 : if ((!(Read((&((v__)->path())), msg__, iter__)))) {
1779 0 : FatalError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
1780 0 : return false;
1781 : }
1782 : // Sentinel = 'path'
1783 0 : if ((!((msg__)->ReadSentinel(iter__, 913629401)))) {
1784 0 : mozilla::ipc::SentinelReadError("Error deserializing 'path' (nsCString) member of 'SimpleURIParams'");
1785 0 : return false;
1786 : }
1787 0 : if ((!(Read((&((v__)->ref())), msg__, iter__)))) {
1788 0 : FatalError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
1789 0 : return false;
1790 : }
1791 : // Sentinel = 'ref'
1792 0 : if ((!((msg__)->ReadSentinel(iter__, 2626476732)))) {
1793 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ref' (nsCString) member of 'SimpleURIParams'");
1794 0 : return false;
1795 : }
1796 0 : if ((!(Read((&((v__)->query())), msg__, iter__)))) {
1797 0 : FatalError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
1798 0 : return false;
1799 : }
1800 : // Sentinel = 'query'
1801 0 : if ((!((msg__)->ReadSentinel(iter__, 4249802777)))) {
1802 0 : mozilla::ipc::SentinelReadError("Error deserializing 'query' (nsCString) member of 'SimpleURIParams'");
1803 0 : return false;
1804 : }
1805 0 : if ((!(Read((&((v__)->isMutable())), msg__, iter__)))) {
1806 0 : FatalError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
1807 0 : return false;
1808 : }
1809 : // Sentinel = 'isMutable'
1810 0 : if ((!((msg__)->ReadSentinel(iter__, 3552466783)))) {
1811 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isMutable' (bool) member of 'SimpleURIParams'");
1812 0 : return false;
1813 : }
1814 0 : return true;
1815 : }
1816 :
1817 0 : auto PWyciwygChannelChild::Write(
1818 : const NullPrincipalURIParams& v__,
1819 : Message* msg__) -> void
1820 : {
1821 0 : }
1822 :
1823 0 : auto PWyciwygChannelChild::Read(
1824 : NullPrincipalURIParams* v__,
1825 : const Message* msg__,
1826 : PickleIterator* iter__) -> bool
1827 : {
1828 0 : return true;
1829 : }
1830 :
1831 0 : auto PWyciwygChannelChild::Write(
1832 : const IconURIParams& v__,
1833 : Message* msg__) -> void
1834 : {
1835 0 : Write((v__).uri(), msg__);
1836 : // Sentinel = 'uri'
1837 0 : (msg__)->WriteSentinel(1453210605);
1838 0 : Write((v__).size(), msg__);
1839 : // Sentinel = 'size'
1840 0 : (msg__)->WriteSentinel(931048223);
1841 0 : Write((v__).contentType(), msg__);
1842 : // Sentinel = 'contentType'
1843 0 : (msg__)->WriteSentinel(2092571716);
1844 0 : Write((v__).fileName(), msg__);
1845 : // Sentinel = 'fileName'
1846 0 : (msg__)->WriteSentinel(3833449039);
1847 0 : Write((v__).stockIcon(), msg__);
1848 : // Sentinel = 'stockIcon'
1849 0 : (msg__)->WriteSentinel(3601770784);
1850 0 : Write((v__).iconSize(), msg__);
1851 : // Sentinel = 'iconSize'
1852 0 : (msg__)->WriteSentinel(2585310920);
1853 0 : Write((v__).iconState(), msg__);
1854 : // Sentinel = 'iconState'
1855 0 : (msg__)->WriteSentinel(3444306207);
1856 0 : }
1857 :
1858 0 : auto PWyciwygChannelChild::Read(
1859 : IconURIParams* v__,
1860 : const Message* msg__,
1861 : PickleIterator* iter__) -> bool
1862 : {
1863 0 : if ((!(Read((&((v__)->uri())), msg__, iter__)))) {
1864 0 : FatalError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
1865 0 : return false;
1866 : }
1867 : // Sentinel = 'uri'
1868 0 : if ((!((msg__)->ReadSentinel(iter__, 1453210605)))) {
1869 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uri' (OptionalURIParams) member of 'IconURIParams'");
1870 0 : return false;
1871 : }
1872 0 : if ((!(Read((&((v__)->size())), msg__, iter__)))) {
1873 0 : FatalError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
1874 0 : return false;
1875 : }
1876 : // Sentinel = 'size'
1877 0 : if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
1878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint32_t) member of 'IconURIParams'");
1879 0 : return false;
1880 : }
1881 0 : if ((!(Read((&((v__)->contentType())), msg__, iter__)))) {
1882 0 : FatalError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
1883 0 : return false;
1884 : }
1885 : // Sentinel = 'contentType'
1886 0 : if ((!((msg__)->ReadSentinel(iter__, 2092571716)))) {
1887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'contentType' (nsCString) member of 'IconURIParams'");
1888 0 : return false;
1889 : }
1890 0 : if ((!(Read((&((v__)->fileName())), msg__, iter__)))) {
1891 0 : FatalError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
1892 0 : return false;
1893 : }
1894 : // Sentinel = 'fileName'
1895 0 : if ((!((msg__)->ReadSentinel(iter__, 3833449039)))) {
1896 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileName' (nsCString) member of 'IconURIParams'");
1897 0 : return false;
1898 : }
1899 0 : if ((!(Read((&((v__)->stockIcon())), msg__, iter__)))) {
1900 0 : FatalError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
1901 0 : return false;
1902 : }
1903 : // Sentinel = 'stockIcon'
1904 0 : if ((!((msg__)->ReadSentinel(iter__, 3601770784)))) {
1905 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stockIcon' (nsCString) member of 'IconURIParams'");
1906 0 : return false;
1907 : }
1908 0 : if ((!(Read((&((v__)->iconSize())), msg__, iter__)))) {
1909 0 : FatalError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
1910 0 : return false;
1911 : }
1912 : // Sentinel = 'iconSize'
1913 0 : if ((!((msg__)->ReadSentinel(iter__, 2585310920)))) {
1914 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconSize' (int32_t) member of 'IconURIParams'");
1915 0 : return false;
1916 : }
1917 0 : if ((!(Read((&((v__)->iconState())), msg__, iter__)))) {
1918 0 : FatalError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
1919 0 : return false;
1920 : }
1921 : // Sentinel = 'iconState'
1922 0 : if ((!((msg__)->ReadSentinel(iter__, 3444306207)))) {
1923 0 : mozilla::ipc::SentinelReadError("Error deserializing 'iconState' (int32_t) member of 'IconURIParams'");
1924 0 : return false;
1925 : }
1926 0 : return true;
1927 : }
1928 :
1929 0 : auto PWyciwygChannelChild::Write(
1930 : const PBrowserChild* v__,
1931 : Message* msg__,
1932 : bool nullable__) -> void
1933 : {
1934 : int32_t id;
1935 0 : if ((!(v__))) {
1936 0 : if ((!(nullable__))) {
1937 0 : FatalError("NULL actor value passed to non-nullable param");
1938 : }
1939 0 : id = 0;
1940 : }
1941 : else {
1942 0 : id = (v__)->Id();
1943 0 : if ((1) == (id)) {
1944 0 : FatalError("actor has been |delete|d");
1945 : }
1946 : }
1947 :
1948 0 : Write(id, msg__);
1949 0 : }
1950 :
1951 0 : auto PWyciwygChannelChild::Read(
1952 : PBrowserChild** v__,
1953 : const Message* msg__,
1954 : PickleIterator* iter__,
1955 : bool nullable__) -> bool
1956 : {
1957 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowser", PBrowserMsgStart);
1958 0 : if ((actor).isNothing()) {
1959 0 : return false;
1960 : }
1961 :
1962 0 : (*(v__)) = static_cast<PBrowserChild*>((actor).value());
1963 0 : return true;
1964 : }
1965 :
1966 0 : auto PWyciwygChannelChild::Write(
1967 : const PWyciwygChannelChild* v__,
1968 : Message* msg__,
1969 : bool nullable__) -> void
1970 : {
1971 : int32_t id;
1972 0 : if ((!(v__))) {
1973 0 : if ((!(nullable__))) {
1974 0 : FatalError("NULL actor value passed to non-nullable param");
1975 : }
1976 0 : id = 0;
1977 : }
1978 : else {
1979 0 : id = (v__)->Id();
1980 0 : if ((1) == (id)) {
1981 0 : FatalError("actor has been |delete|d");
1982 : }
1983 : }
1984 :
1985 0 : Write(id, msg__);
1986 0 : }
1987 :
1988 0 : auto PWyciwygChannelChild::Read(
1989 : PWyciwygChannelChild** v__,
1990 : const Message* msg__,
1991 : PickleIterator* iter__,
1992 : bool nullable__) -> bool
1993 : {
1994 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWyciwygChannel", PWyciwygChannelMsgStart);
1995 0 : if ((actor).isNothing()) {
1996 0 : return false;
1997 : }
1998 :
1999 0 : (*(v__)) = static_cast<PWyciwygChannelChild*>((actor).value());
2000 0 : return true;
2001 : }
2002 :
2003 0 : auto PWyciwygChannelChild::Write(
2004 : const JSURIParams& v__,
2005 : Message* msg__) -> void
2006 : {
2007 0 : Write((v__).simpleParams(), msg__);
2008 : // Sentinel = 'simpleParams'
2009 0 : (msg__)->WriteSentinel(3404291700);
2010 0 : Write((v__).baseURI(), msg__);
2011 : // Sentinel = 'baseURI'
2012 0 : (msg__)->WriteSentinel(1836705256);
2013 0 : }
2014 :
2015 0 : auto PWyciwygChannelChild::Read(
2016 : JSURIParams* v__,
2017 : const Message* msg__,
2018 : PickleIterator* iter__) -> bool
2019 : {
2020 0 : if ((!(Read((&((v__)->simpleParams())), msg__, iter__)))) {
2021 0 : FatalError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
2022 0 : return false;
2023 : }
2024 : // Sentinel = 'simpleParams'
2025 0 : if ((!((msg__)->ReadSentinel(iter__, 3404291700)))) {
2026 0 : mozilla::ipc::SentinelReadError("Error deserializing 'simpleParams' (SimpleURIParams) member of 'JSURIParams'");
2027 0 : return false;
2028 : }
2029 0 : if ((!(Read((&((v__)->baseURI())), msg__, iter__)))) {
2030 0 : FatalError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
2031 0 : return false;
2032 : }
2033 : // Sentinel = 'baseURI'
2034 0 : if ((!((msg__)->ReadSentinel(iter__, 1836705256)))) {
2035 0 : mozilla::ipc::SentinelReadError("Error deserializing 'baseURI' (OptionalURIParams) member of 'JSURIParams'");
2036 0 : return false;
2037 : }
2038 0 : return true;
2039 : }
2040 :
2041 0 : auto PWyciwygChannelChild::Write(
2042 : const NullPrincipalInfo& v__,
2043 : Message* msg__) -> void
2044 : {
2045 0 : Write((v__).attrs(), msg__);
2046 : // Sentinel = 'attrs'
2047 0 : (msg__)->WriteSentinel(3014987797);
2048 0 : Write((v__).spec(), msg__);
2049 : // Sentinel = 'spec'
2050 0 : (msg__)->WriteSentinel(1630740541);
2051 0 : }
2052 :
2053 0 : auto PWyciwygChannelChild::Read(
2054 : NullPrincipalInfo* v__,
2055 : const Message* msg__,
2056 : PickleIterator* iter__) -> bool
2057 : {
2058 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2059 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2060 0 : return false;
2061 : }
2062 : // Sentinel = 'attrs'
2063 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2064 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
2065 0 : return false;
2066 : }
2067 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
2068 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2069 0 : return false;
2070 : }
2071 : // Sentinel = 'spec'
2072 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
2073 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
2074 0 : return false;
2075 : }
2076 0 : return true;
2077 : }
2078 :
2079 0 : auto PWyciwygChannelChild::Write(
2080 : const StandardURLSegment& v__,
2081 : Message* msg__) -> void
2082 : {
2083 0 : Write((v__).position(), msg__);
2084 : // Sentinel = 'position'
2085 0 : (msg__)->WriteSentinel(50847225);
2086 0 : Write((v__).length(), msg__);
2087 : // Sentinel = 'length'
2088 0 : (msg__)->WriteSentinel(1726618354);
2089 0 : }
2090 :
2091 0 : auto PWyciwygChannelChild::Read(
2092 : StandardURLSegment* v__,
2093 : const Message* msg__,
2094 : PickleIterator* iter__) -> bool
2095 : {
2096 0 : if ((!(Read((&((v__)->position())), msg__, iter__)))) {
2097 0 : FatalError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
2098 0 : return false;
2099 : }
2100 : // Sentinel = 'position'
2101 0 : if ((!((msg__)->ReadSentinel(iter__, 50847225)))) {
2102 0 : mozilla::ipc::SentinelReadError("Error deserializing 'position' (uint32_t) member of 'StandardURLSegment'");
2103 0 : return false;
2104 : }
2105 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
2106 0 : FatalError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
2107 0 : return false;
2108 : }
2109 : // Sentinel = 'length'
2110 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
2111 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (int32_t) member of 'StandardURLSegment'");
2112 0 : return false;
2113 : }
2114 0 : return true;
2115 : }
2116 :
2117 :
2118 :
2119 : } // namespace net
2120 : } // namespace mozilla
|