Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/media/PMediaChild.h"
8 :
9 : #include "mozilla/dom/PContentChild.h"
10 :
11 : #include "nsIFile.h"
12 : #include "GeckoProfiler.h"
13 :
14 : namespace mozilla {
15 : namespace media {
16 :
17 :
18 0 : auto PMediaChild::Recv__delete__() -> mozilla::ipc::IPCResult
19 : {
20 0 : return IPC_OK();
21 : }
22 :
23 0 : auto PMediaChild::ActorDestroy(ActorDestroyReason aWhy) -> void
24 : {
25 0 : }
26 :
27 0 : MOZ_IMPLICIT PMediaChild::PMediaChild() :
28 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
29 0 : mState(PMedia::__Dead)
30 : {
31 0 : MOZ_COUNT_CTOR(PMediaChild);
32 0 : }
33 :
34 0 : PMediaChild::~PMediaChild()
35 : {
36 0 : MOZ_COUNT_DTOR(PMediaChild);
37 0 : }
38 :
39 0 : auto PMediaChild::Manager() const -> PContentChild*
40 : {
41 0 : return static_cast<PContentChild*>(IProtocol::Manager());
42 : }
43 :
44 0 : auto PMediaChild::SendGetPrincipalKey(
45 : const uint32_t& aRequestId,
46 : const PrincipalInfo& aPrincipal,
47 : const bool& aPersist) -> bool
48 : {
49 0 : IPC::Message* msg__ = PMedia::Msg_GetPrincipalKey(Id());
50 :
51 0 : Write(aRequestId, msg__);
52 : // Sentinel = 'aRequestId'
53 0 : (msg__)->WriteSentinel(3709302657);
54 0 : Write(aPrincipal, msg__);
55 : // Sentinel = 'aPrincipal'
56 0 : (msg__)->WriteSentinel(4097511);
57 0 : Write(aPersist, msg__);
58 : // Sentinel = 'aPersist'
59 0 : (msg__)->WriteSentinel(4167438139);
60 :
61 :
62 :
63 :
64 0 : if (mozilla::ipc::LoggingEnabledFor("PMediaChild")) {
65 0 : mozilla::ipc::LogMessageForProtocol("PMediaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
66 : }
67 0 : AUTO_PROFILER_LABEL("PMedia::Msg_GetPrincipalKey", OTHER);
68 0 : PMedia::Transition(PMedia::Msg_GetPrincipalKey__ID, (&(mState)));
69 :
70 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
71 0 : return sendok__;
72 : }
73 :
74 0 : auto PMediaChild::SendSanitizeOriginKeys(
75 : const uint64_t& aSinceWhen,
76 : const bool& aOnlyPrivateBrowsing) -> bool
77 : {
78 0 : IPC::Message* msg__ = PMedia::Msg_SanitizeOriginKeys(Id());
79 :
80 0 : Write(aSinceWhen, msg__);
81 : // Sentinel = 'aSinceWhen'
82 0 : (msg__)->WriteSentinel(2883988047);
83 0 : Write(aOnlyPrivateBrowsing, msg__);
84 : // Sentinel = 'aOnlyPrivateBrowsing'
85 0 : (msg__)->WriteSentinel(1580982783);
86 :
87 :
88 :
89 :
90 0 : if (mozilla::ipc::LoggingEnabledFor("PMediaChild")) {
91 0 : mozilla::ipc::LogMessageForProtocol("PMediaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
92 : }
93 0 : AUTO_PROFILER_LABEL("PMedia::Msg_SanitizeOriginKeys", OTHER);
94 0 : PMedia::Transition(PMedia::Msg_SanitizeOriginKeys__ID, (&(mState)));
95 :
96 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
97 0 : return sendok__;
98 : }
99 :
100 0 : auto PMediaChild::RemoveManagee(
101 : int32_t aProtocolId,
102 : ProtocolBase* aListener) -> void
103 : {
104 0 : FatalError("unreached");
105 0 : return;
106 : }
107 :
108 0 : auto PMediaChild::OnMessageReceived(const Message& msg__) -> PMediaChild::Result
109 : {
110 0 : switch ((msg__).type()) {
111 : case PMedia::Msg_GetPrincipalKeyResponse__ID:
112 : {
113 0 : if (mozilla::ipc::LoggingEnabledFor("PMediaChild")) {
114 0 : mozilla::ipc::LogMessageForProtocol("PMediaChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
115 : }
116 0 : AUTO_PROFILER_LABEL("PMedia::Msg_GetPrincipalKeyResponse", OTHER);
117 :
118 0 : PickleIterator iter__(msg__);
119 : uint32_t aRequestId;
120 0 : nsCString key;
121 :
122 0 : if ((!(Read((&(aRequestId)), (&(msg__)), (&(iter__)))))) {
123 0 : FatalError("Error deserializing 'uint32_t'");
124 0 : return MsgValueError;
125 : }
126 : // Sentinel = 'aRequestId'
127 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3709302657)))) {
128 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
129 0 : return MsgValueError;
130 : }
131 0 : if ((!(Read((&(key)), (&(msg__)), (&(iter__)))))) {
132 0 : FatalError("Error deserializing 'nsCString'");
133 0 : return MsgValueError;
134 : }
135 : // Sentinel = 'key'
136 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 35142870)))) {
137 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
138 0 : return MsgValueError;
139 : }
140 0 : (msg__).EndRead(iter__, (msg__).type());
141 0 : PMedia::Transition(PMedia::Msg_GetPrincipalKeyResponse__ID, (&(mState)));
142 0 : if ((!(RecvGetPrincipalKeyResponse(mozilla::Move(aRequestId), mozilla::Move(key))))) {
143 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
144 : // Error handled in mozilla::ipc::IPCResult
145 0 : return MsgProcessingError;
146 : }
147 :
148 0 : return MsgProcessed;
149 : }
150 : case PMedia::Msg___delete____ID:
151 : {
152 0 : if (mozilla::ipc::LoggingEnabledFor("PMediaChild")) {
153 0 : mozilla::ipc::LogMessageForProtocol("PMediaChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
154 : }
155 0 : AUTO_PROFILER_LABEL("PMedia::Msg___delete__", OTHER);
156 :
157 0 : PickleIterator iter__(msg__);
158 : PMediaChild* actor;
159 :
160 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
161 0 : FatalError("Error deserializing 'PMediaChild'");
162 0 : return MsgValueError;
163 : }
164 : // Sentinel = 'actor'
165 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
166 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PMediaChild'");
167 0 : return MsgValueError;
168 : }
169 0 : (msg__).EndRead(iter__, (msg__).type());
170 0 : PMedia::Transition(PMedia::Msg___delete____ID, (&(mState)));
171 0 : if ((!(Recv__delete__()))) {
172 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
173 : // Error handled in mozilla::ipc::IPCResult
174 0 : return MsgProcessingError;
175 : }
176 :
177 :
178 0 : IProtocol* mgr = (actor)->Manager();
179 0 : (actor)->DestroySubtree(Deletion);
180 0 : (actor)->DeallocSubtree();
181 0 : (mgr)->RemoveManagee(PMediaMsgStart, actor);
182 :
183 0 : return MsgProcessed;
184 : }
185 : default:
186 : {
187 0 : return MsgNotKnown;
188 : }
189 : }
190 : }
191 :
192 0 : auto PMediaChild::OnMessageReceived(
193 : const Message& msg__,
194 : Message*& reply__) -> PMediaChild::Result
195 : {
196 0 : return MsgNotKnown;
197 : }
198 :
199 0 : auto PMediaChild::OnCallReceived(
200 : const Message& msg__,
201 : Message*& reply__) -> PMediaChild::Result
202 : {
203 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
204 : return MsgNotKnown;
205 : }
206 :
207 0 : auto PMediaChild::GetProtocolTypeId() -> int32_t
208 : {
209 0 : return PMediaMsgStart;
210 : }
211 :
212 0 : auto PMediaChild::ProtocolName() const -> const char*
213 : {
214 0 : return "PMediaChild";
215 : }
216 :
217 0 : auto PMediaChild::DestroySubtree(ActorDestroyReason why) -> void
218 : {
219 : // Unregister from our manager.
220 0 : Unregister(Id());
221 :
222 : // Reject owning pending promises.
223 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
224 :
225 : // Finally, destroy "us".
226 0 : ActorDestroy(why);
227 0 : }
228 :
229 0 : auto PMediaChild::DeallocSubtree() -> void
230 : {
231 0 : }
232 :
233 0 : auto PMediaChild::Write(
234 : const SystemPrincipalInfo& v__,
235 : Message* msg__) -> void
236 : {
237 0 : }
238 :
239 0 : auto PMediaChild::Read(
240 : SystemPrincipalInfo* v__,
241 : const Message* msg__,
242 : PickleIterator* iter__) -> bool
243 : {
244 0 : return true;
245 : }
246 :
247 0 : auto PMediaChild::Write(
248 : const nsTArray<PrincipalInfo>& v__,
249 : Message* msg__) -> void
250 : {
251 0 : uint32_t length = (v__).Length();
252 0 : Write(length, msg__);
253 : // Sentinel = ('length', 'PrincipalInfo[]')
254 0 : (msg__)->WriteSentinel(1032188126);
255 :
256 0 : for (auto& elem : v__) {
257 0 : Write(elem, msg__);
258 : // Sentinel = 'PrincipalInfo[]'
259 0 : (msg__)->WriteSentinel(413380193);
260 : }
261 0 : }
262 :
263 0 : auto PMediaChild::Read(
264 : nsTArray<PrincipalInfo>* v__,
265 : const Message* msg__,
266 : PickleIterator* iter__) -> bool
267 : {
268 0 : nsTArray<PrincipalInfo> fa;
269 : uint32_t length;
270 0 : if ((!(Read((&(length)), msg__, iter__)))) {
271 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
272 0 : return false;
273 : }
274 : // Sentinel = ('length', 'PrincipalInfo[]')
275 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
276 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
277 0 : return false;
278 : }
279 :
280 0 : PrincipalInfo* elems = (fa).AppendElements(length);
281 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
282 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
283 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
284 0 : return false;
285 : }
286 : // Sentinel = 'PrincipalInfo[]'
287 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
288 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
289 0 : return false;
290 : }
291 : }
292 0 : (v__)->SwapElements(fa);
293 0 : return true;
294 : }
295 :
296 0 : auto PMediaChild::Write(
297 : const ExpandedPrincipalInfo& v__,
298 : Message* msg__) -> void
299 : {
300 0 : Write((v__).attrs(), msg__);
301 : // Sentinel = 'attrs'
302 0 : (msg__)->WriteSentinel(3014987797);
303 0 : Write((v__).whitelist(), msg__);
304 : // Sentinel = 'whitelist'
305 0 : (msg__)->WriteSentinel(3731637258);
306 0 : }
307 :
308 0 : auto PMediaChild::Read(
309 : ExpandedPrincipalInfo* v__,
310 : const Message* msg__,
311 : PickleIterator* iter__) -> bool
312 : {
313 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
314 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
315 0 : return false;
316 : }
317 : // Sentinel = 'attrs'
318 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
319 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
320 0 : return false;
321 : }
322 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
323 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
324 0 : return false;
325 : }
326 : // Sentinel = 'whitelist'
327 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
328 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
329 0 : return false;
330 : }
331 0 : return true;
332 : }
333 :
334 0 : auto PMediaChild::Write(
335 : const PMediaChild* v__,
336 : Message* msg__,
337 : bool nullable__) -> void
338 : {
339 : int32_t id;
340 0 : if ((!(v__))) {
341 0 : if ((!(nullable__))) {
342 0 : FatalError("NULL actor value passed to non-nullable param");
343 : }
344 0 : id = 0;
345 : }
346 : else {
347 0 : id = (v__)->Id();
348 0 : if ((1) == (id)) {
349 0 : FatalError("actor has been |delete|d");
350 : }
351 : }
352 :
353 0 : Write(id, msg__);
354 0 : }
355 :
356 0 : auto PMediaChild::Read(
357 : PMediaChild** v__,
358 : const Message* msg__,
359 : PickleIterator* iter__,
360 : bool nullable__) -> bool
361 : {
362 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PMedia", PMediaMsgStart);
363 0 : if ((actor).isNothing()) {
364 0 : return false;
365 : }
366 :
367 0 : (*(v__)) = static_cast<PMediaChild*>((actor).value());
368 0 : return true;
369 : }
370 :
371 0 : auto PMediaChild::Write(
372 : const PrincipalInfo& v__,
373 : Message* msg__) -> void
374 : {
375 : typedef PrincipalInfo type__;
376 0 : Write(int((v__).type()), msg__);
377 : // Sentinel = 'PrincipalInfo'
378 0 : (msg__)->WriteSentinel(4194518819);
379 :
380 0 : switch ((v__).type()) {
381 : case type__::TContentPrincipalInfo:
382 : {
383 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
384 : // Sentinel = 'TContentPrincipalInfo'
385 0 : (msg__)->WriteSentinel(3677342258);
386 0 : return;
387 : }
388 : case type__::TSystemPrincipalInfo:
389 : {
390 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
391 : // Sentinel = 'TSystemPrincipalInfo'
392 0 : (msg__)->WriteSentinel(3590603679);
393 0 : return;
394 : }
395 : case type__::TNullPrincipalInfo:
396 : {
397 0 : Write((v__).get_NullPrincipalInfo(), msg__);
398 : // Sentinel = 'TNullPrincipalInfo'
399 0 : (msg__)->WriteSentinel(3477774965);
400 0 : return;
401 : }
402 : case type__::TExpandedPrincipalInfo:
403 : {
404 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
405 : // Sentinel = 'TExpandedPrincipalInfo'
406 0 : (msg__)->WriteSentinel(589324917);
407 0 : return;
408 : }
409 : default:
410 : {
411 0 : FatalError("unknown union type");
412 0 : return;
413 : }
414 : }
415 : }
416 :
417 0 : auto PMediaChild::Read(
418 : PrincipalInfo* v__,
419 : const Message* msg__,
420 : PickleIterator* iter__) -> bool
421 : {
422 : typedef PrincipalInfo type__;
423 : int type;
424 0 : if ((!(Read((&(type)), msg__, iter__)))) {
425 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
426 0 : return false;
427 : }
428 : // Sentinel = 'PrincipalInfo'
429 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
430 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
431 0 : return false;
432 : }
433 :
434 0 : switch (type) {
435 : case type__::TContentPrincipalInfo:
436 : {
437 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
438 0 : (*(v__)) = tmp;
439 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
440 0 : FatalError("Error deserializing Union type");
441 0 : return false;
442 : }
443 : // Sentinel = 'TContentPrincipalInfo'
444 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
445 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
446 0 : return false;
447 : }
448 0 : return true;
449 : }
450 : case type__::TSystemPrincipalInfo:
451 : {
452 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
453 0 : (*(v__)) = tmp;
454 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
455 0 : FatalError("Error deserializing Union type");
456 0 : return false;
457 : }
458 : // Sentinel = 'TSystemPrincipalInfo'
459 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
460 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
461 0 : return false;
462 : }
463 0 : return true;
464 : }
465 : case type__::TNullPrincipalInfo:
466 : {
467 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
468 0 : (*(v__)) = tmp;
469 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
470 0 : FatalError("Error deserializing Union type");
471 0 : return false;
472 : }
473 : // Sentinel = 'TNullPrincipalInfo'
474 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
475 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
476 0 : return false;
477 : }
478 0 : return true;
479 : }
480 : case type__::TExpandedPrincipalInfo:
481 : {
482 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
483 0 : (*(v__)) = tmp;
484 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
485 0 : FatalError("Error deserializing Union type");
486 0 : return false;
487 : }
488 : // Sentinel = 'TExpandedPrincipalInfo'
489 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
490 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
491 0 : return false;
492 : }
493 0 : return true;
494 : }
495 : default:
496 : {
497 0 : FatalError("unknown union type");
498 0 : return false;
499 : }
500 : }
501 : }
502 :
503 0 : auto PMediaChild::Write(
504 : const ContentPrincipalInfoOriginNoSuffix& v__,
505 : Message* msg__) -> void
506 : {
507 : typedef ContentPrincipalInfoOriginNoSuffix type__;
508 0 : Write(int((v__).type()), msg__);
509 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
510 0 : (msg__)->WriteSentinel(2442066713);
511 :
512 0 : switch ((v__).type()) {
513 : case type__::TnsCString:
514 : {
515 0 : Write((v__).get_nsCString(), msg__);
516 : // Sentinel = 'TnsCString'
517 0 : (msg__)->WriteSentinel(2427411293);
518 0 : return;
519 : }
520 : case type__::Tvoid_t:
521 : {
522 0 : Write((v__).get_void_t(), msg__);
523 : // Sentinel = 'Tvoid_t'
524 0 : (msg__)->WriteSentinel(3041273328);
525 0 : return;
526 : }
527 : default:
528 : {
529 0 : FatalError("unknown union type");
530 0 : return;
531 : }
532 : }
533 : }
534 :
535 0 : auto PMediaChild::Read(
536 : ContentPrincipalInfoOriginNoSuffix* v__,
537 : const Message* msg__,
538 : PickleIterator* iter__) -> bool
539 : {
540 : typedef ContentPrincipalInfoOriginNoSuffix type__;
541 : int type;
542 0 : if ((!(Read((&(type)), msg__, iter__)))) {
543 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
544 0 : return false;
545 : }
546 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
547 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
548 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
549 0 : return false;
550 : }
551 :
552 0 : switch (type) {
553 : case type__::TnsCString:
554 : {
555 0 : nsCString tmp = nsCString();
556 0 : (*(v__)) = tmp;
557 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
558 0 : FatalError("Error deserializing Union type");
559 0 : return false;
560 : }
561 : // Sentinel = 'TnsCString'
562 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
563 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
564 0 : return false;
565 : }
566 0 : return true;
567 : }
568 : case type__::Tvoid_t:
569 : {
570 : void_t tmp = void_t();
571 0 : (*(v__)) = tmp;
572 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
573 0 : FatalError("Error deserializing Union type");
574 0 : return false;
575 : }
576 : // Sentinel = 'Tvoid_t'
577 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
578 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
579 0 : return false;
580 : }
581 0 : return true;
582 : }
583 : default:
584 : {
585 0 : FatalError("unknown union type");
586 0 : return false;
587 : }
588 : }
589 : }
590 :
591 0 : auto PMediaChild::Write(
592 : const ContentPrincipalInfo& v__,
593 : Message* msg__) -> void
594 : {
595 0 : Write((v__).attrs(), msg__);
596 : // Sentinel = 'attrs'
597 0 : (msg__)->WriteSentinel(3014987797);
598 0 : Write((v__).originNoSuffix(), msg__);
599 : // Sentinel = 'originNoSuffix'
600 0 : (msg__)->WriteSentinel(2833071422);
601 0 : Write((v__).spec(), msg__);
602 : // Sentinel = 'spec'
603 0 : (msg__)->WriteSentinel(1630740541);
604 0 : }
605 :
606 0 : auto PMediaChild::Read(
607 : ContentPrincipalInfo* v__,
608 : const Message* msg__,
609 : PickleIterator* iter__) -> bool
610 : {
611 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
612 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
613 0 : return false;
614 : }
615 : // Sentinel = 'attrs'
616 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
617 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
618 0 : return false;
619 : }
620 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
621 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
622 0 : return false;
623 : }
624 : // Sentinel = 'originNoSuffix'
625 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
626 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
627 0 : return false;
628 : }
629 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
630 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
631 0 : return false;
632 : }
633 : // Sentinel = 'spec'
634 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
635 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
636 0 : return false;
637 : }
638 0 : return true;
639 : }
640 :
641 0 : auto PMediaChild::Write(
642 : const NullPrincipalInfo& v__,
643 : Message* msg__) -> void
644 : {
645 0 : Write((v__).attrs(), msg__);
646 : // Sentinel = 'attrs'
647 0 : (msg__)->WriteSentinel(3014987797);
648 0 : Write((v__).spec(), msg__);
649 : // Sentinel = 'spec'
650 0 : (msg__)->WriteSentinel(1630740541);
651 0 : }
652 :
653 0 : auto PMediaChild::Read(
654 : NullPrincipalInfo* v__,
655 : const Message* msg__,
656 : PickleIterator* iter__) -> bool
657 : {
658 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
659 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
660 0 : return false;
661 : }
662 : // Sentinel = 'attrs'
663 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
664 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
665 0 : return false;
666 : }
667 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
668 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
669 0 : return false;
670 : }
671 : // Sentinel = 'spec'
672 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
673 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
674 0 : return false;
675 : }
676 0 : return true;
677 : }
678 :
679 :
680 :
681 : } // namespace media
682 : } // namespace mozilla
|