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