/work/obj-fuzz/ipc/ipdl/PHttpChannelChild.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/PHttpChannelChild.h" |
8 | | #include "mozilla/net/TimingStruct.h" |
9 | | #include "nsHttpHeaderArray.h" |
10 | | |
11 | | #include "mozilla/net/PNeckoChild.h" |
12 | | #include "mozilla/extensions/PStreamFilterChild.h" |
13 | | |
14 | | #include "nsIFile.h" |
15 | | #include "GeckoProfiler.h" |
16 | | |
17 | | namespace mozilla { |
18 | | namespace net { |
19 | | |
20 | | |
21 | | auto PHttpChannelChild::ActorDestroy(ActorDestroyReason aWhy) -> void |
22 | 0 | { |
23 | 0 | } |
24 | | |
25 | | MOZ_IMPLICIT PHttpChannelChild::PHttpChannelChild() : |
26 | | mozilla::ipc::IProtocol(mozilla::ipc::ChildSide), |
27 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
28 | 0 | { |
29 | 0 | MOZ_COUNT_CTOR(PHttpChannelChild); |
30 | 0 | } |
31 | | |
32 | | PHttpChannelChild::~PHttpChannelChild() |
33 | 0 | { |
34 | 0 | MOZ_COUNT_DTOR(PHttpChannelChild); |
35 | 0 | } |
36 | | |
37 | | auto PHttpChannelChild::Manager() const -> PNeckoChild* |
38 | 0 | { |
39 | 0 | return static_cast<PNeckoChild*>(IProtocol::Manager()); |
40 | 0 | } |
41 | | |
42 | | auto PHttpChannelChild::SendSetClassOfService(const uint32_t& cos) -> bool |
43 | 0 | { |
44 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_SetClassOfService(Id()); |
45 | 0 |
|
46 | 0 | WriteIPDLParam(msg__, this, cos); |
47 | 0 | // Sentinel = 'cos' |
48 | 0 | (msg__)->WriteSentinel(403875042); |
49 | 0 |
|
50 | 0 |
|
51 | 0 |
|
52 | 0 |
|
53 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
54 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
55 | 0 | } |
56 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetClassOfService", OTHER); |
57 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
58 | 0 | mozilla::ipc::LogicError("Transition error"); |
59 | 0 | } |
60 | 0 |
|
61 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
62 | 0 | return sendok__; |
63 | 0 | } |
64 | | |
65 | | auto PHttpChannelChild::SendSetCacheTokenCachedCharset(const nsCString& charset) -> bool |
66 | 0 | { |
67 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_SetCacheTokenCachedCharset(Id()); |
68 | 0 |
|
69 | 0 | WriteIPDLParam(msg__, this, charset); |
70 | 0 | // Sentinel = 'charset' |
71 | 0 | (msg__)->WriteSentinel(1551550891); |
72 | 0 |
|
73 | 0 |
|
74 | 0 |
|
75 | 0 |
|
76 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
77 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
78 | 0 | } |
79 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetCacheTokenCachedCharset", OTHER); |
80 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
81 | 0 | mozilla::ipc::LogicError("Transition error"); |
82 | 0 | } |
83 | 0 |
|
84 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
85 | 0 | return sendok__; |
86 | 0 | } |
87 | | |
88 | | auto PHttpChannelChild::SendSuspend() -> bool |
89 | 0 | { |
90 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_Suspend(Id()); |
91 | 0 |
|
92 | 0 |
|
93 | 0 |
|
94 | 0 |
|
95 | 0 |
|
96 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
97 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
98 | 0 | } |
99 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Suspend", OTHER); |
100 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
101 | 0 | mozilla::ipc::LogicError("Transition error"); |
102 | 0 | } |
103 | 0 |
|
104 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
105 | 0 | return sendok__; |
106 | 0 | } |
107 | | |
108 | | auto PHttpChannelChild::SendResume() -> bool |
109 | 0 | { |
110 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_Resume(Id()); |
111 | 0 |
|
112 | 0 |
|
113 | 0 |
|
114 | 0 |
|
115 | 0 |
|
116 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
117 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
118 | 0 | } |
119 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Resume", OTHER); |
120 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
121 | 0 | mozilla::ipc::LogicError("Transition error"); |
122 | 0 | } |
123 | 0 |
|
124 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
125 | 0 | return sendok__; |
126 | 0 | } |
127 | | |
128 | | auto PHttpChannelChild::SendCancel(const nsresult& status) -> bool |
129 | 0 | { |
130 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_Cancel(Id()); |
131 | 0 |
|
132 | 0 | WriteIPDLParam(msg__, this, status); |
133 | 0 | // Sentinel = 'status' |
134 | 0 | (msg__)->WriteSentinel(3714608576); |
135 | 0 |
|
136 | 0 |
|
137 | 0 |
|
138 | 0 |
|
139 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
140 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
141 | 0 | } |
142 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Cancel", OTHER); |
143 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
144 | 0 | mozilla::ipc::LogicError("Transition error"); |
145 | 0 | } |
146 | 0 |
|
147 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
148 | 0 | return sendok__; |
149 | 0 | } |
150 | | |
151 | | auto PHttpChannelChild::SendRedirect2Verify( |
152 | | const nsresult& result, |
153 | | const RequestHeaderTuples& changedHeaders, |
154 | | const ChildLoadInfoForwarderArgs& loadInfoForwarder, |
155 | | const uint32_t& loadFlags, |
156 | | const uint32_t& referrerPolicy, |
157 | | const OptionalURIParams& referrerUri, |
158 | | const OptionalURIParams& apiRedirectTo, |
159 | | const OptionalCorsPreflightArgs& corsPreflightArgs, |
160 | | const bool& chooseAppcache) -> bool |
161 | 0 | { |
162 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_Redirect2Verify(Id()); |
163 | 0 |
|
164 | 0 | WriteIPDLParam(msg__, this, result); |
165 | 0 | // Sentinel = 'result' |
166 | 0 | (msg__)->WriteSentinel(3991766165); |
167 | 0 | WriteIPDLParam(msg__, this, changedHeaders); |
168 | 0 | // Sentinel = 'changedHeaders' |
169 | 0 | (msg__)->WriteSentinel(1574138284); |
170 | 0 | WriteIPDLParam(msg__, this, loadInfoForwarder); |
171 | 0 | // Sentinel = 'loadInfoForwarder' |
172 | 0 | (msg__)->WriteSentinel(2195128043); |
173 | 0 | WriteIPDLParam(msg__, this, loadFlags); |
174 | 0 | // Sentinel = 'loadFlags' |
175 | 0 | (msg__)->WriteSentinel(2391120444); |
176 | 0 | WriteIPDLParam(msg__, this, referrerPolicy); |
177 | 0 | // Sentinel = 'referrerPolicy' |
178 | 0 | (msg__)->WriteSentinel(2269890057); |
179 | 0 | WriteIPDLParam(msg__, this, referrerUri); |
180 | 0 | // Sentinel = 'referrerUri' |
181 | 0 | (msg__)->WriteSentinel(622910354); |
182 | 0 | WriteIPDLParam(msg__, this, apiRedirectTo); |
183 | 0 | // Sentinel = 'apiRedirectTo' |
184 | 0 | (msg__)->WriteSentinel(3162811030); |
185 | 0 | WriteIPDLParam(msg__, this, corsPreflightArgs); |
186 | 0 | // Sentinel = 'corsPreflightArgs' |
187 | 0 | (msg__)->WriteSentinel(1890063766); |
188 | 0 | WriteIPDLParam(msg__, this, chooseAppcache); |
189 | 0 | // Sentinel = 'chooseAppcache' |
190 | 0 | (msg__)->WriteSentinel(868254728); |
191 | 0 |
|
192 | 0 |
|
193 | 0 |
|
194 | 0 |
|
195 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
196 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
197 | 0 | } |
198 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect2Verify", OTHER); |
199 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
200 | 0 | mozilla::ipc::LogicError("Transition error"); |
201 | 0 | } |
202 | 0 |
|
203 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
204 | 0 | return sendok__; |
205 | 0 | } |
206 | | |
207 | | auto PHttpChannelChild::SendCrossProcessRedirectDone(const nsresult& result) -> bool |
208 | 0 | { |
209 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_CrossProcessRedirectDone(Id()); |
210 | 0 |
|
211 | 0 | WriteIPDLParam(msg__, this, result); |
212 | 0 | // Sentinel = 'result' |
213 | 0 | (msg__)->WriteSentinel(3991766165); |
214 | 0 |
|
215 | 0 |
|
216 | 0 |
|
217 | 0 |
|
218 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
219 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
220 | 0 | } |
221 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_CrossProcessRedirectDone", OTHER); |
222 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
223 | 0 | mozilla::ipc::LogicError("Transition error"); |
224 | 0 | } |
225 | 0 |
|
226 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
227 | 0 | return sendok__; |
228 | 0 | } |
229 | | |
230 | | auto PHttpChannelChild::SendDocumentChannelCleanup(const bool& clearCacheEntry) -> bool |
231 | 0 | { |
232 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_DocumentChannelCleanup(Id()); |
233 | 0 |
|
234 | 0 | WriteIPDLParam(msg__, this, clearCacheEntry); |
235 | 0 | // Sentinel = 'clearCacheEntry' |
236 | 0 | (msg__)->WriteSentinel(2700914662); |
237 | 0 |
|
238 | 0 |
|
239 | 0 |
|
240 | 0 |
|
241 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
242 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
243 | 0 | } |
244 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DocumentChannelCleanup", OTHER); |
245 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
246 | 0 | mozilla::ipc::LogicError("Transition error"); |
247 | 0 | } |
248 | 0 |
|
249 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
250 | 0 | return sendok__; |
251 | 0 | } |
252 | | |
253 | | auto PHttpChannelChild::SendMarkOfflineCacheEntryAsForeign() -> bool |
254 | 0 | { |
255 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign(Id()); |
256 | 0 |
|
257 | 0 |
|
258 | 0 |
|
259 | 0 |
|
260 | 0 |
|
261 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
262 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
263 | 0 | } |
264 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_MarkOfflineCacheEntryAsForeign", OTHER); |
265 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
266 | 0 | mozilla::ipc::LogicError("Transition error"); |
267 | 0 | } |
268 | 0 |
|
269 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
270 | 0 | return sendok__; |
271 | 0 | } |
272 | | |
273 | | auto PHttpChannelChild::SendDivertOnDataAvailable( |
274 | | const nsCString& data, |
275 | | const uint64_t& offset, |
276 | | const uint32_t& count) -> bool |
277 | 0 | { |
278 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_DivertOnDataAvailable(Id()); |
279 | 0 |
|
280 | 0 | WriteIPDLParam(msg__, this, data); |
281 | 0 | // Sentinel = 'data' |
282 | 0 | (msg__)->WriteSentinel(843352540); |
283 | 0 | WriteIPDLParam(msg__, this, offset); |
284 | 0 | // Sentinel = 'offset' |
285 | 0 | (msg__)->WriteSentinel(1369947863); |
286 | 0 | WriteIPDLParam(msg__, this, count); |
287 | 0 | // Sentinel = 'count' |
288 | 0 | (msg__)->WriteSentinel(2126421856); |
289 | 0 |
|
290 | 0 |
|
291 | 0 |
|
292 | 0 |
|
293 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
294 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
295 | 0 | } |
296 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnDataAvailable", OTHER); |
297 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
298 | 0 | mozilla::ipc::LogicError("Transition error"); |
299 | 0 | } |
300 | 0 |
|
301 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
302 | 0 | return sendok__; |
303 | 0 | } |
304 | | |
305 | | auto PHttpChannelChild::SendDivertOnStopRequest(const nsresult& statusCode) -> bool |
306 | 0 | { |
307 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_DivertOnStopRequest(Id()); |
308 | 0 |
|
309 | 0 | WriteIPDLParam(msg__, this, statusCode); |
310 | 0 | // Sentinel = 'statusCode' |
311 | 0 | (msg__)->WriteSentinel(2709278591); |
312 | 0 |
|
313 | 0 |
|
314 | 0 |
|
315 | 0 |
|
316 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
317 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
318 | 0 | } |
319 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertOnStopRequest", OTHER); |
320 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
321 | 0 | mozilla::ipc::LogicError("Transition error"); |
322 | 0 | } |
323 | 0 |
|
324 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
325 | 0 | return sendok__; |
326 | 0 | } |
327 | | |
328 | | auto PHttpChannelChild::SendDivertComplete() -> bool |
329 | 0 | { |
330 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_DivertComplete(Id()); |
331 | 0 |
|
332 | 0 |
|
333 | 0 |
|
334 | 0 |
|
335 | 0 |
|
336 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
337 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
338 | 0 | } |
339 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DivertComplete", OTHER); |
340 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
341 | 0 | mozilla::ipc::LogicError("Transition error"); |
342 | 0 | } |
343 | 0 |
|
344 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
345 | 0 | return sendok__; |
346 | 0 | } |
347 | | |
348 | | auto PHttpChannelChild::SendRemoveCorsPreflightCacheEntry( |
349 | | const URIParams& uri, |
350 | | const PrincipalInfo& requestingPrincipal) -> bool |
351 | 0 | { |
352 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_RemoveCorsPreflightCacheEntry(Id()); |
353 | 0 |
|
354 | 0 | WriteIPDLParam(msg__, this, uri); |
355 | 0 | // Sentinel = 'uri' |
356 | 0 | (msg__)->WriteSentinel(1453210605); |
357 | 0 | WriteIPDLParam(msg__, this, requestingPrincipal); |
358 | 0 | // Sentinel = 'requestingPrincipal' |
359 | 0 | (msg__)->WriteSentinel(1124847050); |
360 | 0 |
|
361 | 0 |
|
362 | 0 |
|
363 | 0 |
|
364 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
365 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
366 | 0 | } |
367 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_RemoveCorsPreflightCacheEntry", OTHER); |
368 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
369 | 0 | mozilla::ipc::LogicError("Transition error"); |
370 | 0 | } |
371 | 0 |
|
372 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
373 | 0 | return sendok__; |
374 | 0 | } |
375 | | |
376 | | auto PHttpChannelChild::SendDeletingChannel() -> bool |
377 | 0 | { |
378 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_DeletingChannel(Id()); |
379 | 0 |
|
380 | 0 |
|
381 | 0 |
|
382 | 0 |
|
383 | 0 |
|
384 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
385 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
386 | 0 | } |
387 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeletingChannel", OTHER); |
388 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
389 | 0 | mozilla::ipc::LogicError("Transition error"); |
390 | 0 | } |
391 | 0 |
|
392 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
393 | 0 | return sendok__; |
394 | 0 | } |
395 | | |
396 | | auto PHttpChannelChild::SendBytesRead(const int32_t& count) -> bool |
397 | 0 | { |
398 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_BytesRead(Id()); |
399 | 0 |
|
400 | 0 | WriteIPDLParam(msg__, this, count); |
401 | 0 | // Sentinel = 'count' |
402 | 0 | (msg__)->WriteSentinel(2126421856); |
403 | 0 |
|
404 | 0 |
|
405 | 0 |
|
406 | 0 |
|
407 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
408 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
409 | 0 | } |
410 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_BytesRead", OTHER); |
411 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
412 | 0 | mozilla::ipc::LogicError("Transition error"); |
413 | 0 | } |
414 | 0 |
|
415 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
416 | 0 | return sendok__; |
417 | 0 | } |
418 | | |
419 | | auto PHttpChannelChild::Send__delete__(PHttpChannelChild* actor) -> bool |
420 | 0 | { |
421 | 0 | if ((!(actor))) { |
422 | 0 | return false; |
423 | 0 | } |
424 | 0 | |
425 | 0 | IPC::Message* msg__ = PHttpChannel::Msg___delete__((actor)->Id()); |
426 | 0 |
|
427 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
428 | 0 | WriteIPDLParam(msg__, actor, actor); |
429 | 0 | // Sentinel = 'actor' |
430 | 0 | (msg__)->WriteSentinel(875202478); |
431 | 0 |
|
432 | 0 |
|
433 | 0 |
|
434 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
435 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
436 | 0 | } |
437 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg___delete__", OTHER); |
438 | 0 | if ((!(StateTransition(true, (&((actor)->mLivenessState)))))) { |
439 | 0 | mozilla::ipc::LogicError("Transition error"); |
440 | 0 | } |
441 | 0 |
|
442 | 0 | bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__); |
443 | 0 |
|
444 | 0 | IProtocol* mgr = (actor)->Manager(); |
445 | 0 | (actor)->DestroySubtree(Deletion); |
446 | 0 | (actor)->DeallocSubtree(); |
447 | 0 | (mgr)->RemoveManagee(PHttpChannelMsgStart, actor); |
448 | 0 | return sendok__; |
449 | 0 | } |
450 | | |
451 | | auto PHttpChannelChild::SendFinishInterceptedRedirect() -> bool |
452 | 0 | { |
453 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_FinishInterceptedRedirect(Id()); |
454 | 0 |
|
455 | 0 |
|
456 | 0 |
|
457 | 0 |
|
458 | 0 |
|
459 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
460 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
461 | 0 | } |
462 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER); |
463 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
464 | 0 | mozilla::ipc::LogicError("Transition error"); |
465 | 0 | } |
466 | 0 |
|
467 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
468 | 0 | return sendok__; |
469 | 0 | } |
470 | | |
471 | | auto PHttpChannelChild::SendSetPriority(const int16_t& priority) -> bool |
472 | 0 | { |
473 | 0 | IPC::Message* msg__ = PHttpChannel::Msg_SetPriority(Id()); |
474 | 0 |
|
475 | 0 | WriteIPDLParam(msg__, this, priority); |
476 | 0 | // Sentinel = 'priority' |
477 | 0 | (msg__)->WriteSentinel(558136112); |
478 | 0 |
|
479 | 0 |
|
480 | 0 |
|
481 | 0 |
|
482 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
483 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
484 | 0 | } |
485 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER); |
486 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
487 | 0 | mozilla::ipc::LogicError("Transition error"); |
488 | 0 | } |
489 | 0 |
|
490 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
491 | 0 | return sendok__; |
492 | 0 | } |
493 | | |
494 | | auto PHttpChannelChild::RemoveManagee( |
495 | | int32_t aProtocolId, |
496 | | IProtocol* aListener) -> void |
497 | 0 | { |
498 | 0 | FatalError("unreached"); |
499 | 0 | return; |
500 | 0 | } |
501 | | |
502 | | auto PHttpChannelChild::OnMessageReceived(const Message& msg__) -> PHttpChannelChild::Result |
503 | 0 | { |
504 | 0 | switch ((msg__).type()) { |
505 | 0 | case PHttpChannel::Reply___delete____ID: |
506 | 0 | { |
507 | 0 | return MsgProcessed; |
508 | 0 | } |
509 | 0 | case PHttpChannel::Msg_OnStartRequest__ID: |
510 | 0 | { |
511 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
512 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
513 | 0 | } |
514 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_OnStartRequest", OTHER); |
515 | 0 |
|
516 | 0 | PickleIterator iter__(msg__); |
517 | 0 | nsresult channelStatus; |
518 | 0 | nsHttpResponseHead responseHead; |
519 | 0 | bool useResponseHead; |
520 | 0 | nsHttpHeaderArray requestHeaders; |
521 | 0 | ParentLoadInfoForwarderArgs loadInfoForwarder; |
522 | 0 | bool isFromCache; |
523 | 0 | bool cacheEntryAvailable; |
524 | 0 | uint64_t cacheEntryId; |
525 | 0 | int32_t cacheFetchCount; |
526 | 0 | uint32_t cacheExpirationTime; |
527 | 0 | nsCString cachedCharset; |
528 | 0 | nsCString securityInfoSerialization; |
529 | 0 | NetAddr selfAddr; |
530 | 0 | NetAddr peerAddr; |
531 | 0 | int16_t redirectCount; |
532 | 0 | uint32_t cacheKey; |
533 | 0 | nsCString altDataType; |
534 | 0 | int64_t altDataLength; |
535 | 0 | bool applyConversion; |
536 | 0 | ResourceTimingStruct timing; |
537 | 0 |
|
538 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelStatus)))))) { |
539 | 0 | FatalError("Error deserializing 'nsresult'"); |
540 | 0 | return MsgValueError; |
541 | 0 | } |
542 | 0 | // Sentinel = 'channelStatus' |
543 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3148019746)))) { |
544 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
545 | 0 | return MsgValueError; |
546 | 0 | } |
547 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(responseHead)))))) { |
548 | 0 | FatalError("Error deserializing 'nsHttpResponseHead'"); |
549 | 0 | return MsgValueError; |
550 | 0 | } |
551 | 0 | // Sentinel = 'responseHead' |
552 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3038698187)))) { |
553 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsHttpResponseHead'"); |
554 | 0 | return MsgValueError; |
555 | 0 | } |
556 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(useResponseHead)))))) { |
557 | 0 | FatalError("Error deserializing 'bool'"); |
558 | 0 | return MsgValueError; |
559 | 0 | } |
560 | 0 | // Sentinel = 'useResponseHead' |
561 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2994626489)))) { |
562 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
563 | 0 | return MsgValueError; |
564 | 0 | } |
565 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(requestHeaders)))))) { |
566 | 0 | FatalError("Error deserializing 'nsHttpHeaderArray'"); |
567 | 0 | return MsgValueError; |
568 | 0 | } |
569 | 0 | // Sentinel = 'requestHeaders' |
570 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2055989545)))) { |
571 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsHttpHeaderArray'"); |
572 | 0 | return MsgValueError; |
573 | 0 | } |
574 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadInfoForwarder)))))) { |
575 | 0 | FatalError("Error deserializing 'ParentLoadInfoForwarderArgs'"); |
576 | 0 | return MsgValueError; |
577 | 0 | } |
578 | 0 | // Sentinel = 'loadInfoForwarder' |
579 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2195128043)))) { |
580 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ParentLoadInfoForwarderArgs'"); |
581 | 0 | return MsgValueError; |
582 | 0 | } |
583 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isFromCache)))))) { |
584 | 0 | FatalError("Error deserializing 'bool'"); |
585 | 0 | return MsgValueError; |
586 | 0 | } |
587 | 0 | // Sentinel = 'isFromCache' |
588 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4089953117)))) { |
589 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
590 | 0 | return MsgValueError; |
591 | 0 | } |
592 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheEntryAvailable)))))) { |
593 | 0 | FatalError("Error deserializing 'bool'"); |
594 | 0 | return MsgValueError; |
595 | 0 | } |
596 | 0 | // Sentinel = 'cacheEntryAvailable' |
597 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2363064)))) { |
598 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
599 | 0 | return MsgValueError; |
600 | 0 | } |
601 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheEntryId)))))) { |
602 | 0 | FatalError("Error deserializing 'uint64_t'"); |
603 | 0 | return MsgValueError; |
604 | 0 | } |
605 | 0 | // Sentinel = 'cacheEntryId' |
606 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3383493417)))) { |
607 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
608 | 0 | return MsgValueError; |
609 | 0 | } |
610 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheFetchCount)))))) { |
611 | 0 | FatalError("Error deserializing 'int32_t'"); |
612 | 0 | return MsgValueError; |
613 | 0 | } |
614 | 0 | // Sentinel = 'cacheFetchCount' |
615 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2824496928)))) { |
616 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
617 | 0 | return MsgValueError; |
618 | 0 | } |
619 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheExpirationTime)))))) { |
620 | 0 | FatalError("Error deserializing 'uint32_t'"); |
621 | 0 | return MsgValueError; |
622 | 0 | } |
623 | 0 | // Sentinel = 'cacheExpirationTime' |
624 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 439162213)))) { |
625 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
626 | 0 | return MsgValueError; |
627 | 0 | } |
628 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cachedCharset)))))) { |
629 | 0 | FatalError("Error deserializing 'nsCString'"); |
630 | 0 | return MsgValueError; |
631 | 0 | } |
632 | 0 | // Sentinel = 'cachedCharset' |
633 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1570160399)))) { |
634 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
635 | 0 | return MsgValueError; |
636 | 0 | } |
637 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(securityInfoSerialization)))))) { |
638 | 0 | FatalError("Error deserializing 'nsCString'"); |
639 | 0 | return MsgValueError; |
640 | 0 | } |
641 | 0 | // Sentinel = 'securityInfoSerialization' |
642 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 985832975)))) { |
643 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
644 | 0 | return MsgValueError; |
645 | 0 | } |
646 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(selfAddr)))))) { |
647 | 0 | FatalError("Error deserializing 'NetAddr'"); |
648 | 0 | return MsgValueError; |
649 | 0 | } |
650 | 0 | // Sentinel = 'selfAddr' |
651 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 463888251)))) { |
652 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'NetAddr'"); |
653 | 0 | return MsgValueError; |
654 | 0 | } |
655 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(peerAddr)))))) { |
656 | 0 | FatalError("Error deserializing 'NetAddr'"); |
657 | 0 | return MsgValueError; |
658 | 0 | } |
659 | 0 | // Sentinel = 'peerAddr' |
660 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1373265573)))) { |
661 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'NetAddr'"); |
662 | 0 | return MsgValueError; |
663 | 0 | } |
664 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(redirectCount)))))) { |
665 | 0 | FatalError("Error deserializing 'int16_t'"); |
666 | 0 | return MsgValueError; |
667 | 0 | } |
668 | 0 | // Sentinel = 'redirectCount' |
669 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1874411984)))) { |
670 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'"); |
671 | 0 | return MsgValueError; |
672 | 0 | } |
673 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheKey)))))) { |
674 | 0 | FatalError("Error deserializing 'uint32_t'"); |
675 | 0 | return MsgValueError; |
676 | 0 | } |
677 | 0 | // Sentinel = 'cacheKey' |
678 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 249191363)))) { |
679 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
680 | 0 | return MsgValueError; |
681 | 0 | } |
682 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(altDataType)))))) { |
683 | 0 | FatalError("Error deserializing 'nsCString'"); |
684 | 0 | return MsgValueError; |
685 | 0 | } |
686 | 0 | // Sentinel = 'altDataType' |
687 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2339988114)))) { |
688 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
689 | 0 | return MsgValueError; |
690 | 0 | } |
691 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(altDataLength)))))) { |
692 | 0 | FatalError("Error deserializing 'int64_t'"); |
693 | 0 | return MsgValueError; |
694 | 0 | } |
695 | 0 | // Sentinel = 'altDataLength' |
696 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2685793220)))) { |
697 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int64_t'"); |
698 | 0 | return MsgValueError; |
699 | 0 | } |
700 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(applyConversion)))))) { |
701 | 0 | FatalError("Error deserializing 'bool'"); |
702 | 0 | return MsgValueError; |
703 | 0 | } |
704 | 0 | // Sentinel = 'applyConversion' |
705 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2539641483)))) { |
706 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
707 | 0 | return MsgValueError; |
708 | 0 | } |
709 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(timing)))))) { |
710 | 0 | FatalError("Error deserializing 'ResourceTimingStruct'"); |
711 | 0 | return MsgValueError; |
712 | 0 | } |
713 | 0 | // Sentinel = 'timing' |
714 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3852786776)))) { |
715 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ResourceTimingStruct'"); |
716 | 0 | return MsgValueError; |
717 | 0 | } |
718 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
719 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
720 | 0 | FatalError("Transition error"); |
721 | 0 | return MsgValueError; |
722 | 0 | } |
723 | 0 | if ((!(RecvOnStartRequest(channelStatus, responseHead, useResponseHead, requestHeaders, loadInfoForwarder, isFromCache, cacheEntryAvailable, cacheEntryId, cacheFetchCount, cacheExpirationTime, cachedCharset, securityInfoSerialization, selfAddr, peerAddr, redirectCount, cacheKey, altDataType, altDataLength, applyConversion, timing)))) { |
724 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
725 | 0 | // Error handled in mozilla::ipc::IPCResult |
726 | 0 | return MsgProcessingError; |
727 | 0 | } |
728 | 0 | |
729 | 0 | return MsgProcessed; |
730 | 0 | } |
731 | 0 | case PHttpChannel::Msg_FailedAsyncOpen__ID: |
732 | 0 | { |
733 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
734 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
735 | 0 | } |
736 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_FailedAsyncOpen", OTHER); |
737 | 0 |
|
738 | 0 | PickleIterator iter__(msg__); |
739 | 0 | nsresult status; |
740 | 0 |
|
741 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(status)))))) { |
742 | 0 | FatalError("Error deserializing 'nsresult'"); |
743 | 0 | return MsgValueError; |
744 | 0 | } |
745 | 0 | // Sentinel = 'status' |
746 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3714608576)))) { |
747 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
748 | 0 | return MsgValueError; |
749 | 0 | } |
750 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
751 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
752 | 0 | FatalError("Transition error"); |
753 | 0 | return MsgValueError; |
754 | 0 | } |
755 | 0 | if ((!(RecvFailedAsyncOpen(status)))) { |
756 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
757 | 0 | // Error handled in mozilla::ipc::IPCResult |
758 | 0 | return MsgProcessingError; |
759 | 0 | } |
760 | 0 | |
761 | 0 | return MsgProcessed; |
762 | 0 | } |
763 | 0 | case PHttpChannel::Msg_Redirect1Begin__ID: |
764 | 0 | { |
765 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
766 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
767 | 0 | } |
768 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect1Begin", OTHER); |
769 | 0 |
|
770 | 0 | PickleIterator iter__(msg__); |
771 | 0 | uint32_t registrarId; |
772 | 0 | URIParams newOriginalUri; |
773 | 0 | uint32_t newLoadFlags; |
774 | 0 | uint32_t redirectFlags; |
775 | 0 | ParentLoadInfoForwarderArgs loadInfoForwarder; |
776 | 0 | nsHttpResponseHead responseHead; |
777 | 0 | nsCString securityInfoSerialization; |
778 | 0 | uint64_t channelId; |
779 | 0 | NetAddr oldPeerAddr; |
780 | 0 |
|
781 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(registrarId)))))) { |
782 | 0 | FatalError("Error deserializing 'uint32_t'"); |
783 | 0 | return MsgValueError; |
784 | 0 | } |
785 | 0 | // Sentinel = 'registrarId' |
786 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3202787989)))) { |
787 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
788 | 0 | return MsgValueError; |
789 | 0 | } |
790 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(newOriginalUri)))))) { |
791 | 0 | FatalError("Error deserializing 'URIParams'"); |
792 | 0 | return MsgValueError; |
793 | 0 | } |
794 | 0 | // Sentinel = 'newOriginalUri' |
795 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 361019297)))) { |
796 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'"); |
797 | 0 | return MsgValueError; |
798 | 0 | } |
799 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(newLoadFlags)))))) { |
800 | 0 | FatalError("Error deserializing 'uint32_t'"); |
801 | 0 | return MsgValueError; |
802 | 0 | } |
803 | 0 | // Sentinel = 'newLoadFlags' |
804 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2873639103)))) { |
805 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
806 | 0 | return MsgValueError; |
807 | 0 | } |
808 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(redirectFlags)))))) { |
809 | 0 | FatalError("Error deserializing 'uint32_t'"); |
810 | 0 | return MsgValueError; |
811 | 0 | } |
812 | 0 | // Sentinel = 'redirectFlags' |
813 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 286770900)))) { |
814 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
815 | 0 | return MsgValueError; |
816 | 0 | } |
817 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(loadInfoForwarder)))))) { |
818 | 0 | FatalError("Error deserializing 'ParentLoadInfoForwarderArgs'"); |
819 | 0 | return MsgValueError; |
820 | 0 | } |
821 | 0 | // Sentinel = 'loadInfoForwarder' |
822 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2195128043)))) { |
823 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ParentLoadInfoForwarderArgs'"); |
824 | 0 | return MsgValueError; |
825 | 0 | } |
826 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(responseHead)))))) { |
827 | 0 | FatalError("Error deserializing 'nsHttpResponseHead'"); |
828 | 0 | return MsgValueError; |
829 | 0 | } |
830 | 0 | // Sentinel = 'responseHead' |
831 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3038698187)))) { |
832 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsHttpResponseHead'"); |
833 | 0 | return MsgValueError; |
834 | 0 | } |
835 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(securityInfoSerialization)))))) { |
836 | 0 | FatalError("Error deserializing 'nsCString'"); |
837 | 0 | return MsgValueError; |
838 | 0 | } |
839 | 0 | // Sentinel = 'securityInfoSerialization' |
840 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 985832975)))) { |
841 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
842 | 0 | return MsgValueError; |
843 | 0 | } |
844 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(channelId)))))) { |
845 | 0 | FatalError("Error deserializing 'uint64_t'"); |
846 | 0 | return MsgValueError; |
847 | 0 | } |
848 | 0 | // Sentinel = 'channelId' |
849 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 6854027)))) { |
850 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
851 | 0 | return MsgValueError; |
852 | 0 | } |
853 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(oldPeerAddr)))))) { |
854 | 0 | FatalError("Error deserializing 'NetAddr'"); |
855 | 0 | return MsgValueError; |
856 | 0 | } |
857 | 0 | // Sentinel = 'oldPeerAddr' |
858 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1696652009)))) { |
859 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'NetAddr'"); |
860 | 0 | return MsgValueError; |
861 | 0 | } |
862 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
863 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
864 | 0 | FatalError("Transition error"); |
865 | 0 | return MsgValueError; |
866 | 0 | } |
867 | 0 | if ((!(RecvRedirect1Begin(registrarId, newOriginalUri, newLoadFlags, redirectFlags, loadInfoForwarder, responseHead, securityInfoSerialization, channelId, oldPeerAddr)))) { |
868 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
869 | 0 | // Error handled in mozilla::ipc::IPCResult |
870 | 0 | return MsgProcessingError; |
871 | 0 | } |
872 | 0 | |
873 | 0 | return MsgProcessed; |
874 | 0 | } |
875 | 0 | case PHttpChannel::Msg_Redirect3Complete__ID: |
876 | 0 | { |
877 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
878 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
879 | 0 | } |
880 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_Redirect3Complete", OTHER); |
881 | 0 |
|
882 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
883 | 0 | FatalError("Transition error"); |
884 | 0 | return MsgValueError; |
885 | 0 | } |
886 | 0 | if ((!(RecvRedirect3Complete()))) { |
887 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
888 | 0 | // Error handled in mozilla::ipc::IPCResult |
889 | 0 | return MsgProcessingError; |
890 | 0 | } |
891 | 0 | |
892 | 0 | return MsgProcessed; |
893 | 0 | } |
894 | 0 | case PHttpChannel::Msg_AssociateApplicationCache__ID: |
895 | 0 | { |
896 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
897 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
898 | 0 | } |
899 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_AssociateApplicationCache", OTHER); |
900 | 0 |
|
901 | 0 | PickleIterator iter__(msg__); |
902 | 0 | nsCString groupID; |
903 | 0 | nsCString clientID; |
904 | 0 |
|
905 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(groupID)))))) { |
906 | 0 | FatalError("Error deserializing 'nsCString'"); |
907 | 0 | return MsgValueError; |
908 | 0 | } |
909 | 0 | // Sentinel = 'groupID' |
910 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2673822077)))) { |
911 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
912 | 0 | return MsgValueError; |
913 | 0 | } |
914 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(clientID)))))) { |
915 | 0 | FatalError("Error deserializing 'nsCString'"); |
916 | 0 | return MsgValueError; |
917 | 0 | } |
918 | 0 | // Sentinel = 'clientID' |
919 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3831418318)))) { |
920 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
921 | 0 | return MsgValueError; |
922 | 0 | } |
923 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
924 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
925 | 0 | FatalError("Transition error"); |
926 | 0 | return MsgValueError; |
927 | 0 | } |
928 | 0 | if ((!(RecvAssociateApplicationCache(groupID, clientID)))) { |
929 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
930 | 0 | // Error handled in mozilla::ipc::IPCResult |
931 | 0 | return MsgProcessingError; |
932 | 0 | } |
933 | 0 | |
934 | 0 | return MsgProcessed; |
935 | 0 | } |
936 | 0 | case PHttpChannel::Msg_ReportSecurityMessage__ID: |
937 | 0 | { |
938 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
939 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
940 | 0 | } |
941 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_ReportSecurityMessage", OTHER); |
942 | 0 |
|
943 | 0 | PickleIterator iter__(msg__); |
944 | 0 | nsString messageTag; |
945 | 0 | nsString messageCategory; |
946 | 0 |
|
947 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageTag)))))) { |
948 | 0 | FatalError("Error deserializing 'nsString'"); |
949 | 0 | return MsgValueError; |
950 | 0 | } |
951 | 0 | // Sentinel = 'messageTag' |
952 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1576364117)))) { |
953 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
954 | 0 | return MsgValueError; |
955 | 0 | } |
956 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageCategory)))))) { |
957 | 0 | FatalError("Error deserializing 'nsString'"); |
958 | 0 | return MsgValueError; |
959 | 0 | } |
960 | 0 | // Sentinel = 'messageCategory' |
961 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3375428022)))) { |
962 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
963 | 0 | return MsgValueError; |
964 | 0 | } |
965 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
966 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
967 | 0 | FatalError("Transition error"); |
968 | 0 | return MsgValueError; |
969 | 0 | } |
970 | 0 | if ((!(RecvReportSecurityMessage(messageTag, messageCategory)))) { |
971 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
972 | 0 | // Error handled in mozilla::ipc::IPCResult |
973 | 0 | return MsgProcessingError; |
974 | 0 | } |
975 | 0 | |
976 | 0 | return MsgProcessed; |
977 | 0 | } |
978 | 0 | case PHttpChannel::Msg_CancelRedirected__ID: |
979 | 0 | { |
980 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
981 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
982 | 0 | } |
983 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_CancelRedirected", OTHER); |
984 | 0 |
|
985 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
986 | 0 | FatalError("Transition error"); |
987 | 0 | return MsgValueError; |
988 | 0 | } |
989 | 0 | if ((!(RecvCancelRedirected()))) { |
990 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
991 | 0 | // Error handled in mozilla::ipc::IPCResult |
992 | 0 | return MsgProcessingError; |
993 | 0 | } |
994 | 0 | |
995 | 0 | return MsgProcessed; |
996 | 0 | } |
997 | 0 | case PHttpChannel::Msg_DeleteSelf__ID: |
998 | 0 | { |
999 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1000 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1001 | 0 | } |
1002 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_DeleteSelf", OTHER); |
1003 | 0 |
|
1004 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1005 | 0 | FatalError("Transition error"); |
1006 | 0 | return MsgValueError; |
1007 | 0 | } |
1008 | 0 | if ((!(RecvDeleteSelf()))) { |
1009 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1010 | 0 | // Error handled in mozilla::ipc::IPCResult |
1011 | 0 | return MsgProcessingError; |
1012 | 0 | } |
1013 | 0 | |
1014 | 0 | return MsgProcessed; |
1015 | 0 | } |
1016 | 0 | case PHttpChannel::Msg_IssueDeprecationWarning__ID: |
1017 | 0 | { |
1018 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1019 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1020 | 0 | } |
1021 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_IssueDeprecationWarning", OTHER); |
1022 | 0 |
|
1023 | 0 | PickleIterator iter__(msg__); |
1024 | 0 | uint32_t warning; |
1025 | 0 | bool asError; |
1026 | 0 |
|
1027 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(warning)))))) { |
1028 | 0 | FatalError("Error deserializing 'uint32_t'"); |
1029 | 0 | return MsgValueError; |
1030 | 0 | } |
1031 | 0 | // Sentinel = 'warning' |
1032 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3208968083)))) { |
1033 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
1034 | 0 | return MsgValueError; |
1035 | 0 | } |
1036 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(asError)))))) { |
1037 | 0 | FatalError("Error deserializing 'bool'"); |
1038 | 0 | return MsgValueError; |
1039 | 0 | } |
1040 | 0 | // Sentinel = 'asError' |
1041 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4187201829)))) { |
1042 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1043 | 0 | return MsgValueError; |
1044 | 0 | } |
1045 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1046 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1047 | 0 | FatalError("Transition error"); |
1048 | 0 | return MsgValueError; |
1049 | 0 | } |
1050 | 0 | if ((!(RecvIssueDeprecationWarning(warning, asError)))) { |
1051 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1052 | 0 | // Error handled in mozilla::ipc::IPCResult |
1053 | 0 | return MsgProcessingError; |
1054 | 0 | } |
1055 | 0 | |
1056 | 0 | return MsgProcessed; |
1057 | 0 | } |
1058 | 0 | case PHttpChannel::Msg_LogBlockedCORSRequest__ID: |
1059 | 0 | { |
1060 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1061 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1062 | 0 | } |
1063 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_LogBlockedCORSRequest", OTHER); |
1064 | 0 |
|
1065 | 0 | PickleIterator iter__(msg__); |
1066 | 0 | nsString message; |
1067 | 0 | nsCString category; |
1068 | 0 |
|
1069 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) { |
1070 | 0 | FatalError("Error deserializing 'nsString'"); |
1071 | 0 | return MsgValueError; |
1072 | 0 | } |
1073 | 0 | // Sentinel = 'message' |
1074 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) { |
1075 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
1076 | 0 | return MsgValueError; |
1077 | 0 | } |
1078 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(category)))))) { |
1079 | 0 | FatalError("Error deserializing 'nsCString'"); |
1080 | 0 | return MsgValueError; |
1081 | 0 | } |
1082 | 0 | // Sentinel = 'category' |
1083 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1962932896)))) { |
1084 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
1085 | 0 | return MsgValueError; |
1086 | 0 | } |
1087 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1088 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1089 | 0 | FatalError("Transition error"); |
1090 | 0 | return MsgValueError; |
1091 | 0 | } |
1092 | 0 | if ((!(RecvLogBlockedCORSRequest(message, category)))) { |
1093 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1094 | 0 | // Error handled in mozilla::ipc::IPCResult |
1095 | 0 | return MsgProcessingError; |
1096 | 0 | } |
1097 | 0 | |
1098 | 0 | return MsgProcessed; |
1099 | 0 | } |
1100 | 0 | case PHttpChannel::Msg_AttachStreamFilter__ID: |
1101 | 0 | { |
1102 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1103 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1104 | 0 | } |
1105 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_AttachStreamFilter", OTHER); |
1106 | 0 |
|
1107 | 0 | PickleIterator iter__(msg__); |
1108 | 0 | Endpoint<mozilla::extensions::PStreamFilterParent> aEndpoint; |
1109 | 0 |
|
1110 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEndpoint)))))) { |
1111 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::extensions::PStreamFilterParent>'"); |
1112 | 0 | return MsgValueError; |
1113 | 0 | } |
1114 | 0 | // Sentinel = 'aEndpoint' |
1115 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2457438235)))) { |
1116 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::extensions::PStreamFilterParent>'"); |
1117 | 0 | return MsgValueError; |
1118 | 0 | } |
1119 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1120 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1121 | 0 | FatalError("Transition error"); |
1122 | 0 | return MsgValueError; |
1123 | 0 | } |
1124 | 0 | if ((!(RecvAttachStreamFilter(std::move(aEndpoint))))) { |
1125 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1126 | 0 | // Error handled in mozilla::ipc::IPCResult |
1127 | 0 | return MsgProcessingError; |
1128 | 0 | } |
1129 | 0 | |
1130 | 0 | return MsgProcessed; |
1131 | 0 | } |
1132 | 0 | case PHttpChannel::Msg_CancelDiversion__ID: |
1133 | 0 | { |
1134 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1135 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1136 | 0 | } |
1137 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_CancelDiversion", OTHER); |
1138 | 0 |
|
1139 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1140 | 0 | FatalError("Transition error"); |
1141 | 0 | return MsgValueError; |
1142 | 0 | } |
1143 | 0 | if ((!(RecvCancelDiversion()))) { |
1144 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1145 | 0 | // Error handled in mozilla::ipc::IPCResult |
1146 | 0 | return MsgProcessingError; |
1147 | 0 | } |
1148 | 0 | |
1149 | 0 | return MsgProcessed; |
1150 | 0 | } |
1151 | 0 | case PHttpChannel::Msg_FinishInterceptedRedirect__ID: |
1152 | 0 | { |
1153 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1154 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1155 | 0 | } |
1156 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_FinishInterceptedRedirect", OTHER); |
1157 | 0 |
|
1158 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1159 | 0 | FatalError("Transition error"); |
1160 | 0 | return MsgValueError; |
1161 | 0 | } |
1162 | 0 | if ((!(RecvFinishInterceptedRedirect()))) { |
1163 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1164 | 0 | // Error handled in mozilla::ipc::IPCResult |
1165 | 0 | return MsgProcessingError; |
1166 | 0 | } |
1167 | 0 | |
1168 | 0 | return MsgProcessed; |
1169 | 0 | } |
1170 | 0 | case PHttpChannel::Msg_SetPriority__ID: |
1171 | 0 | { |
1172 | 0 | if (mozilla::ipc::LoggingEnabledFor("PHttpChannelChild")) { |
1173 | 0 | mozilla::ipc::LogMessageForProtocol("PHttpChannelChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1174 | 0 | } |
1175 | 0 | AUTO_PROFILER_LABEL("PHttpChannel::Msg_SetPriority", OTHER); |
1176 | 0 |
|
1177 | 0 | PickleIterator iter__(msg__); |
1178 | 0 | int16_t priority; |
1179 | 0 |
|
1180 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(priority)))))) { |
1181 | 0 | FatalError("Error deserializing 'int16_t'"); |
1182 | 0 | return MsgValueError; |
1183 | 0 | } |
1184 | 0 | // Sentinel = 'priority' |
1185 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) { |
1186 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'"); |
1187 | 0 | return MsgValueError; |
1188 | 0 | } |
1189 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1190 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1191 | 0 | FatalError("Transition error"); |
1192 | 0 | return MsgValueError; |
1193 | 0 | } |
1194 | 0 | if ((!(RecvSetPriority(priority)))) { |
1195 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1196 | 0 | // Error handled in mozilla::ipc::IPCResult |
1197 | 0 | return MsgProcessingError; |
1198 | 0 | } |
1199 | 0 | |
1200 | 0 | return MsgProcessed; |
1201 | 0 | } |
1202 | 0 | default: |
1203 | 0 | { |
1204 | 0 | return MsgNotKnown; |
1205 | 0 | } |
1206 | 0 | } |
1207 | 0 | } |
1208 | | |
1209 | | auto PHttpChannelChild::OnMessageReceived( |
1210 | | const Message& msg__, |
1211 | | Message*& reply__) -> PHttpChannelChild::Result |
1212 | 0 | { |
1213 | 0 | return MsgNotKnown; |
1214 | 0 | } |
1215 | | |
1216 | | auto PHttpChannelChild::OnCallReceived( |
1217 | | const Message& msg__, |
1218 | | Message*& reply__) -> PHttpChannelChild::Result |
1219 | 0 | { |
1220 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
1221 | 0 | return MsgNotKnown; |
1222 | 0 | } |
1223 | | |
1224 | | auto PHttpChannelChild::GetProtocolTypeId() -> int32_t |
1225 | 0 | { |
1226 | 0 | return PHttpChannelMsgStart; |
1227 | 0 | } |
1228 | | |
1229 | | auto PHttpChannelChild::DestroySubtree(ActorDestroyReason why) -> void |
1230 | 0 | { |
1231 | 0 | // Unregister from our manager. |
1232 | 0 | Unregister(Id()); |
1233 | 0 |
|
1234 | 0 | // Reject owning pending responses. |
1235 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
1236 | 0 |
|
1237 | 0 | // Finally, destroy "us". |
1238 | 0 | ActorDestroy(why); |
1239 | 0 | } |
1240 | | |
1241 | | auto PHttpChannelChild::DeallocSubtree() -> void |
1242 | 0 | { |
1243 | 0 | } |
1244 | | |
1245 | | |
1246 | | |
1247 | | } // namespace net |
1248 | | } // namespace mozilla |
1249 | | namespace mozilla { |
1250 | | namespace ipc { |
1251 | | auto IPDLParamTraits<mozilla::net::PHttpChannelChild>::Write( |
1252 | | IPC::Message* aMsg, |
1253 | | mozilla::ipc::IProtocol* aActor, |
1254 | | const paramType& aVar) -> void |
1255 | 0 | { |
1256 | 0 | int32_t id; |
1257 | 0 | if ((!(aVar))) { |
1258 | 0 | id = 0; |
1259 | 0 | } |
1260 | 0 | else { |
1261 | 0 | id = (aVar)->Id(); |
1262 | 0 | if ((1) == (id)) { |
1263 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
1264 | 0 | } |
1265 | 0 | } |
1266 | 0 | WriteIPDLParam(aMsg, aActor, id); |
1267 | 0 | } |
1268 | | |
1269 | | auto IPDLParamTraits<mozilla::net::PHttpChannelChild>::Read( |
1270 | | const IPC::Message* aMsg, |
1271 | | PickleIterator* aIter, |
1272 | | mozilla::ipc::IProtocol* aActor, |
1273 | | paramType* aVar) -> bool |
1274 | 0 | { |
1275 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PHttpChannel", PHttpChannelMsgStart); |
1276 | 0 | if ((actor).isNothing()) { |
1277 | 0 | return false; |
1278 | 0 | } |
1279 | 0 | |
1280 | 0 | (*(aVar)) = static_cast<mozilla::net::PHttpChannelChild*>((actor).value()); |
1281 | 0 | return true; |
1282 | 0 | } |
1283 | | |
1284 | | } // namespace ipc |
1285 | | } // namespace mozilla |