/work/obj-fuzz/ipc/ipdl/PCookieServiceChild.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/net/PCookieServiceChild.h" |
8 | | |
9 | | #include "mozilla/net/PNeckoChild.h" |
10 | | |
11 | | #include "nsIFile.h" |
12 | | #include "GeckoProfiler.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace net { |
16 | | |
17 | | |
18 | | auto PCookieServiceChild::ActorDestroy(ActorDestroyReason aWhy) -> void |
19 | 0 | { |
20 | 0 | } |
21 | | |
22 | | MOZ_IMPLICIT PCookieServiceChild::PCookieServiceChild() : |
23 | | mozilla::ipc::IProtocol(mozilla::ipc::ChildSide), |
24 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
25 | 0 | { |
26 | 0 | MOZ_COUNT_CTOR(PCookieServiceChild); |
27 | 0 | } |
28 | | |
29 | | PCookieServiceChild::~PCookieServiceChild() |
30 | 0 | { |
31 | 0 | MOZ_COUNT_DTOR(PCookieServiceChild); |
32 | 0 | } |
33 | | |
34 | | auto PCookieServiceChild::Manager() const -> PNeckoChild* |
35 | 0 | { |
36 | 0 | return static_cast<PNeckoChild*>(IProtocol::Manager()); |
37 | 0 | } |
38 | | |
39 | | auto PCookieServiceChild::SendSetCookieString( |
40 | | const URIParams& host, |
41 | | const OptionalURIParams& channelURI, |
42 | | const bool& isForeign, |
43 | | const bool& isTrackingResource, |
44 | | const bool& firstPartyStorageAccessGranted, |
45 | | const nsCString& cookieString, |
46 | | const nsCString& serverTime, |
47 | | const OriginAttributes& attrs, |
48 | | const bool& aFromHttp) -> bool |
49 | 0 | { |
50 | 0 | IPC::Message* msg__ = PCookieService::Msg_SetCookieString(Id()); |
51 | 0 |
|
52 | 0 | WriteIPDLParam(msg__, this, host); |
53 | 0 | // Sentinel = 'host' |
54 | 0 | (msg__)->WriteSentinel(4070301394); |
55 | 0 | WriteIPDLParam(msg__, this, channelURI); |
56 | 0 | // Sentinel = 'channelURI' |
57 | 0 | (msg__)->WriteSentinel(692955771); |
58 | 0 | WriteIPDLParam(msg__, this, isForeign); |
59 | 0 | // Sentinel = 'isForeign' |
60 | 0 | (msg__)->WriteSentinel(1880140857); |
61 | 0 | WriteIPDLParam(msg__, this, isTrackingResource); |
62 | 0 | // Sentinel = 'isTrackingResource' |
63 | 0 | (msg__)->WriteSentinel(4226279281); |
64 | 0 | WriteIPDLParam(msg__, this, firstPartyStorageAccessGranted); |
65 | 0 | // Sentinel = 'firstPartyStorageAccessGranted' |
66 | 0 | (msg__)->WriteSentinel(2622166554); |
67 | 0 | WriteIPDLParam(msg__, this, cookieString); |
68 | 0 | // Sentinel = 'cookieString' |
69 | 0 | (msg__)->WriteSentinel(1411687009); |
70 | 0 | WriteIPDLParam(msg__, this, serverTime); |
71 | 0 | // Sentinel = 'serverTime' |
72 | 0 | (msg__)->WriteSentinel(2435914796); |
73 | 0 | WriteIPDLParam(msg__, this, attrs); |
74 | 0 | // Sentinel = 'attrs' |
75 | 0 | (msg__)->WriteSentinel(3014987797); |
76 | 0 | WriteIPDLParam(msg__, this, aFromHttp); |
77 | 0 | // Sentinel = 'aFromHttp' |
78 | 0 | (msg__)->WriteSentinel(1692552316); |
79 | 0 |
|
80 | 0 |
|
81 | 0 |
|
82 | 0 |
|
83 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
84 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
85 | 0 | } |
86 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_SetCookieString", OTHER); |
87 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
88 | 0 | mozilla::ipc::LogicError("Transition error"); |
89 | 0 | } |
90 | 0 |
|
91 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
92 | 0 | return sendok__; |
93 | 0 | } |
94 | | |
95 | | auto PCookieServiceChild::SendPrepareCookieList( |
96 | | const URIParams& host, |
97 | | const bool& isForeign, |
98 | | const bool& isTrackingResource, |
99 | | const bool& firstPartyStorageAccessGranted, |
100 | | const bool& isSafeTopLevelNav, |
101 | | const bool& isSameSiteForeign, |
102 | | const OriginAttributes& attrs) -> bool |
103 | 0 | { |
104 | 0 | IPC::Message* msg__ = PCookieService::Msg_PrepareCookieList(Id()); |
105 | 0 |
|
106 | 0 | WriteIPDLParam(msg__, this, host); |
107 | 0 | // Sentinel = 'host' |
108 | 0 | (msg__)->WriteSentinel(4070301394); |
109 | 0 | WriteIPDLParam(msg__, this, isForeign); |
110 | 0 | // Sentinel = 'isForeign' |
111 | 0 | (msg__)->WriteSentinel(1880140857); |
112 | 0 | WriteIPDLParam(msg__, this, isTrackingResource); |
113 | 0 | // Sentinel = 'isTrackingResource' |
114 | 0 | (msg__)->WriteSentinel(4226279281); |
115 | 0 | WriteIPDLParam(msg__, this, firstPartyStorageAccessGranted); |
116 | 0 | // Sentinel = 'firstPartyStorageAccessGranted' |
117 | 0 | (msg__)->WriteSentinel(2622166554); |
118 | 0 | WriteIPDLParam(msg__, this, isSafeTopLevelNav); |
119 | 0 | // Sentinel = 'isSafeTopLevelNav' |
120 | 0 | (msg__)->WriteSentinel(1719103480); |
121 | 0 | WriteIPDLParam(msg__, this, isSameSiteForeign); |
122 | 0 | // Sentinel = 'isSameSiteForeign' |
123 | 0 | (msg__)->WriteSentinel(834350288); |
124 | 0 | WriteIPDLParam(msg__, this, attrs); |
125 | 0 | // Sentinel = 'attrs' |
126 | 0 | (msg__)->WriteSentinel(3014987797); |
127 | 0 |
|
128 | 0 |
|
129 | 0 |
|
130 | 0 |
|
131 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
132 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
133 | 0 | } |
134 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_PrepareCookieList", OTHER); |
135 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
136 | 0 | mozilla::ipc::LogicError("Transition error"); |
137 | 0 | } |
138 | 0 |
|
139 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
140 | 0 | return sendok__; |
141 | 0 | } |
142 | | |
143 | | auto PCookieServiceChild::Send__delete__(PCookieServiceChild* actor) -> bool |
144 | 0 | { |
145 | 0 | if ((!(actor))) { |
146 | 0 | return false; |
147 | 0 | } |
148 | 0 | |
149 | 0 | IPC::Message* msg__ = PCookieService::Msg___delete__((actor)->Id()); |
150 | 0 |
|
151 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
152 | 0 | WriteIPDLParam(msg__, actor, actor); |
153 | 0 | // Sentinel = 'actor' |
154 | 0 | (msg__)->WriteSentinel(875202478); |
155 | 0 |
|
156 | 0 |
|
157 | 0 |
|
158 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
159 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
160 | 0 | } |
161 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg___delete__", OTHER); |
162 | 0 | if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) { |
163 | 0 | mozilla::ipc::LogicError("Transition error"); |
164 | 0 | } |
165 | 0 |
|
166 | 0 | bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__); |
167 | 0 |
|
168 | 0 | IProtocol* mgr = (actor)->Manager(); |
169 | 0 | (actor)->DestroySubtree(Deletion); |
170 | 0 | (actor)->DeallocSubtree(); |
171 | 0 | (mgr)->RemoveManagee(PCookieServiceMsgStart, actor); |
172 | 0 | return sendok__; |
173 | 0 | } |
174 | | |
175 | | auto PCookieServiceChild::RemoveManagee( |
176 | | int32_t aProtocolId, |
177 | | IProtocol* aListener) -> void |
178 | 0 | { |
179 | 0 | FatalError("unreached"); |
180 | 0 | return; |
181 | 0 | } |
182 | | |
183 | | auto PCookieServiceChild::OnMessageReceived(const Message& msg__) -> PCookieServiceChild::Result |
184 | 0 | { |
185 | 0 | switch ((msg__).type()) { |
186 | 0 | case PCookieService::Reply___delete____ID: |
187 | 0 | { |
188 | 0 | return MsgProcessed; |
189 | 0 | } |
190 | 0 | case PCookieService::Msg_TrackCookiesLoad__ID: |
191 | 0 | { |
192 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
193 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
194 | 0 | } |
195 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_TrackCookiesLoad", OTHER); |
196 | 0 |
|
197 | 0 | PickleIterator iter__(msg__); |
198 | 0 | nsTArray<CookieStruct> cookiesList; |
199 | 0 | OriginAttributes attrs; |
200 | 0 |
|
201 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cookiesList)))))) { |
202 | 0 | FatalError("Error deserializing 'nsTArray'"); |
203 | 0 | return MsgValueError; |
204 | 0 | } |
205 | 0 | // Sentinel = 'cookiesList' |
206 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6061702)))) { |
207 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
208 | 0 | return MsgValueError; |
209 | 0 | } |
210 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(attrs)))))) { |
211 | 0 | FatalError("Error deserializing 'OriginAttributes'"); |
212 | 0 | return MsgValueError; |
213 | 0 | } |
214 | 0 | // Sentinel = 'attrs' |
215 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3014987797)))) { |
216 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'"); |
217 | 0 | return MsgValueError; |
218 | 0 | } |
219 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
220 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
221 | 0 | FatalError("Transition error"); |
222 | 0 | return MsgValueError; |
223 | 0 | } |
224 | 0 | if ((!(RecvTrackCookiesLoad(std::move(cookiesList), attrs)))) { |
225 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
226 | 0 | // Error handled in mozilla::ipc::IPCResult |
227 | 0 | return MsgProcessingError; |
228 | 0 | } |
229 | 0 | |
230 | 0 | return MsgProcessed; |
231 | 0 | } |
232 | 0 | case PCookieService::Msg_RemoveCookie__ID: |
233 | 0 | { |
234 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
235 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
236 | 0 | } |
237 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_RemoveCookie", OTHER); |
238 | 0 |
|
239 | 0 | PickleIterator iter__(msg__); |
240 | 0 | CookieStruct cookie; |
241 | 0 | OriginAttributes attrs; |
242 | 0 |
|
243 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cookie)))))) { |
244 | 0 | FatalError("Error deserializing 'CookieStruct'"); |
245 | 0 | return MsgValueError; |
246 | 0 | } |
247 | 0 | // Sentinel = 'cookie' |
248 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1377792724)))) { |
249 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CookieStruct'"); |
250 | 0 | return MsgValueError; |
251 | 0 | } |
252 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(attrs)))))) { |
253 | 0 | FatalError("Error deserializing 'OriginAttributes'"); |
254 | 0 | return MsgValueError; |
255 | 0 | } |
256 | 0 | // Sentinel = 'attrs' |
257 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3014987797)))) { |
258 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'"); |
259 | 0 | return MsgValueError; |
260 | 0 | } |
261 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
262 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
263 | 0 | FatalError("Transition error"); |
264 | 0 | return MsgValueError; |
265 | 0 | } |
266 | 0 | if ((!(RecvRemoveCookie(cookie, attrs)))) { |
267 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
268 | 0 | // Error handled in mozilla::ipc::IPCResult |
269 | 0 | return MsgProcessingError; |
270 | 0 | } |
271 | 0 | |
272 | 0 | return MsgProcessed; |
273 | 0 | } |
274 | 0 | case PCookieService::Msg_RemoveBatchDeletedCookies__ID: |
275 | 0 | { |
276 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
277 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
278 | 0 | } |
279 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_RemoveBatchDeletedCookies", OTHER); |
280 | 0 |
|
281 | 0 | PickleIterator iter__(msg__); |
282 | 0 | nsTArray<CookieStruct> cookiesList; |
283 | 0 | nsTArray<OriginAttributes> attrsList; |
284 | 0 |
|
285 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cookiesList)))))) { |
286 | 0 | FatalError("Error deserializing 'nsTArray'"); |
287 | 0 | return MsgValueError; |
288 | 0 | } |
289 | 0 | // Sentinel = 'cookiesList' |
290 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6061702)))) { |
291 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
292 | 0 | return MsgValueError; |
293 | 0 | } |
294 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(attrsList)))))) { |
295 | 0 | FatalError("Error deserializing 'nsTArray'"); |
296 | 0 | return MsgValueError; |
297 | 0 | } |
298 | 0 | // Sentinel = 'attrsList' |
299 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1173781201)))) { |
300 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
301 | 0 | return MsgValueError; |
302 | 0 | } |
303 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
304 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
305 | 0 | FatalError("Transition error"); |
306 | 0 | return MsgValueError; |
307 | 0 | } |
308 | 0 | if ((!(RecvRemoveBatchDeletedCookies(std::move(cookiesList), std::move(attrsList))))) { |
309 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
310 | 0 | // Error handled in mozilla::ipc::IPCResult |
311 | 0 | return MsgProcessingError; |
312 | 0 | } |
313 | 0 | |
314 | 0 | return MsgProcessed; |
315 | 0 | } |
316 | 0 | case PCookieService::Msg_RemoveAll__ID: |
317 | 0 | { |
318 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
319 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
320 | 0 | } |
321 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_RemoveAll", OTHER); |
322 | 0 |
|
323 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
324 | 0 | FatalError("Transition error"); |
325 | 0 | return MsgValueError; |
326 | 0 | } |
327 | 0 | if ((!(RecvRemoveAll()))) { |
328 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
329 | 0 | // Error handled in mozilla::ipc::IPCResult |
330 | 0 | return MsgProcessingError; |
331 | 0 | } |
332 | 0 | |
333 | 0 | return MsgProcessed; |
334 | 0 | } |
335 | 0 | case PCookieService::Msg_AddCookie__ID: |
336 | 0 | { |
337 | 0 | if (mozilla::ipc::LoggingEnabledFor("PCookieServiceChild")) { |
338 | 0 | mozilla::ipc::LogMessageForProtocol("PCookieServiceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
339 | 0 | } |
340 | 0 | AUTO_PROFILER_LABEL("PCookieService::Msg_AddCookie", OTHER); |
341 | 0 |
|
342 | 0 | PickleIterator iter__(msg__); |
343 | 0 | CookieStruct cookie; |
344 | 0 | OriginAttributes attrs; |
345 | 0 |
|
346 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cookie)))))) { |
347 | 0 | FatalError("Error deserializing 'CookieStruct'"); |
348 | 0 | return MsgValueError; |
349 | 0 | } |
350 | 0 | // Sentinel = 'cookie' |
351 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1377792724)))) { |
352 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CookieStruct'"); |
353 | 0 | return MsgValueError; |
354 | 0 | } |
355 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(attrs)))))) { |
356 | 0 | FatalError("Error deserializing 'OriginAttributes'"); |
357 | 0 | return MsgValueError; |
358 | 0 | } |
359 | 0 | // Sentinel = 'attrs' |
360 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3014987797)))) { |
361 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OriginAttributes'"); |
362 | 0 | return MsgValueError; |
363 | 0 | } |
364 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
365 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
366 | 0 | FatalError("Transition error"); |
367 | 0 | return MsgValueError; |
368 | 0 | } |
369 | 0 | if ((!(RecvAddCookie(cookie, attrs)))) { |
370 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
371 | 0 | // Error handled in mozilla::ipc::IPCResult |
372 | 0 | return MsgProcessingError; |
373 | 0 | } |
374 | 0 | |
375 | 0 | return MsgProcessed; |
376 | 0 | } |
377 | 0 | default: |
378 | 0 | { |
379 | 0 | return MsgNotKnown; |
380 | 0 | } |
381 | 0 | } |
382 | 0 | } |
383 | | |
384 | | auto PCookieServiceChild::OnMessageReceived( |
385 | | const Message& msg__, |
386 | | Message*& reply__) -> PCookieServiceChild::Result |
387 | 0 | { |
388 | 0 | return MsgNotKnown; |
389 | 0 | } |
390 | | |
391 | | auto PCookieServiceChild::OnCallReceived( |
392 | | const Message& msg__, |
393 | | Message*& reply__) -> PCookieServiceChild::Result |
394 | 0 | { |
395 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
396 | 0 | return MsgNotKnown; |
397 | 0 | } |
398 | | |
399 | | auto PCookieServiceChild::GetProtocolTypeId() -> int32_t |
400 | 0 | { |
401 | 0 | return PCookieServiceMsgStart; |
402 | 0 | } |
403 | | |
404 | | auto PCookieServiceChild::DestroySubtree(ActorDestroyReason why) -> void |
405 | 0 | { |
406 | 0 | // Unregister from our manager. |
407 | 0 | Unregister(Id()); |
408 | 0 |
|
409 | 0 | // Reject owning pending responses. |
410 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
411 | 0 |
|
412 | 0 | // Finally, destroy "us". |
413 | 0 | ActorDestroy(why); |
414 | 0 | } |
415 | | |
416 | | auto PCookieServiceChild::DeallocSubtree() -> void |
417 | 0 | { |
418 | 0 | } |
419 | | |
420 | | |
421 | | |
422 | | } // namespace net |
423 | | } // namespace mozilla |
424 | | namespace mozilla { |
425 | | namespace ipc { |
426 | | auto IPDLParamTraits<mozilla::net::PCookieServiceChild>::Write( |
427 | | IPC::Message* aMsg, |
428 | | mozilla::ipc::IProtocol* aActor, |
429 | | const paramType& aVar) -> void |
430 | 0 | { |
431 | 0 | int32_t id; |
432 | 0 | if ((!(aVar))) { |
433 | 0 | id = 0; |
434 | 0 | } |
435 | 0 | else { |
436 | 0 | id = (aVar)->Id(); |
437 | 0 | if ((1) == (id)) { |
438 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
439 | 0 | } |
440 | 0 | } |
441 | 0 | WriteIPDLParam(aMsg, aActor, id); |
442 | 0 | } |
443 | | |
444 | | auto IPDLParamTraits<mozilla::net::PCookieServiceChild>::Read( |
445 | | const IPC::Message* aMsg, |
446 | | PickleIterator* aIter, |
447 | | mozilla::ipc::IProtocol* aActor, |
448 | | paramType* aVar) -> bool |
449 | 0 | { |
450 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PCookieService", PCookieServiceMsgStart); |
451 | 0 | if ((actor).isNothing()) { |
452 | 0 | return false; |
453 | 0 | } |
454 | 0 | |
455 | 0 | (*(aVar)) = static_cast<mozilla::net::PCookieServiceChild*>((actor).value()); |
456 | 0 | return true; |
457 | 0 | } |
458 | | |
459 | | } // namespace ipc |
460 | | } // namespace mozilla |