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