Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/dom/PServiceWorkerManagerChild.h"
8 :
9 : #include "mozilla/ipc/PBackgroundChild.h"
10 : #include "mozilla/dom/PServiceWorkerUpdaterChild.h"
11 :
12 : #include "nsIFile.h"
13 : #include "GeckoProfiler.h"
14 :
15 : namespace mozilla {
16 : namespace dom {
17 :
18 :
19 0 : auto PServiceWorkerManagerChild::Recv__delete__() -> mozilla::ipc::IPCResult
20 : {
21 0 : return IPC_OK();
22 : }
23 :
24 0 : auto PServiceWorkerManagerChild::ActorDestroy(ActorDestroyReason aWhy) -> void
25 : {
26 0 : }
27 :
28 2 : MOZ_IMPLICIT PServiceWorkerManagerChild::PServiceWorkerManagerChild() :
29 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
30 2 : mState(PServiceWorkerManager::__Dead)
31 : {
32 2 : MOZ_COUNT_CTOR(PServiceWorkerManagerChild);
33 2 : }
34 :
35 0 : PServiceWorkerManagerChild::~PServiceWorkerManagerChild()
36 : {
37 0 : MOZ_COUNT_DTOR(PServiceWorkerManagerChild);
38 0 : }
39 :
40 0 : auto PServiceWorkerManagerChild::Manager() const -> PBackgroundChild*
41 : {
42 0 : return static_cast<PBackgroundChild*>(IProtocol::Manager());
43 : }
44 :
45 0 : auto PServiceWorkerManagerChild::ManagedPServiceWorkerUpdaterChild(nsTArray<PServiceWorkerUpdaterChild*>& aArr) const -> void
46 : {
47 0 : (mManagedPServiceWorkerUpdaterChild).ToArray(aArr);
48 0 : }
49 :
50 0 : auto PServiceWorkerManagerChild::ManagedPServiceWorkerUpdaterChild() const -> const ManagedContainer<PServiceWorkerUpdaterChild>&
51 : {
52 0 : return mManagedPServiceWorkerUpdaterChild;
53 : }
54 :
55 0 : auto PServiceWorkerManagerChild::SendRegister(const ServiceWorkerRegistrationData& data) -> bool
56 : {
57 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_Register(Id());
58 :
59 0 : Write(data, msg__);
60 : // Sentinel = 'data'
61 0 : (msg__)->WriteSentinel(843352540);
62 :
63 :
64 :
65 :
66 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
67 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
68 : }
69 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_Register", OTHER);
70 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_Register__ID, (&(mState)));
71 :
72 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
73 0 : return sendok__;
74 : }
75 :
76 0 : auto PServiceWorkerManagerChild::SendUnregister(
77 : const PrincipalInfo& principalInfo,
78 : const nsString& scope) -> bool
79 : {
80 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_Unregister(Id());
81 :
82 0 : Write(principalInfo, msg__);
83 : // Sentinel = 'principalInfo'
84 0 : (msg__)->WriteSentinel(3386633731);
85 0 : Write(scope, msg__);
86 : // Sentinel = 'scope'
87 0 : (msg__)->WriteSentinel(2191984953);
88 :
89 :
90 :
91 :
92 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
93 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
94 : }
95 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_Unregister", OTHER);
96 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_Unregister__ID, (&(mState)));
97 :
98 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
99 0 : return sendok__;
100 : }
101 :
102 0 : auto PServiceWorkerManagerChild::SendPropagateSoftUpdate(
103 : const OriginAttributes& originAttributes,
104 : const nsString& scope) -> bool
105 : {
106 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_PropagateSoftUpdate(Id());
107 :
108 0 : Write(originAttributes, msg__);
109 : // Sentinel = 'originAttributes'
110 0 : (msg__)->WriteSentinel(2655275965);
111 0 : Write(scope, msg__);
112 : // Sentinel = 'scope'
113 0 : (msg__)->WriteSentinel(2191984953);
114 :
115 :
116 :
117 :
118 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
119 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
120 : }
121 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_PropagateSoftUpdate", OTHER);
122 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_PropagateSoftUpdate__ID, (&(mState)));
123 :
124 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
125 0 : return sendok__;
126 : }
127 :
128 0 : auto PServiceWorkerManagerChild::SendPropagateUnregister(
129 : const PrincipalInfo& principalInfo,
130 : const nsString& scope) -> bool
131 : {
132 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_PropagateUnregister(Id());
133 :
134 0 : Write(principalInfo, msg__);
135 : // Sentinel = 'principalInfo'
136 0 : (msg__)->WriteSentinel(3386633731);
137 0 : Write(scope, msg__);
138 : // Sentinel = 'scope'
139 0 : (msg__)->WriteSentinel(2191984953);
140 :
141 :
142 :
143 :
144 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
145 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
146 : }
147 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_PropagateUnregister", OTHER);
148 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_PropagateUnregister__ID, (&(mState)));
149 :
150 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
151 0 : return sendok__;
152 : }
153 :
154 0 : auto PServiceWorkerManagerChild::SendPropagateRemove(const nsCString& host) -> bool
155 : {
156 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_PropagateRemove(Id());
157 :
158 0 : Write(host, msg__);
159 : // Sentinel = 'host'
160 0 : (msg__)->WriteSentinel(4070301394);
161 :
162 :
163 :
164 :
165 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
166 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
167 : }
168 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_PropagateRemove", OTHER);
169 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_PropagateRemove__ID, (&(mState)));
170 :
171 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
172 0 : return sendok__;
173 : }
174 :
175 0 : auto PServiceWorkerManagerChild::SendPropagateRemoveAll() -> bool
176 : {
177 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_PropagateRemoveAll(Id());
178 :
179 :
180 :
181 :
182 :
183 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
184 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
185 : }
186 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_PropagateRemoveAll", OTHER);
187 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_PropagateRemoveAll__ID, (&(mState)));
188 :
189 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
190 0 : return sendok__;
191 : }
192 :
193 0 : auto PServiceWorkerManagerChild::SendShutdown() -> bool
194 : {
195 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_Shutdown(Id());
196 :
197 :
198 :
199 :
200 :
201 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
202 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
203 : }
204 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_Shutdown", OTHER);
205 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_Shutdown__ID, (&(mState)));
206 :
207 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
208 0 : return sendok__;
209 : }
210 :
211 0 : auto PServiceWorkerManagerChild::SendPServiceWorkerUpdaterConstructor(
212 : const OriginAttributes& originAttributes,
213 : const nsCString& scope) -> PServiceWorkerUpdaterChild*
214 : {
215 0 : return SendPServiceWorkerUpdaterConstructor(AllocPServiceWorkerUpdaterChild(originAttributes, scope), originAttributes, scope);
216 : }
217 :
218 0 : auto PServiceWorkerManagerChild::SendPServiceWorkerUpdaterConstructor(
219 : PServiceWorkerUpdaterChild* actor,
220 : const OriginAttributes& originAttributes,
221 : const nsCString& scope) -> PServiceWorkerUpdaterChild*
222 : {
223 0 : if ((!(actor))) {
224 0 : NS_WARNING("Error constructing actor PServiceWorkerUpdaterChild");
225 0 : return nullptr;
226 : }
227 0 : (actor)->SetManager(this);
228 0 : Register(actor);
229 0 : (actor)->SetIPCChannel(GetIPCChannel());
230 0 : (mManagedPServiceWorkerUpdaterChild).PutEntry(actor);
231 0 : (actor)->mState = mozilla::dom::PServiceWorkerUpdater::__Start;
232 :
233 0 : IPC::Message* msg__ = PServiceWorkerManager::Msg_PServiceWorkerUpdaterConstructor(Id());
234 :
235 0 : Write(actor, msg__, false);
236 : // Sentinel = 'actor'
237 0 : (msg__)->WriteSentinel(875202478);
238 0 : Write(originAttributes, msg__);
239 : // Sentinel = 'originAttributes'
240 0 : (msg__)->WriteSentinel(2655275965);
241 0 : Write(scope, msg__);
242 : // Sentinel = 'scope'
243 0 : (msg__)->WriteSentinel(2191984953);
244 :
245 0 : (msg__)->set_constructor();
246 :
247 :
248 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
249 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
250 : }
251 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_PServiceWorkerUpdaterConstructor", OTHER);
252 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_PServiceWorkerUpdaterConstructor__ID, (&(mState)));
253 :
254 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
255 0 : if ((!(sendok__))) {
256 0 : FatalError("constructor for actor failed");
257 0 : return nullptr;
258 : }
259 0 : return actor;
260 : }
261 :
262 0 : auto PServiceWorkerManagerChild::RemoveManagee(
263 : int32_t aProtocolId,
264 : ProtocolBase* aListener) -> void
265 : {
266 0 : switch (aProtocolId) {
267 : case PServiceWorkerUpdaterMsgStart:
268 : {
269 0 : PServiceWorkerUpdaterChild* actor = static_cast<PServiceWorkerUpdaterChild*>(aListener);
270 0 : auto& container = mManagedPServiceWorkerUpdaterChild;
271 0 : MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
272 :
273 0 : (container).RemoveEntry(actor);
274 0 : DeallocPServiceWorkerUpdaterChild(actor);
275 0 : return;
276 : }
277 : default:
278 : {
279 0 : FatalError("unreached");
280 0 : return;
281 : }
282 : }
283 : }
284 :
285 0 : auto PServiceWorkerManagerChild::OnMessageReceived(const Message& msg__) -> PServiceWorkerManagerChild::Result
286 : {
287 0 : switch ((msg__).type()) {
288 : case PServiceWorkerManager::Reply_PServiceWorkerUpdaterConstructor__ID:
289 : {
290 0 : return MsgProcessed;
291 : }
292 : case PServiceWorkerManager::Msg_NotifyRegister__ID:
293 : {
294 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
295 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
296 : }
297 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_NotifyRegister", OTHER);
298 :
299 0 : PickleIterator iter__(msg__);
300 0 : ServiceWorkerRegistrationData data;
301 :
302 0 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
303 0 : FatalError("Error deserializing 'ServiceWorkerRegistrationData'");
304 0 : return MsgValueError;
305 : }
306 : // Sentinel = 'data'
307 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
308 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ServiceWorkerRegistrationData'");
309 0 : return MsgValueError;
310 : }
311 0 : (msg__).EndRead(iter__, (msg__).type());
312 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_NotifyRegister__ID, (&(mState)));
313 0 : if ((!(RecvNotifyRegister(mozilla::Move(data))))) {
314 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
315 : // Error handled in mozilla::ipc::IPCResult
316 0 : return MsgProcessingError;
317 : }
318 :
319 0 : return MsgProcessed;
320 : }
321 : case PServiceWorkerManager::Msg_NotifySoftUpdate__ID:
322 : {
323 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
324 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
325 : }
326 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_NotifySoftUpdate", OTHER);
327 :
328 0 : PickleIterator iter__(msg__);
329 0 : OriginAttributes originAttributes;
330 0 : nsString scope;
331 :
332 0 : if ((!(Read((&(originAttributes)), (&(msg__)), (&(iter__)))))) {
333 0 : FatalError("Error deserializing 'OriginAttributes'");
334 0 : return MsgValueError;
335 : }
336 : // Sentinel = 'originAttributes'
337 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2655275965)))) {
338 0 : mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'");
339 0 : return MsgValueError;
340 : }
341 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
342 0 : FatalError("Error deserializing 'nsString'");
343 0 : return MsgValueError;
344 : }
345 : // Sentinel = 'scope'
346 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
347 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
348 0 : return MsgValueError;
349 : }
350 0 : (msg__).EndRead(iter__, (msg__).type());
351 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_NotifySoftUpdate__ID, (&(mState)));
352 0 : if ((!(RecvNotifySoftUpdate(mozilla::Move(originAttributes), mozilla::Move(scope))))) {
353 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
354 : // Error handled in mozilla::ipc::IPCResult
355 0 : return MsgProcessingError;
356 : }
357 :
358 0 : return MsgProcessed;
359 : }
360 : case PServiceWorkerManager::Msg_NotifyUnregister__ID:
361 : {
362 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
363 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
364 : }
365 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_NotifyUnregister", OTHER);
366 :
367 0 : PickleIterator iter__(msg__);
368 0 : PrincipalInfo principalInfo;
369 0 : nsString scope;
370 :
371 0 : if ((!(Read((&(principalInfo)), (&(msg__)), (&(iter__)))))) {
372 0 : FatalError("Error deserializing 'PrincipalInfo'");
373 0 : return MsgValueError;
374 : }
375 : // Sentinel = 'principalInfo'
376 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
377 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
378 0 : return MsgValueError;
379 : }
380 0 : if ((!(Read((&(scope)), (&(msg__)), (&(iter__)))))) {
381 0 : FatalError("Error deserializing 'nsString'");
382 0 : return MsgValueError;
383 : }
384 : // Sentinel = 'scope'
385 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) {
386 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
387 0 : return MsgValueError;
388 : }
389 0 : (msg__).EndRead(iter__, (msg__).type());
390 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_NotifyUnregister__ID, (&(mState)));
391 0 : if ((!(RecvNotifyUnregister(mozilla::Move(principalInfo), mozilla::Move(scope))))) {
392 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
393 : // Error handled in mozilla::ipc::IPCResult
394 0 : return MsgProcessingError;
395 : }
396 :
397 0 : return MsgProcessed;
398 : }
399 : case PServiceWorkerManager::Msg_NotifyRemove__ID:
400 : {
401 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
402 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
403 : }
404 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_NotifyRemove", OTHER);
405 :
406 0 : PickleIterator iter__(msg__);
407 0 : nsCString host;
408 :
409 0 : if ((!(Read((&(host)), (&(msg__)), (&(iter__)))))) {
410 0 : FatalError("Error deserializing 'nsCString'");
411 0 : return MsgValueError;
412 : }
413 : // Sentinel = 'host'
414 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4070301394)))) {
415 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
416 0 : return MsgValueError;
417 : }
418 0 : (msg__).EndRead(iter__, (msg__).type());
419 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_NotifyRemove__ID, (&(mState)));
420 0 : if ((!(RecvNotifyRemove(mozilla::Move(host))))) {
421 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
422 : // Error handled in mozilla::ipc::IPCResult
423 0 : return MsgProcessingError;
424 : }
425 :
426 0 : return MsgProcessed;
427 : }
428 : case PServiceWorkerManager::Msg_NotifyRemoveAll__ID:
429 : {
430 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
431 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
432 : }
433 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg_NotifyRemoveAll", OTHER);
434 :
435 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg_NotifyRemoveAll__ID, (&(mState)));
436 0 : if ((!(RecvNotifyRemoveAll()))) {
437 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
438 : // Error handled in mozilla::ipc::IPCResult
439 0 : return MsgProcessingError;
440 : }
441 :
442 0 : return MsgProcessed;
443 : }
444 : case PServiceWorkerManager::Msg___delete____ID:
445 : {
446 0 : if (mozilla::ipc::LoggingEnabledFor("PServiceWorkerManagerChild")) {
447 0 : mozilla::ipc::LogMessageForProtocol("PServiceWorkerManagerChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
448 : }
449 0 : AUTO_PROFILER_LABEL("PServiceWorkerManager::Msg___delete__", OTHER);
450 :
451 0 : PickleIterator iter__(msg__);
452 : PServiceWorkerManagerChild* actor;
453 :
454 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
455 0 : FatalError("Error deserializing 'PServiceWorkerManagerChild'");
456 0 : return MsgValueError;
457 : }
458 : // Sentinel = 'actor'
459 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
460 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PServiceWorkerManagerChild'");
461 0 : return MsgValueError;
462 : }
463 0 : (msg__).EndRead(iter__, (msg__).type());
464 0 : PServiceWorkerManager::Transition(PServiceWorkerManager::Msg___delete____ID, (&(mState)));
465 0 : if ((!(Recv__delete__()))) {
466 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
467 : // Error handled in mozilla::ipc::IPCResult
468 0 : return MsgProcessingError;
469 : }
470 :
471 :
472 0 : IProtocol* mgr = (actor)->Manager();
473 0 : (actor)->DestroySubtree(Deletion);
474 0 : (actor)->DeallocSubtree();
475 0 : (mgr)->RemoveManagee(PServiceWorkerManagerMsgStart, actor);
476 :
477 0 : return MsgProcessed;
478 : }
479 : default:
480 : {
481 0 : return MsgNotKnown;
482 : }
483 : }
484 : }
485 :
486 0 : auto PServiceWorkerManagerChild::OnMessageReceived(
487 : const Message& msg__,
488 : Message*& reply__) -> PServiceWorkerManagerChild::Result
489 : {
490 0 : return MsgNotKnown;
491 : }
492 :
493 0 : auto PServiceWorkerManagerChild::OnCallReceived(
494 : const Message& msg__,
495 : Message*& reply__) -> PServiceWorkerManagerChild::Result
496 : {
497 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
498 : return MsgNotKnown;
499 : }
500 :
501 0 : auto PServiceWorkerManagerChild::GetProtocolTypeId() -> int32_t
502 : {
503 0 : return PServiceWorkerManagerMsgStart;
504 : }
505 :
506 0 : auto PServiceWorkerManagerChild::ProtocolName() const -> const char*
507 : {
508 0 : return "PServiceWorkerManagerChild";
509 : }
510 :
511 0 : auto PServiceWorkerManagerChild::DestroySubtree(ActorDestroyReason why) -> void
512 : {
513 : // Unregister from our manager.
514 0 : Unregister(Id());
515 :
516 0 : ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
517 :
518 : {
519 : // Recursively shutting down PServiceWorkerUpdater kids
520 0 : nsTArray<PServiceWorkerUpdaterChild*> kids;
521 : // Accumulate kids into a stable structure to iterate over
522 0 : ManagedPServiceWorkerUpdaterChild(kids);
523 0 : for (auto& kid : kids) {
524 : // Guarding against a child removing a sibling from the list during the iteration.
525 0 : if ((mManagedPServiceWorkerUpdaterChild).Contains(kid)) {
526 0 : (kid)->DestroySubtree(subtreewhy);
527 : }
528 : }
529 : }
530 :
531 : // Reject owning pending promises.
532 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
533 :
534 : // Finally, destroy "us".
535 0 : ActorDestroy(why);
536 0 : }
537 :
538 0 : auto PServiceWorkerManagerChild::DeallocSubtree() -> void
539 : {
540 : {
541 : // Recursively deleting PServiceWorkerUpdater kids
542 0 : for (auto iter = (mManagedPServiceWorkerUpdaterChild).Iter(); (!((iter).Done())); (iter).Next()) {
543 0 : (((iter).Get())->GetKey())->DeallocSubtree();
544 : }
545 :
546 0 : for (auto iter = (mManagedPServiceWorkerUpdaterChild).Iter(); (!((iter).Done())); (iter).Next()) {
547 0 : DeallocPServiceWorkerUpdaterChild(((iter).Get())->GetKey());
548 : }
549 0 : (mManagedPServiceWorkerUpdaterChild).Clear();
550 : }
551 0 : }
552 :
553 0 : auto PServiceWorkerManagerChild::Write(
554 : const SystemPrincipalInfo& v__,
555 : Message* msg__) -> void
556 : {
557 0 : }
558 :
559 0 : auto PServiceWorkerManagerChild::Read(
560 : SystemPrincipalInfo* v__,
561 : const Message* msg__,
562 : PickleIterator* iter__) -> bool
563 : {
564 0 : return true;
565 : }
566 :
567 0 : auto PServiceWorkerManagerChild::Write(
568 : const nsTArray<PrincipalInfo>& v__,
569 : Message* msg__) -> void
570 : {
571 0 : uint32_t length = (v__).Length();
572 0 : Write(length, msg__);
573 : // Sentinel = ('length', 'PrincipalInfo[]')
574 0 : (msg__)->WriteSentinel(1032188126);
575 :
576 0 : for (auto& elem : v__) {
577 0 : Write(elem, msg__);
578 : // Sentinel = 'PrincipalInfo[]'
579 0 : (msg__)->WriteSentinel(413380193);
580 : }
581 0 : }
582 :
583 0 : auto PServiceWorkerManagerChild::Read(
584 : nsTArray<PrincipalInfo>* v__,
585 : const Message* msg__,
586 : PickleIterator* iter__) -> bool
587 : {
588 0 : nsTArray<PrincipalInfo> fa;
589 : uint32_t length;
590 0 : if ((!(Read((&(length)), msg__, iter__)))) {
591 0 : mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
592 0 : return false;
593 : }
594 : // Sentinel = ('length', 'PrincipalInfo[]')
595 0 : if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
596 0 : mozilla::ipc::SentinelReadError("PrincipalInfo[]");
597 0 : return false;
598 : }
599 :
600 0 : PrincipalInfo* elems = (fa).AppendElements(length);
601 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
602 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
603 0 : FatalError("Error deserializing 'PrincipalInfo[i]'");
604 0 : return false;
605 : }
606 : // Sentinel = 'PrincipalInfo[]'
607 0 : if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
608 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
609 0 : return false;
610 : }
611 : }
612 0 : (v__)->SwapElements(fa);
613 0 : return true;
614 : }
615 :
616 0 : auto PServiceWorkerManagerChild::Write(
617 : const ExpandedPrincipalInfo& v__,
618 : Message* msg__) -> void
619 : {
620 0 : Write((v__).attrs(), msg__);
621 : // Sentinel = 'attrs'
622 0 : (msg__)->WriteSentinel(3014987797);
623 0 : Write((v__).whitelist(), msg__);
624 : // Sentinel = 'whitelist'
625 0 : (msg__)->WriteSentinel(3731637258);
626 0 : }
627 :
628 0 : auto PServiceWorkerManagerChild::Read(
629 : ExpandedPrincipalInfo* v__,
630 : const Message* msg__,
631 : PickleIterator* iter__) -> bool
632 : {
633 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
634 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
635 0 : return false;
636 : }
637 : // Sentinel = 'attrs'
638 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
639 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
640 0 : return false;
641 : }
642 0 : if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
643 0 : FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
644 0 : return false;
645 : }
646 : // Sentinel = 'whitelist'
647 0 : if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
648 0 : mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
649 0 : return false;
650 : }
651 0 : return true;
652 : }
653 :
654 0 : auto PServiceWorkerManagerChild::Write(
655 : const PServiceWorkerUpdaterChild* v__,
656 : Message* msg__,
657 : bool nullable__) -> void
658 : {
659 : int32_t id;
660 0 : if ((!(v__))) {
661 0 : if ((!(nullable__))) {
662 0 : FatalError("NULL actor value passed to non-nullable param");
663 : }
664 0 : id = 0;
665 : }
666 : else {
667 0 : id = (v__)->Id();
668 0 : if ((1) == (id)) {
669 0 : FatalError("actor has been |delete|d");
670 : }
671 : }
672 :
673 0 : Write(id, msg__);
674 0 : }
675 :
676 0 : auto PServiceWorkerManagerChild::Read(
677 : PServiceWorkerUpdaterChild** v__,
678 : const Message* msg__,
679 : PickleIterator* iter__,
680 : bool nullable__) -> bool
681 : {
682 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PServiceWorkerUpdater", PServiceWorkerUpdaterMsgStart);
683 0 : if ((actor).isNothing()) {
684 0 : return false;
685 : }
686 :
687 0 : (*(v__)) = static_cast<PServiceWorkerUpdaterChild*>((actor).value());
688 0 : return true;
689 : }
690 :
691 0 : auto PServiceWorkerManagerChild::Write(
692 : const PrincipalInfo& v__,
693 : Message* msg__) -> void
694 : {
695 : typedef PrincipalInfo type__;
696 0 : Write(int((v__).type()), msg__);
697 : // Sentinel = 'PrincipalInfo'
698 0 : (msg__)->WriteSentinel(4194518819);
699 :
700 0 : switch ((v__).type()) {
701 : case type__::TContentPrincipalInfo:
702 : {
703 0 : Write((v__).get_ContentPrincipalInfo(), msg__);
704 : // Sentinel = 'TContentPrincipalInfo'
705 0 : (msg__)->WriteSentinel(3677342258);
706 0 : return;
707 : }
708 : case type__::TSystemPrincipalInfo:
709 : {
710 0 : Write((v__).get_SystemPrincipalInfo(), msg__);
711 : // Sentinel = 'TSystemPrincipalInfo'
712 0 : (msg__)->WriteSentinel(3590603679);
713 0 : return;
714 : }
715 : case type__::TNullPrincipalInfo:
716 : {
717 0 : Write((v__).get_NullPrincipalInfo(), msg__);
718 : // Sentinel = 'TNullPrincipalInfo'
719 0 : (msg__)->WriteSentinel(3477774965);
720 0 : return;
721 : }
722 : case type__::TExpandedPrincipalInfo:
723 : {
724 0 : Write((v__).get_ExpandedPrincipalInfo(), msg__);
725 : // Sentinel = 'TExpandedPrincipalInfo'
726 0 : (msg__)->WriteSentinel(589324917);
727 0 : return;
728 : }
729 : default:
730 : {
731 0 : FatalError("unknown union type");
732 0 : return;
733 : }
734 : }
735 : }
736 :
737 0 : auto PServiceWorkerManagerChild::Read(
738 : PrincipalInfo* v__,
739 : const Message* msg__,
740 : PickleIterator* iter__) -> bool
741 : {
742 : typedef PrincipalInfo type__;
743 : int type;
744 0 : if ((!(Read((&(type)), msg__, iter__)))) {
745 0 : mozilla::ipc::UnionTypeReadError("PrincipalInfo");
746 0 : return false;
747 : }
748 : // Sentinel = 'PrincipalInfo'
749 0 : if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
750 0 : mozilla::ipc::SentinelReadError("PrincipalInfo");
751 0 : return false;
752 : }
753 :
754 0 : switch (type) {
755 : case type__::TContentPrincipalInfo:
756 : {
757 0 : ContentPrincipalInfo tmp = ContentPrincipalInfo();
758 0 : (*(v__)) = tmp;
759 0 : if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
760 0 : FatalError("Error deserializing Union type");
761 0 : return false;
762 : }
763 : // Sentinel = 'TContentPrincipalInfo'
764 0 : if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
765 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
766 0 : return false;
767 : }
768 0 : return true;
769 : }
770 : case type__::TSystemPrincipalInfo:
771 : {
772 0 : SystemPrincipalInfo tmp = SystemPrincipalInfo();
773 0 : (*(v__)) = tmp;
774 0 : if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
775 0 : FatalError("Error deserializing Union type");
776 0 : return false;
777 : }
778 : // Sentinel = 'TSystemPrincipalInfo'
779 0 : if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
780 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
781 0 : return false;
782 : }
783 0 : return true;
784 : }
785 : case type__::TNullPrincipalInfo:
786 : {
787 0 : NullPrincipalInfo tmp = NullPrincipalInfo();
788 0 : (*(v__)) = tmp;
789 0 : if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
790 0 : FatalError("Error deserializing Union type");
791 0 : return false;
792 : }
793 : // Sentinel = 'TNullPrincipalInfo'
794 0 : if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
795 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
796 0 : return false;
797 : }
798 0 : return true;
799 : }
800 : case type__::TExpandedPrincipalInfo:
801 : {
802 0 : ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
803 0 : (*(v__)) = tmp;
804 0 : if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
805 0 : FatalError("Error deserializing Union type");
806 0 : return false;
807 : }
808 : // Sentinel = 'TExpandedPrincipalInfo'
809 0 : if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
810 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
811 0 : return false;
812 : }
813 0 : return true;
814 : }
815 : default:
816 : {
817 0 : FatalError("unknown union type");
818 0 : return false;
819 : }
820 : }
821 : }
822 :
823 0 : auto PServiceWorkerManagerChild::Write(
824 : const ContentPrincipalInfoOriginNoSuffix& v__,
825 : Message* msg__) -> void
826 : {
827 : typedef ContentPrincipalInfoOriginNoSuffix type__;
828 0 : Write(int((v__).type()), msg__);
829 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
830 0 : (msg__)->WriteSentinel(2442066713);
831 :
832 0 : switch ((v__).type()) {
833 : case type__::TnsCString:
834 : {
835 0 : Write((v__).get_nsCString(), msg__);
836 : // Sentinel = 'TnsCString'
837 0 : (msg__)->WriteSentinel(2427411293);
838 0 : return;
839 : }
840 : case type__::Tvoid_t:
841 : {
842 0 : Write((v__).get_void_t(), msg__);
843 : // Sentinel = 'Tvoid_t'
844 0 : (msg__)->WriteSentinel(3041273328);
845 0 : return;
846 : }
847 : default:
848 : {
849 0 : FatalError("unknown union type");
850 0 : return;
851 : }
852 : }
853 : }
854 :
855 0 : auto PServiceWorkerManagerChild::Read(
856 : ContentPrincipalInfoOriginNoSuffix* v__,
857 : const Message* msg__,
858 : PickleIterator* iter__) -> bool
859 : {
860 : typedef ContentPrincipalInfoOriginNoSuffix type__;
861 : int type;
862 0 : if ((!(Read((&(type)), msg__, iter__)))) {
863 0 : mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
864 0 : return false;
865 : }
866 : // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
867 0 : if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
868 0 : mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
869 0 : return false;
870 : }
871 :
872 0 : switch (type) {
873 : case type__::TnsCString:
874 : {
875 0 : nsCString tmp = nsCString();
876 0 : (*(v__)) = tmp;
877 0 : if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
878 0 : FatalError("Error deserializing Union type");
879 0 : return false;
880 : }
881 : // Sentinel = 'TnsCString'
882 0 : if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
883 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
884 0 : return false;
885 : }
886 0 : return true;
887 : }
888 : case type__::Tvoid_t:
889 : {
890 : void_t tmp = void_t();
891 0 : (*(v__)) = tmp;
892 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
893 0 : FatalError("Error deserializing Union type");
894 0 : return false;
895 : }
896 : // Sentinel = 'Tvoid_t'
897 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
898 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
899 0 : return false;
900 : }
901 0 : return true;
902 : }
903 : default:
904 : {
905 0 : FatalError("unknown union type");
906 0 : return false;
907 : }
908 : }
909 : }
910 :
911 0 : auto PServiceWorkerManagerChild::Write(
912 : const PServiceWorkerManagerChild* v__,
913 : Message* msg__,
914 : bool nullable__) -> void
915 : {
916 : int32_t id;
917 0 : if ((!(v__))) {
918 0 : if ((!(nullable__))) {
919 0 : FatalError("NULL actor value passed to non-nullable param");
920 : }
921 0 : id = 0;
922 : }
923 : else {
924 0 : id = (v__)->Id();
925 0 : if ((1) == (id)) {
926 0 : FatalError("actor has been |delete|d");
927 : }
928 : }
929 :
930 0 : Write(id, msg__);
931 0 : }
932 :
933 0 : auto PServiceWorkerManagerChild::Read(
934 : PServiceWorkerManagerChild** v__,
935 : const Message* msg__,
936 : PickleIterator* iter__,
937 : bool nullable__) -> bool
938 : {
939 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PServiceWorkerManager", PServiceWorkerManagerMsgStart);
940 0 : if ((actor).isNothing()) {
941 0 : return false;
942 : }
943 :
944 0 : (*(v__)) = static_cast<PServiceWorkerManagerChild*>((actor).value());
945 0 : return true;
946 : }
947 :
948 0 : auto PServiceWorkerManagerChild::Write(
949 : const ContentPrincipalInfo& v__,
950 : Message* msg__) -> void
951 : {
952 0 : Write((v__).attrs(), msg__);
953 : // Sentinel = 'attrs'
954 0 : (msg__)->WriteSentinel(3014987797);
955 0 : Write((v__).originNoSuffix(), msg__);
956 : // Sentinel = 'originNoSuffix'
957 0 : (msg__)->WriteSentinel(2833071422);
958 0 : Write((v__).spec(), msg__);
959 : // Sentinel = 'spec'
960 0 : (msg__)->WriteSentinel(1630740541);
961 0 : }
962 :
963 0 : auto PServiceWorkerManagerChild::Read(
964 : ContentPrincipalInfo* v__,
965 : const Message* msg__,
966 : PickleIterator* iter__) -> bool
967 : {
968 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
969 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
970 0 : return false;
971 : }
972 : // Sentinel = 'attrs'
973 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
974 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
975 0 : return false;
976 : }
977 0 : if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
978 0 : FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
979 0 : return false;
980 : }
981 : // Sentinel = 'originNoSuffix'
982 0 : if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
983 0 : mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
984 0 : return false;
985 : }
986 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
987 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
988 0 : return false;
989 : }
990 : // Sentinel = 'spec'
991 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
992 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
993 0 : return false;
994 : }
995 0 : return true;
996 : }
997 :
998 0 : auto PServiceWorkerManagerChild::Write(
999 : const NullPrincipalInfo& v__,
1000 : Message* msg__) -> void
1001 : {
1002 0 : Write((v__).attrs(), msg__);
1003 : // Sentinel = 'attrs'
1004 0 : (msg__)->WriteSentinel(3014987797);
1005 0 : Write((v__).spec(), msg__);
1006 : // Sentinel = 'spec'
1007 0 : (msg__)->WriteSentinel(1630740541);
1008 0 : }
1009 :
1010 0 : auto PServiceWorkerManagerChild::Read(
1011 : NullPrincipalInfo* v__,
1012 : const Message* msg__,
1013 : PickleIterator* iter__) -> bool
1014 : {
1015 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
1016 0 : FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1017 0 : return false;
1018 : }
1019 : // Sentinel = 'attrs'
1020 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
1021 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
1022 0 : return false;
1023 : }
1024 0 : if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
1025 0 : FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1026 0 : return false;
1027 : }
1028 : // Sentinel = 'spec'
1029 0 : if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
1030 0 : mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
1031 0 : return false;
1032 : }
1033 0 : return true;
1034 : }
1035 :
1036 0 : auto PServiceWorkerManagerChild::Write(
1037 : const ServiceWorkerRegistrationData& v__,
1038 : Message* msg__) -> void
1039 : {
1040 0 : Write((v__).scope(), msg__);
1041 : // Sentinel = 'scope'
1042 0 : (msg__)->WriteSentinel(2191984953);
1043 0 : Write((v__).currentWorkerURL(), msg__);
1044 : // Sentinel = 'currentWorkerURL'
1045 0 : (msg__)->WriteSentinel(3796591296);
1046 0 : Write((v__).currentWorkerHandlesFetch(), msg__);
1047 : // Sentinel = 'currentWorkerHandlesFetch'
1048 0 : (msg__)->WriteSentinel(2963825215);
1049 0 : Write((v__).cacheName(), msg__);
1050 : // Sentinel = 'cacheName'
1051 0 : (msg__)->WriteSentinel(3398830226);
1052 0 : Write((v__).principal(), msg__);
1053 : // Sentinel = 'principal'
1054 0 : (msg__)->WriteSentinel(732240927);
1055 0 : Write((v__).loadFlags(), msg__);
1056 : // Sentinel = 'loadFlags'
1057 0 : (msg__)->WriteSentinel(2391120444);
1058 0 : Write((v__).currentWorkerInstalledTime(), msg__);
1059 : // Sentinel = 'currentWorkerInstalledTime'
1060 0 : (msg__)->WriteSentinel(1742163856);
1061 0 : Write((v__).currentWorkerActivatedTime(), msg__);
1062 : // Sentinel = 'currentWorkerActivatedTime'
1063 0 : (msg__)->WriteSentinel(812310635);
1064 0 : Write((v__).lastUpdateTime(), msg__);
1065 : // Sentinel = 'lastUpdateTime'
1066 0 : (msg__)->WriteSentinel(1207452294);
1067 0 : }
1068 :
1069 0 : auto PServiceWorkerManagerChild::Read(
1070 : ServiceWorkerRegistrationData* v__,
1071 : const Message* msg__,
1072 : PickleIterator* iter__) -> bool
1073 : {
1074 0 : if ((!(Read((&((v__)->scope())), msg__, iter__)))) {
1075 0 : FatalError("Error deserializing 'scope' (nsCString) member of 'ServiceWorkerRegistrationData'");
1076 0 : return false;
1077 : }
1078 : // Sentinel = 'scope'
1079 0 : if ((!((msg__)->ReadSentinel(iter__, 2191984953)))) {
1080 0 : mozilla::ipc::SentinelReadError("Error deserializing 'scope' (nsCString) member of 'ServiceWorkerRegistrationData'");
1081 0 : return false;
1082 : }
1083 0 : if ((!(Read((&((v__)->currentWorkerURL())), msg__, iter__)))) {
1084 0 : FatalError("Error deserializing 'currentWorkerURL' (nsCString) member of 'ServiceWorkerRegistrationData'");
1085 0 : return false;
1086 : }
1087 : // Sentinel = 'currentWorkerURL'
1088 0 : if ((!((msg__)->ReadSentinel(iter__, 3796591296)))) {
1089 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerURL' (nsCString) member of 'ServiceWorkerRegistrationData'");
1090 0 : return false;
1091 : }
1092 0 : if ((!(Read((&((v__)->currentWorkerHandlesFetch())), msg__, iter__)))) {
1093 0 : FatalError("Error deserializing 'currentWorkerHandlesFetch' (bool) member of 'ServiceWorkerRegistrationData'");
1094 0 : return false;
1095 : }
1096 : // Sentinel = 'currentWorkerHandlesFetch'
1097 0 : if ((!((msg__)->ReadSentinel(iter__, 2963825215)))) {
1098 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerHandlesFetch' (bool) member of 'ServiceWorkerRegistrationData'");
1099 0 : return false;
1100 : }
1101 0 : if ((!(Read((&((v__)->cacheName())), msg__, iter__)))) {
1102 0 : FatalError("Error deserializing 'cacheName' (nsString) member of 'ServiceWorkerRegistrationData'");
1103 0 : return false;
1104 : }
1105 : // Sentinel = 'cacheName'
1106 0 : if ((!((msg__)->ReadSentinel(iter__, 3398830226)))) {
1107 0 : mozilla::ipc::SentinelReadError("Error deserializing 'cacheName' (nsString) member of 'ServiceWorkerRegistrationData'");
1108 0 : return false;
1109 : }
1110 0 : if ((!(Read((&((v__)->principal())), msg__, iter__)))) {
1111 0 : FatalError("Error deserializing 'principal' (PrincipalInfo) member of 'ServiceWorkerRegistrationData'");
1112 0 : return false;
1113 : }
1114 : // Sentinel = 'principal'
1115 0 : if ((!((msg__)->ReadSentinel(iter__, 732240927)))) {
1116 0 : mozilla::ipc::SentinelReadError("Error deserializing 'principal' (PrincipalInfo) member of 'ServiceWorkerRegistrationData'");
1117 0 : return false;
1118 : }
1119 0 : if ((!(Read((&((v__)->loadFlags())), msg__, iter__)))) {
1120 0 : FatalError("Error deserializing 'loadFlags' (uint32_t) member of 'ServiceWorkerRegistrationData'");
1121 0 : return false;
1122 : }
1123 : // Sentinel = 'loadFlags'
1124 0 : if ((!((msg__)->ReadSentinel(iter__, 2391120444)))) {
1125 0 : mozilla::ipc::SentinelReadError("Error deserializing 'loadFlags' (uint32_t) member of 'ServiceWorkerRegistrationData'");
1126 0 : return false;
1127 : }
1128 0 : if ((!(Read((&((v__)->currentWorkerInstalledTime())), msg__, iter__)))) {
1129 0 : FatalError("Error deserializing 'currentWorkerInstalledTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1130 0 : return false;
1131 : }
1132 : // Sentinel = 'currentWorkerInstalledTime'
1133 0 : if ((!((msg__)->ReadSentinel(iter__, 1742163856)))) {
1134 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerInstalledTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1135 0 : return false;
1136 : }
1137 0 : if ((!(Read((&((v__)->currentWorkerActivatedTime())), msg__, iter__)))) {
1138 0 : FatalError("Error deserializing 'currentWorkerActivatedTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1139 0 : return false;
1140 : }
1141 : // Sentinel = 'currentWorkerActivatedTime'
1142 0 : if ((!((msg__)->ReadSentinel(iter__, 812310635)))) {
1143 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentWorkerActivatedTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1144 0 : return false;
1145 : }
1146 0 : if ((!(Read((&((v__)->lastUpdateTime())), msg__, iter__)))) {
1147 0 : FatalError("Error deserializing 'lastUpdateTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1148 0 : return false;
1149 : }
1150 : // Sentinel = 'lastUpdateTime'
1151 0 : if ((!((msg__)->ReadSentinel(iter__, 1207452294)))) {
1152 0 : mozilla::ipc::SentinelReadError("Error deserializing 'lastUpdateTime' (int64_t) member of 'ServiceWorkerRegistrationData'");
1153 0 : return false;
1154 : }
1155 0 : return true;
1156 : }
1157 :
1158 :
1159 :
1160 : } // namespace dom
1161 : } // namespace mozilla
|