Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/net/PHttpBackgroundChannelChild.h"
8 : #include "mozilla/net/TimingStruct.h"
9 :
10 : #include "mozilla/ipc/PBackgroundChild.h"
11 :
12 : #include "nsIFile.h"
13 : #include "GeckoProfiler.h"
14 :
15 : namespace mozilla {
16 : namespace net {
17 :
18 :
19 3 : auto PHttpBackgroundChannelChild::Recv__delete__() -> mozilla::ipc::IPCResult
20 : {
21 3 : return IPC_OK();
22 : }
23 :
24 0 : auto PHttpBackgroundChannelChild::ActorDestroy(ActorDestroyReason aWhy) -> void
25 : {
26 0 : }
27 :
28 3 : MOZ_IMPLICIT PHttpBackgroundChannelChild::PHttpBackgroundChannelChild() :
29 : mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
30 3 : mState(PHttpBackgroundChannel::__Dead)
31 : {
32 3 : MOZ_COUNT_CTOR(PHttpBackgroundChannelChild);
33 3 : }
34 :
35 6 : PHttpBackgroundChannelChild::~PHttpBackgroundChannelChild()
36 : {
37 3 : MOZ_COUNT_DTOR(PHttpBackgroundChannelChild);
38 3 : }
39 :
40 3 : auto PHttpBackgroundChannelChild::Manager() const -> PBackgroundChild*
41 : {
42 3 : return static_cast<PBackgroundChild*>(IProtocol::Manager());
43 : }
44 :
45 0 : auto PHttpBackgroundChannelChild::RemoveManagee(
46 : int32_t aProtocolId,
47 : ProtocolBase* aListener) -> void
48 : {
49 0 : FatalError("unreached");
50 0 : return;
51 : }
52 :
53 17 : auto PHttpBackgroundChannelChild::OnMessageReceived(const Message& msg__) -> PHttpBackgroundChannelChild::Result
54 : {
55 17 : switch ((msg__).type()) {
56 : case PHttpBackgroundChannel::Msg_OnStartRequestSent__ID:
57 : {
58 3 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
59 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
60 : }
61 6 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_OnStartRequestSent", OTHER);
62 :
63 3 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_OnStartRequestSent__ID, (&(mState)));
64 3 : if ((!(RecvOnStartRequestSent()))) {
65 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
66 : // Error handled in mozilla::ipc::IPCResult
67 0 : return MsgProcessingError;
68 : }
69 :
70 3 : return MsgProcessed;
71 : }
72 : case PHttpBackgroundChannel::Msg_OnTransportAndData__ID:
73 : {
74 3 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
75 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
76 : }
77 6 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_OnTransportAndData", OTHER);
78 :
79 3 : PickleIterator iter__(msg__);
80 : nsresult channelStatus;
81 : nsresult transportStatus;
82 : uint64_t offset;
83 : uint32_t count;
84 6 : nsCString data;
85 :
86 3 : if ((!(Read((&(channelStatus)), (&(msg__)), (&(iter__)))))) {
87 0 : FatalError("Error deserializing 'nsresult'");
88 0 : return MsgValueError;
89 : }
90 : // Sentinel = 'channelStatus'
91 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3148019746)))) {
92 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
93 0 : return MsgValueError;
94 : }
95 3 : if ((!(Read((&(transportStatus)), (&(msg__)), (&(iter__)))))) {
96 0 : FatalError("Error deserializing 'nsresult'");
97 0 : return MsgValueError;
98 : }
99 : // Sentinel = 'transportStatus'
100 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1295005818)))) {
101 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
102 0 : return MsgValueError;
103 : }
104 3 : if ((!(Read((&(offset)), (&(msg__)), (&(iter__)))))) {
105 0 : FatalError("Error deserializing 'uint64_t'");
106 0 : return MsgValueError;
107 : }
108 : // Sentinel = 'offset'
109 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1369947863)))) {
110 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
111 0 : return MsgValueError;
112 : }
113 3 : if ((!(Read((&(count)), (&(msg__)), (&(iter__)))))) {
114 0 : FatalError("Error deserializing 'uint32_t'");
115 0 : return MsgValueError;
116 : }
117 : // Sentinel = 'count'
118 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2126421856)))) {
119 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
120 0 : return MsgValueError;
121 : }
122 3 : if ((!(Read((&(data)), (&(msg__)), (&(iter__)))))) {
123 0 : FatalError("Error deserializing 'nsCString'");
124 0 : return MsgValueError;
125 : }
126 : // Sentinel = 'data'
127 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) {
128 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
129 0 : return MsgValueError;
130 : }
131 3 : (msg__).EndRead(iter__, (msg__).type());
132 3 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_OnTransportAndData__ID, (&(mState)));
133 3 : if ((!(RecvOnTransportAndData(mozilla::Move(channelStatus), mozilla::Move(transportStatus), mozilla::Move(offset), mozilla::Move(count), mozilla::Move(data))))) {
134 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
135 : // Error handled in mozilla::ipc::IPCResult
136 0 : return MsgProcessingError;
137 : }
138 :
139 3 : return MsgProcessed;
140 : }
141 : case PHttpBackgroundChannel::Msg_OnStopRequest__ID:
142 : {
143 3 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
144 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
145 : }
146 6 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_OnStopRequest", OTHER);
147 :
148 3 : PickleIterator iter__(msg__);
149 : nsresult channelStatus;
150 6 : ResourceTimingStruct timing;
151 :
152 3 : if ((!(Read((&(channelStatus)), (&(msg__)), (&(iter__)))))) {
153 0 : FatalError("Error deserializing 'nsresult'");
154 0 : return MsgValueError;
155 : }
156 : // Sentinel = 'channelStatus'
157 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3148019746)))) {
158 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
159 0 : return MsgValueError;
160 : }
161 3 : if ((!(Read((&(timing)), (&(msg__)), (&(iter__)))))) {
162 0 : FatalError("Error deserializing 'ResourceTimingStruct'");
163 0 : return MsgValueError;
164 : }
165 : // Sentinel = 'timing'
166 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3852786776)))) {
167 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ResourceTimingStruct'");
168 0 : return MsgValueError;
169 : }
170 3 : (msg__).EndRead(iter__, (msg__).type());
171 3 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_OnStopRequest__ID, (&(mState)));
172 3 : if ((!(RecvOnStopRequest(mozilla::Move(channelStatus), mozilla::Move(timing))))) {
173 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
174 : // Error handled in mozilla::ipc::IPCResult
175 0 : return MsgProcessingError;
176 : }
177 :
178 3 : return MsgProcessed;
179 : }
180 : case PHttpBackgroundChannel::Msg_OnProgress__ID:
181 : {
182 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
183 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
184 : }
185 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_OnProgress", OTHER);
186 :
187 0 : PickleIterator iter__(msg__);
188 : int64_t progress;
189 : int64_t progressMax;
190 :
191 0 : if ((!(Read((&(progress)), (&(msg__)), (&(iter__)))))) {
192 0 : FatalError("Error deserializing 'int64_t'");
193 0 : return MsgValueError;
194 : }
195 : // Sentinel = 'progress'
196 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 858119353)))) {
197 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
198 0 : return MsgValueError;
199 : }
200 0 : if ((!(Read((&(progressMax)), (&(msg__)), (&(iter__)))))) {
201 0 : FatalError("Error deserializing 'int64_t'");
202 0 : return MsgValueError;
203 : }
204 : // Sentinel = 'progressMax'
205 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2530734978)))) {
206 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'");
207 0 : return MsgValueError;
208 : }
209 0 : (msg__).EndRead(iter__, (msg__).type());
210 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_OnProgress__ID, (&(mState)));
211 0 : if ((!(RecvOnProgress(mozilla::Move(progress), mozilla::Move(progressMax))))) {
212 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
213 : // Error handled in mozilla::ipc::IPCResult
214 0 : return MsgProcessingError;
215 : }
216 :
217 0 : return MsgProcessed;
218 : }
219 : case PHttpBackgroundChannel::Msg_OnStatus__ID:
220 : {
221 5 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
222 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
223 : }
224 10 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_OnStatus", OTHER);
225 :
226 5 : PickleIterator iter__(msg__);
227 : nsresult status;
228 :
229 5 : if ((!(Read((&(status)), (&(msg__)), (&(iter__)))))) {
230 0 : FatalError("Error deserializing 'nsresult'");
231 0 : return MsgValueError;
232 : }
233 : // Sentinel = 'status'
234 5 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) {
235 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
236 0 : return MsgValueError;
237 : }
238 5 : (msg__).EndRead(iter__, (msg__).type());
239 5 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_OnStatus__ID, (&(mState)));
240 5 : if ((!(RecvOnStatus(mozilla::Move(status))))) {
241 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
242 : // Error handled in mozilla::ipc::IPCResult
243 0 : return MsgProcessingError;
244 : }
245 :
246 5 : return MsgProcessed;
247 : }
248 : case PHttpBackgroundChannel::Msg_FlushedForDiversion__ID:
249 : {
250 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
251 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
252 : }
253 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_FlushedForDiversion", OTHER);
254 :
255 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_FlushedForDiversion__ID, (&(mState)));
256 0 : if ((!(RecvFlushedForDiversion()))) {
257 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
258 : // Error handled in mozilla::ipc::IPCResult
259 0 : return MsgProcessingError;
260 : }
261 :
262 0 : return MsgProcessed;
263 : }
264 : case PHttpBackgroundChannel::Msg_DivertMessages__ID:
265 : {
266 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
267 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
268 : }
269 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_DivertMessages", OTHER);
270 :
271 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_DivertMessages__ID, (&(mState)));
272 0 : if ((!(RecvDivertMessages()))) {
273 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
274 : // Error handled in mozilla::ipc::IPCResult
275 0 : return MsgProcessingError;
276 : }
277 :
278 0 : return MsgProcessed;
279 : }
280 : case PHttpBackgroundChannel::Msg_NotifyTrackingProtectionDisabled__ID:
281 : {
282 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
283 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
284 : }
285 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_NotifyTrackingProtectionDisabled", OTHER);
286 :
287 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_NotifyTrackingProtectionDisabled__ID, (&(mState)));
288 0 : if ((!(RecvNotifyTrackingProtectionDisabled()))) {
289 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
290 : // Error handled in mozilla::ipc::IPCResult
291 0 : return MsgProcessingError;
292 : }
293 :
294 0 : return MsgProcessed;
295 : }
296 : case PHttpBackgroundChannel::Msg_NotifyTrackingResource__ID:
297 : {
298 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
299 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
300 : }
301 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_NotifyTrackingResource", OTHER);
302 :
303 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_NotifyTrackingResource__ID, (&(mState)));
304 0 : if ((!(RecvNotifyTrackingResource()))) {
305 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
306 : // Error handled in mozilla::ipc::IPCResult
307 0 : return MsgProcessingError;
308 : }
309 :
310 0 : return MsgProcessed;
311 : }
312 : case PHttpBackgroundChannel::Msg_SetClassifierMatchedInfo__ID:
313 : {
314 0 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
315 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
316 : }
317 0 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg_SetClassifierMatchedInfo", OTHER);
318 :
319 0 : PickleIterator iter__(msg__);
320 0 : ClassifierInfo info;
321 :
322 0 : if ((!(Read((&(info)), (&(msg__)), (&(iter__)))))) {
323 0 : FatalError("Error deserializing 'ClassifierInfo'");
324 0 : return MsgValueError;
325 : }
326 : // Sentinel = 'info'
327 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3750868832)))) {
328 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ClassifierInfo'");
329 0 : return MsgValueError;
330 : }
331 0 : (msg__).EndRead(iter__, (msg__).type());
332 0 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg_SetClassifierMatchedInfo__ID, (&(mState)));
333 0 : if ((!(RecvSetClassifierMatchedInfo(mozilla::Move(info))))) {
334 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
335 : // Error handled in mozilla::ipc::IPCResult
336 0 : return MsgProcessingError;
337 : }
338 :
339 0 : return MsgProcessed;
340 : }
341 : case PHttpBackgroundChannel::Msg___delete____ID:
342 : {
343 3 : if (mozilla::ipc::LoggingEnabledFor("PHttpBackgroundChannelChild")) {
344 0 : mozilla::ipc::LogMessageForProtocol("PHttpBackgroundChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
345 : }
346 6 : AUTO_PROFILER_LABEL("PHttpBackgroundChannel::Msg___delete__", OTHER);
347 :
348 3 : PickleIterator iter__(msg__);
349 : PHttpBackgroundChannelChild* actor;
350 :
351 3 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
352 0 : FatalError("Error deserializing 'PHttpBackgroundChannelChild'");
353 0 : return MsgValueError;
354 : }
355 : // Sentinel = 'actor'
356 3 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
357 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PHttpBackgroundChannelChild'");
358 0 : return MsgValueError;
359 : }
360 3 : (msg__).EndRead(iter__, (msg__).type());
361 3 : PHttpBackgroundChannel::Transition(PHttpBackgroundChannel::Msg___delete____ID, (&(mState)));
362 3 : if ((!(Recv__delete__()))) {
363 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
364 : // Error handled in mozilla::ipc::IPCResult
365 0 : return MsgProcessingError;
366 : }
367 :
368 :
369 3 : IProtocol* mgr = (actor)->Manager();
370 3 : (actor)->DestroySubtree(Deletion);
371 3 : (actor)->DeallocSubtree();
372 3 : (mgr)->RemoveManagee(PHttpBackgroundChannelMsgStart, actor);
373 :
374 3 : return MsgProcessed;
375 : }
376 : default:
377 : {
378 0 : return MsgNotKnown;
379 : }
380 : }
381 : }
382 :
383 0 : auto PHttpBackgroundChannelChild::OnMessageReceived(
384 : const Message& msg__,
385 : Message*& reply__) -> PHttpBackgroundChannelChild::Result
386 : {
387 0 : return MsgNotKnown;
388 : }
389 :
390 0 : auto PHttpBackgroundChannelChild::OnCallReceived(
391 : const Message& msg__,
392 : Message*& reply__) -> PHttpBackgroundChannelChild::Result
393 : {
394 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
395 : return MsgNotKnown;
396 : }
397 :
398 3 : auto PHttpBackgroundChannelChild::GetProtocolTypeId() -> int32_t
399 : {
400 3 : return PHttpBackgroundChannelMsgStart;
401 : }
402 :
403 0 : auto PHttpBackgroundChannelChild::ProtocolName() const -> const char*
404 : {
405 0 : return "PHttpBackgroundChannelChild";
406 : }
407 :
408 3 : auto PHttpBackgroundChannelChild::DestroySubtree(ActorDestroyReason why) -> void
409 : {
410 : // Unregister from our manager.
411 3 : Unregister(Id());
412 :
413 : // Reject owning pending promises.
414 3 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
415 :
416 : // Finally, destroy "us".
417 3 : ActorDestroy(why);
418 3 : }
419 :
420 3 : auto PHttpBackgroundChannelChild::DeallocSubtree() -> void
421 : {
422 3 : }
423 :
424 0 : auto PHttpBackgroundChannelChild::Write(
425 : const ClassifierInfo& v__,
426 : Message* msg__) -> void
427 : {
428 0 : Write((v__).list(), msg__);
429 : // Sentinel = 'list'
430 0 : (msg__)->WriteSentinel(1914335340);
431 0 : Write((v__).provider(), msg__);
432 : // Sentinel = 'provider'
433 0 : (msg__)->WriteSentinel(3034771127);
434 0 : Write((v__).prefix(), msg__);
435 : // Sentinel = 'prefix'
436 0 : (msg__)->WriteSentinel(4169957394);
437 0 : }
438 :
439 0 : auto PHttpBackgroundChannelChild::Read(
440 : ClassifierInfo* v__,
441 : const Message* msg__,
442 : PickleIterator* iter__) -> bool
443 : {
444 0 : if ((!(Read((&((v__)->list())), msg__, iter__)))) {
445 0 : FatalError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
446 0 : return false;
447 : }
448 : // Sentinel = 'list'
449 0 : if ((!((msg__)->ReadSentinel(iter__, 1914335340)))) {
450 0 : mozilla::ipc::SentinelReadError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
451 0 : return false;
452 : }
453 0 : if ((!(Read((&((v__)->provider())), msg__, iter__)))) {
454 0 : FatalError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
455 0 : return false;
456 : }
457 : // Sentinel = 'provider'
458 0 : if ((!((msg__)->ReadSentinel(iter__, 3034771127)))) {
459 0 : mozilla::ipc::SentinelReadError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
460 0 : return false;
461 : }
462 0 : if ((!(Read((&((v__)->prefix())), msg__, iter__)))) {
463 0 : FatalError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
464 0 : return false;
465 : }
466 : // Sentinel = 'prefix'
467 0 : if ((!((msg__)->ReadSentinel(iter__, 4169957394)))) {
468 0 : mozilla::ipc::SentinelReadError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
469 0 : return false;
470 : }
471 0 : return true;
472 : }
473 :
474 0 : auto PHttpBackgroundChannelChild::Write(
475 : const PHttpBackgroundChannelChild* v__,
476 : Message* msg__,
477 : bool nullable__) -> void
478 : {
479 : int32_t id;
480 0 : if ((!(v__))) {
481 0 : if ((!(nullable__))) {
482 0 : FatalError("NULL actor value passed to non-nullable param");
483 : }
484 0 : id = 0;
485 : }
486 : else {
487 0 : id = (v__)->Id();
488 0 : if ((1) == (id)) {
489 0 : FatalError("actor has been |delete|d");
490 : }
491 : }
492 :
493 0 : Write(id, msg__);
494 0 : }
495 :
496 3 : auto PHttpBackgroundChannelChild::Read(
497 : PHttpBackgroundChannelChild** v__,
498 : const Message* msg__,
499 : PickleIterator* iter__,
500 : bool nullable__) -> bool
501 : {
502 6 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PHttpBackgroundChannel", PHttpBackgroundChannelMsgStart);
503 3 : if ((actor).isNothing()) {
504 0 : return false;
505 : }
506 :
507 3 : (*(v__)) = static_cast<PHttpBackgroundChannelChild*>((actor).value());
508 3 : return true;
509 : }
510 :
511 :
512 :
513 : } // namespace net
514 : } // namespace mozilla
|