/work/obj-fuzz/ipc/ipdl/PContentChild.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/dom/PContentChild.h" |
8 | | #include "ipc/IPCMessageUtils.h" |
9 | | #include "mozilla/AlertNotificationIPCSerializer.h" |
10 | | #include "mozilla/chrome/RegistryMessageUtils.h" |
11 | | #include "mozilla/dom/MessagePort.h" |
12 | | #include "mozilla/dom/PermissionMessageUtils.h" |
13 | | #include "mozilla/dom/ipc/StructuredCloneData.h" |
14 | | #include "mozilla/ipc/IPCStreamUtils.h" |
15 | | #include "mozilla/layers/CompositorTypes.h" |
16 | | #include "mozilla/net/NeckoMessageUtils.h" |
17 | | #include "mozilla/widget/WidgetMessageUtils.h" |
18 | | #include "nsGeoPositionIPCSerialiser.h" |
19 | | |
20 | | #include "mozilla/ipc/PBackgroundChild.h" |
21 | | #include "mozilla/dom/PBrowserChild.h" |
22 | | #include "mozilla/dom/PClientOpenWindowOpChild.h" |
23 | | #include "mozilla/layers/PCompositorManagerChild.h" |
24 | | #include "mozilla/dom/PContentBridgeChild.h" |
25 | | #include "mozilla/dom/PContentPermissionRequestChild.h" |
26 | | #include "mozilla/dom/PCycleCollectWithLogsChild.h" |
27 | | #include "mozilla/psm/PPSMContentDownloaderChild.h" |
28 | | #include "mozilla/dom/PExternalHelperAppChild.h" |
29 | | #include "mozilla/dom/PHandlerServiceChild.h" |
30 | | #include "mozilla/ipc/PFileDescriptorSetChild.h" |
31 | | #include "mozilla/hal_sandbox/PHalChild.h" |
32 | | #include "mozilla/devtools/PHeapSnapshotTempFileHelperChild.h" |
33 | | #include "mozilla/PProcessHangMonitorChild.h" |
34 | | #include "mozilla/layers/PImageBridgeChild.h" |
35 | | #include "mozilla/ipc/PIPCBlobInputStreamChild.h" |
36 | | #include "mozilla/dom/PLoginReputationChild.h" |
37 | | #include "mozilla/media/PMediaChild.h" |
38 | | #include "mozilla/net/PNeckoChild.h" |
39 | | #include "mozilla/extensions/PStreamFilterChild.h" |
40 | | #include "mozilla/gmp/PGMPContentChild.h" |
41 | | #include "mozilla/gmp/PGMPServiceChild.h" |
42 | | #include "mozilla/plugins/PPluginModuleChild.h" |
43 | | #include "mozilla/gmp/PGMPChild.h" |
44 | | #include "mozilla/embedding/PPrintingChild.h" |
45 | | #include "mozilla/ipc/PChildToParentStreamChild.h" |
46 | | #include "mozilla/ipc/PParentToChildStreamChild.h" |
47 | | #include "mozilla/docshell/POfflineCacheUpdateChild.h" |
48 | | #include "mozilla/layout/PRenderFrameChild.h" |
49 | | #include "mozilla/dom/PSpeechSynthesisChild.h" |
50 | | #include "mozilla/ipc/PTestShellChild.h" |
51 | | #include "mozilla/jsipc/PJavaScriptChild.h" |
52 | | #include "mozilla/PRemoteSpellcheckEngineChild.h" |
53 | | #include "mozilla/PWebBrowserPersistDocumentChild.h" |
54 | | #include "mozilla/dom/PWebrtcGlobalChild.h" |
55 | | #include "mozilla/dom/PPresentationChild.h" |
56 | | #include "mozilla/dom/PURLClassifierChild.h" |
57 | | #include "mozilla/dom/PURLClassifierLocalChild.h" |
58 | | #include "mozilla/gfx/PVRManagerChild.h" |
59 | | #include "mozilla/dom/PVideoDecoderManagerChild.h" |
60 | | #include "mozilla/PProfilerChild.h" |
61 | | #include "mozilla/loader/PScriptCacheChild.h" |
62 | | |
63 | | #include "nsIFile.h" |
64 | | #include "GeckoProfiler.h" |
65 | | |
66 | | namespace mozilla { |
67 | | namespace dom { |
68 | | |
69 | | |
70 | | auto PContentChild::RecvPBrowserConstructor( |
71 | | PBrowserChild* actor, |
72 | | const TabId& tabId, |
73 | | const TabId& sameTabGroupAs, |
74 | | const IPCTabContext& context, |
75 | | const uint32_t& chromeFlags, |
76 | | const ContentParentId& cpId, |
77 | | const bool& isForBrowser) -> mozilla::ipc::IPCResult |
78 | 0 | { |
79 | 0 | return IPC_OK(); |
80 | 0 | } |
81 | | |
82 | | auto PContentChild::RecvPFileDescriptorSetConstructor( |
83 | | PFileDescriptorSetChild* actor, |
84 | | const FileDescriptor& fd) -> mozilla::ipc::IPCResult |
85 | 0 | { |
86 | 0 | return IPC_OK(); |
87 | 0 | } |
88 | | |
89 | | auto PContentChild::RecvPWebBrowserPersistDocumentConstructor( |
90 | | PWebBrowserPersistDocumentChild* actor, |
91 | | PBrowserChild* aBrowser, |
92 | | const uint64_t& aOuterWindowID) -> mozilla::ipc::IPCResult |
93 | 0 | { |
94 | 0 | return IPC_OK(); |
95 | 0 | } |
96 | | |
97 | | auto PContentChild::RecvPCycleCollectWithLogsConstructor( |
98 | | PCycleCollectWithLogsChild* actor, |
99 | | const bool& dumpAllTraces, |
100 | | const FileDescriptor& gcLog, |
101 | | const FileDescriptor& ccLog) -> mozilla::ipc::IPCResult |
102 | 0 | { |
103 | 0 | return IPC_OK(); |
104 | 0 | } |
105 | | |
106 | | auto PContentChild::RecvPTestShellConstructor(PTestShellChild* actor) -> mozilla::ipc::IPCResult |
107 | 0 | { |
108 | 0 | return IPC_OK(); |
109 | 0 | } |
110 | | |
111 | | auto PContentChild::RecvPScriptCacheConstructor( |
112 | | PScriptCacheChild* actor, |
113 | | const FileDescOrError& cacheFile, |
114 | | const bool& wantCacheData) -> mozilla::ipc::IPCResult |
115 | 0 | { |
116 | 0 | return IPC_OK(); |
117 | 0 | } |
118 | | |
119 | | auto PContentChild::RecvPParentToChildStreamConstructor(PParentToChildStreamChild* actor) -> mozilla::ipc::IPCResult |
120 | 0 | { |
121 | 0 | return IPC_OK(); |
122 | 0 | } |
123 | | |
124 | | auto PContentChild::RecvPIPCBlobInputStreamConstructor( |
125 | | PIPCBlobInputStreamChild* actor, |
126 | | const nsID& aID, |
127 | | const uint64_t& aSize) -> mozilla::ipc::IPCResult |
128 | 0 | { |
129 | 0 | return IPC_OK(); |
130 | 0 | } |
131 | | |
132 | | auto PContentChild::RecvPClientOpenWindowOpConstructor( |
133 | | PClientOpenWindowOpChild* actor, |
134 | | const ClientOpenWindowArgs& aArgs) -> mozilla::ipc::IPCResult |
135 | 0 | { |
136 | 0 | return IPC_OK(); |
137 | 0 | } |
138 | | |
139 | | auto PContentChild::ActorDestroy(ActorDestroyReason aWhy) -> void |
140 | 0 | { |
141 | 0 | } |
142 | | |
143 | | auto PContentChild::ProcessingError( |
144 | | Result aCode, |
145 | | const char* aReason) -> void |
146 | 0 | { |
147 | 0 | } |
148 | | |
149 | | auto PContentChild::ShouldContinueFromReplyTimeout() -> bool |
150 | 0 | { |
151 | 0 | return true; |
152 | 0 | } |
153 | | |
154 | | auto PContentChild::EnteredCxxStack() -> void |
155 | 0 | { |
156 | 0 | } |
157 | | |
158 | | auto PContentChild::ExitedCxxStack() -> void |
159 | 0 | { |
160 | 0 | } |
161 | | |
162 | | auto PContentChild::EnteredCall() -> void |
163 | 0 | { |
164 | 0 | } |
165 | | |
166 | | auto PContentChild::ExitedCall() -> void |
167 | 0 | { |
168 | 0 | } |
169 | | |
170 | | MOZ_IMPLICIT PContentChild::PContentChild() : |
171 | | mozilla::ipc::IToplevelProtocol("PContentChild", PContentMsgStart, mozilla::ipc::ChildSide), |
172 | | mLivenessState(mozilla::ipc::LivenessState::Start) |
173 | 0 | { |
174 | 0 | MOZ_COUNT_CTOR(PContentChild); |
175 | 0 | } |
176 | | |
177 | | PContentChild::~PContentChild() |
178 | 0 | { |
179 | 0 | MOZ_COUNT_DTOR(PContentChild); |
180 | 0 | } |
181 | | |
182 | | auto PContentChild::ManagedPBrowserChild(nsTArray<PBrowserChild*>& aArr) const -> void |
183 | 0 | { |
184 | 0 | (mManagedPBrowserChild).ToArray(aArr); |
185 | 0 | } |
186 | | |
187 | | auto PContentChild::ManagedPBrowserChild() const -> const ManagedContainer<PBrowserChild>& |
188 | 0 | { |
189 | 0 | return mManagedPBrowserChild; |
190 | 0 | } |
191 | | |
192 | | auto PContentChild::ManagedPClientOpenWindowOpChild(nsTArray<PClientOpenWindowOpChild*>& aArr) const -> void |
193 | 0 | { |
194 | 0 | (mManagedPClientOpenWindowOpChild).ToArray(aArr); |
195 | 0 | } |
196 | | |
197 | | auto PContentChild::ManagedPClientOpenWindowOpChild() const -> const ManagedContainer<PClientOpenWindowOpChild>& |
198 | 0 | { |
199 | 0 | return mManagedPClientOpenWindowOpChild; |
200 | 0 | } |
201 | | |
202 | | auto PContentChild::ManagedPContentPermissionRequestChild(nsTArray<PContentPermissionRequestChild*>& aArr) const -> void |
203 | 0 | { |
204 | 0 | (mManagedPContentPermissionRequestChild).ToArray(aArr); |
205 | 0 | } |
206 | | |
207 | | auto PContentChild::ManagedPContentPermissionRequestChild() const -> const ManagedContainer<PContentPermissionRequestChild>& |
208 | 0 | { |
209 | 0 | return mManagedPContentPermissionRequestChild; |
210 | 0 | } |
211 | | |
212 | | auto PContentChild::ManagedPCycleCollectWithLogsChild(nsTArray<PCycleCollectWithLogsChild*>& aArr) const -> void |
213 | 0 | { |
214 | 0 | (mManagedPCycleCollectWithLogsChild).ToArray(aArr); |
215 | 0 | } |
216 | | |
217 | | auto PContentChild::ManagedPCycleCollectWithLogsChild() const -> const ManagedContainer<PCycleCollectWithLogsChild>& |
218 | 0 | { |
219 | 0 | return mManagedPCycleCollectWithLogsChild; |
220 | 0 | } |
221 | | |
222 | | auto PContentChild::ManagedPPSMContentDownloaderChild(nsTArray<PPSMContentDownloaderChild*>& aArr) const -> void |
223 | 0 | { |
224 | 0 | (mManagedPPSMContentDownloaderChild).ToArray(aArr); |
225 | 0 | } |
226 | | |
227 | | auto PContentChild::ManagedPPSMContentDownloaderChild() const -> const ManagedContainer<PPSMContentDownloaderChild>& |
228 | 0 | { |
229 | 0 | return mManagedPPSMContentDownloaderChild; |
230 | 0 | } |
231 | | |
232 | | auto PContentChild::ManagedPExternalHelperAppChild(nsTArray<PExternalHelperAppChild*>& aArr) const -> void |
233 | 0 | { |
234 | 0 | (mManagedPExternalHelperAppChild).ToArray(aArr); |
235 | 0 | } |
236 | | |
237 | | auto PContentChild::ManagedPExternalHelperAppChild() const -> const ManagedContainer<PExternalHelperAppChild>& |
238 | 0 | { |
239 | 0 | return mManagedPExternalHelperAppChild; |
240 | 0 | } |
241 | | |
242 | | auto PContentChild::ManagedPFileDescriptorSetChild(nsTArray<PFileDescriptorSetChild*>& aArr) const -> void |
243 | 0 | { |
244 | 0 | (mManagedPFileDescriptorSetChild).ToArray(aArr); |
245 | 0 | } |
246 | | |
247 | | auto PContentChild::ManagedPFileDescriptorSetChild() const -> const ManagedContainer<PFileDescriptorSetChild>& |
248 | 0 | { |
249 | 0 | return mManagedPFileDescriptorSetChild; |
250 | 0 | } |
251 | | |
252 | | auto PContentChild::ManagedPHalChild(nsTArray<PHalChild*>& aArr) const -> void |
253 | 0 | { |
254 | 0 | (mManagedPHalChild).ToArray(aArr); |
255 | 0 | } |
256 | | |
257 | | auto PContentChild::ManagedPHalChild() const -> const ManagedContainer<PHalChild>& |
258 | 0 | { |
259 | 0 | return mManagedPHalChild; |
260 | 0 | } |
261 | | |
262 | | auto PContentChild::ManagedPHandlerServiceChild(nsTArray<PHandlerServiceChild*>& aArr) const -> void |
263 | 0 | { |
264 | 0 | (mManagedPHandlerServiceChild).ToArray(aArr); |
265 | 0 | } |
266 | | |
267 | | auto PContentChild::ManagedPHandlerServiceChild() const -> const ManagedContainer<PHandlerServiceChild>& |
268 | 0 | { |
269 | 0 | return mManagedPHandlerServiceChild; |
270 | 0 | } |
271 | | |
272 | | auto PContentChild::ManagedPHeapSnapshotTempFileHelperChild(nsTArray<PHeapSnapshotTempFileHelperChild*>& aArr) const -> void |
273 | 0 | { |
274 | 0 | (mManagedPHeapSnapshotTempFileHelperChild).ToArray(aArr); |
275 | 0 | } |
276 | | |
277 | | auto PContentChild::ManagedPHeapSnapshotTempFileHelperChild() const -> const ManagedContainer<PHeapSnapshotTempFileHelperChild>& |
278 | 0 | { |
279 | 0 | return mManagedPHeapSnapshotTempFileHelperChild; |
280 | 0 | } |
281 | | |
282 | | auto PContentChild::ManagedPIPCBlobInputStreamChild(nsTArray<PIPCBlobInputStreamChild*>& aArr) const -> void |
283 | 0 | { |
284 | 0 | (mManagedPIPCBlobInputStreamChild).ToArray(aArr); |
285 | 0 | } |
286 | | |
287 | | auto PContentChild::ManagedPIPCBlobInputStreamChild() const -> const ManagedContainer<PIPCBlobInputStreamChild>& |
288 | 0 | { |
289 | 0 | return mManagedPIPCBlobInputStreamChild; |
290 | 0 | } |
291 | | |
292 | | auto PContentChild::ManagedPMediaChild(nsTArray<PMediaChild*>& aArr) const -> void |
293 | 0 | { |
294 | 0 | (mManagedPMediaChild).ToArray(aArr); |
295 | 0 | } |
296 | | |
297 | | auto PContentChild::ManagedPMediaChild() const -> const ManagedContainer<PMediaChild>& |
298 | 0 | { |
299 | 0 | return mManagedPMediaChild; |
300 | 0 | } |
301 | | |
302 | | auto PContentChild::ManagedPNeckoChild(nsTArray<PNeckoChild*>& aArr) const -> void |
303 | 0 | { |
304 | 0 | (mManagedPNeckoChild).ToArray(aArr); |
305 | 0 | } |
306 | | |
307 | | auto PContentChild::ManagedPNeckoChild() const -> const ManagedContainer<PNeckoChild>& |
308 | 0 | { |
309 | 0 | return mManagedPNeckoChild; |
310 | 0 | } |
311 | | |
312 | | auto PContentChild::ManagedPOfflineCacheUpdateChild(nsTArray<POfflineCacheUpdateChild*>& aArr) const -> void |
313 | 0 | { |
314 | 0 | (mManagedPOfflineCacheUpdateChild).ToArray(aArr); |
315 | 0 | } |
316 | | |
317 | | auto PContentChild::ManagedPOfflineCacheUpdateChild() const -> const ManagedContainer<POfflineCacheUpdateChild>& |
318 | 0 | { |
319 | 0 | return mManagedPOfflineCacheUpdateChild; |
320 | 0 | } |
321 | | |
322 | | auto PContentChild::ManagedPPrintingChild(nsTArray<PPrintingChild*>& aArr) const -> void |
323 | 0 | { |
324 | 0 | (mManagedPPrintingChild).ToArray(aArr); |
325 | 0 | } |
326 | | |
327 | | auto PContentChild::ManagedPPrintingChild() const -> const ManagedContainer<PPrintingChild>& |
328 | 0 | { |
329 | 0 | return mManagedPPrintingChild; |
330 | 0 | } |
331 | | |
332 | | auto PContentChild::ManagedPChildToParentStreamChild(nsTArray<PChildToParentStreamChild*>& aArr) const -> void |
333 | 0 | { |
334 | 0 | (mManagedPChildToParentStreamChild).ToArray(aArr); |
335 | 0 | } |
336 | | |
337 | | auto PContentChild::ManagedPChildToParentStreamChild() const -> const ManagedContainer<PChildToParentStreamChild>& |
338 | 0 | { |
339 | 0 | return mManagedPChildToParentStreamChild; |
340 | 0 | } |
341 | | |
342 | | auto PContentChild::ManagedPParentToChildStreamChild(nsTArray<PParentToChildStreamChild*>& aArr) const -> void |
343 | 0 | { |
344 | 0 | (mManagedPParentToChildStreamChild).ToArray(aArr); |
345 | 0 | } |
346 | | |
347 | | auto PContentChild::ManagedPParentToChildStreamChild() const -> const ManagedContainer<PParentToChildStreamChild>& |
348 | 0 | { |
349 | 0 | return mManagedPParentToChildStreamChild; |
350 | 0 | } |
351 | | |
352 | | auto PContentChild::ManagedPSpeechSynthesisChild(nsTArray<PSpeechSynthesisChild*>& aArr) const -> void |
353 | 0 | { |
354 | 0 | (mManagedPSpeechSynthesisChild).ToArray(aArr); |
355 | 0 | } |
356 | | |
357 | | auto PContentChild::ManagedPSpeechSynthesisChild() const -> const ManagedContainer<PSpeechSynthesisChild>& |
358 | 0 | { |
359 | 0 | return mManagedPSpeechSynthesisChild; |
360 | 0 | } |
361 | | |
362 | | auto PContentChild::ManagedPTestShellChild(nsTArray<PTestShellChild*>& aArr) const -> void |
363 | 0 | { |
364 | 0 | (mManagedPTestShellChild).ToArray(aArr); |
365 | 0 | } |
366 | | |
367 | | auto PContentChild::ManagedPTestShellChild() const -> const ManagedContainer<PTestShellChild>& |
368 | 0 | { |
369 | 0 | return mManagedPTestShellChild; |
370 | 0 | } |
371 | | |
372 | | auto PContentChild::ManagedPJavaScriptChild(nsTArray<PJavaScriptChild*>& aArr) const -> void |
373 | 0 | { |
374 | 0 | (mManagedPJavaScriptChild).ToArray(aArr); |
375 | 0 | } |
376 | | |
377 | | auto PContentChild::ManagedPJavaScriptChild() const -> const ManagedContainer<PJavaScriptChild>& |
378 | 0 | { |
379 | 0 | return mManagedPJavaScriptChild; |
380 | 0 | } |
381 | | |
382 | | auto PContentChild::ManagedPRemoteSpellcheckEngineChild(nsTArray<PRemoteSpellcheckEngineChild*>& aArr) const -> void |
383 | 0 | { |
384 | 0 | (mManagedPRemoteSpellcheckEngineChild).ToArray(aArr); |
385 | 0 | } |
386 | | |
387 | | auto PContentChild::ManagedPRemoteSpellcheckEngineChild() const -> const ManagedContainer<PRemoteSpellcheckEngineChild>& |
388 | 0 | { |
389 | 0 | return mManagedPRemoteSpellcheckEngineChild; |
390 | 0 | } |
391 | | |
392 | | auto PContentChild::ManagedPWebBrowserPersistDocumentChild(nsTArray<PWebBrowserPersistDocumentChild*>& aArr) const -> void |
393 | 0 | { |
394 | 0 | (mManagedPWebBrowserPersistDocumentChild).ToArray(aArr); |
395 | 0 | } |
396 | | |
397 | | auto PContentChild::ManagedPWebBrowserPersistDocumentChild() const -> const ManagedContainer<PWebBrowserPersistDocumentChild>& |
398 | 0 | { |
399 | 0 | return mManagedPWebBrowserPersistDocumentChild; |
400 | 0 | } |
401 | | |
402 | | auto PContentChild::ManagedPWebrtcGlobalChild(nsTArray<PWebrtcGlobalChild*>& aArr) const -> void |
403 | 0 | { |
404 | 0 | (mManagedPWebrtcGlobalChild).ToArray(aArr); |
405 | 0 | } |
406 | | |
407 | | auto PContentChild::ManagedPWebrtcGlobalChild() const -> const ManagedContainer<PWebrtcGlobalChild>& |
408 | 0 | { |
409 | 0 | return mManagedPWebrtcGlobalChild; |
410 | 0 | } |
411 | | |
412 | | auto PContentChild::ManagedPPresentationChild(nsTArray<PPresentationChild*>& aArr) const -> void |
413 | 0 | { |
414 | 0 | (mManagedPPresentationChild).ToArray(aArr); |
415 | 0 | } |
416 | | |
417 | | auto PContentChild::ManagedPPresentationChild() const -> const ManagedContainer<PPresentationChild>& |
418 | 0 | { |
419 | 0 | return mManagedPPresentationChild; |
420 | 0 | } |
421 | | |
422 | | auto PContentChild::ManagedPURLClassifierChild(nsTArray<PURLClassifierChild*>& aArr) const -> void |
423 | 0 | { |
424 | 0 | (mManagedPURLClassifierChild).ToArray(aArr); |
425 | 0 | } |
426 | | |
427 | | auto PContentChild::ManagedPURLClassifierChild() const -> const ManagedContainer<PURLClassifierChild>& |
428 | 0 | { |
429 | 0 | return mManagedPURLClassifierChild; |
430 | 0 | } |
431 | | |
432 | | auto PContentChild::ManagedPURLClassifierLocalChild(nsTArray<PURLClassifierLocalChild*>& aArr) const -> void |
433 | 0 | { |
434 | 0 | (mManagedPURLClassifierLocalChild).ToArray(aArr); |
435 | 0 | } |
436 | | |
437 | | auto PContentChild::ManagedPURLClassifierLocalChild() const -> const ManagedContainer<PURLClassifierLocalChild>& |
438 | 0 | { |
439 | 0 | return mManagedPURLClassifierLocalChild; |
440 | 0 | } |
441 | | |
442 | | auto PContentChild::ManagedPScriptCacheChild(nsTArray<PScriptCacheChild*>& aArr) const -> void |
443 | 0 | { |
444 | 0 | (mManagedPScriptCacheChild).ToArray(aArr); |
445 | 0 | } |
446 | | |
447 | | auto PContentChild::ManagedPScriptCacheChild() const -> const ManagedContainer<PScriptCacheChild>& |
448 | 0 | { |
449 | 0 | return mManagedPScriptCacheChild; |
450 | 0 | } |
451 | | |
452 | | auto PContentChild::ManagedPLoginReputationChild(nsTArray<PLoginReputationChild*>& aArr) const -> void |
453 | 0 | { |
454 | 0 | (mManagedPLoginReputationChild).ToArray(aArr); |
455 | 0 | } |
456 | | |
457 | | auto PContentChild::ManagedPLoginReputationChild() const -> const ManagedContainer<PLoginReputationChild>& |
458 | 0 | { |
459 | 0 | return mManagedPLoginReputationChild; |
460 | 0 | } |
461 | | |
462 | | auto PContentChild::SendPBrowserConstructor( |
463 | | const TabId& tabId, |
464 | | const TabId& sameTabGroupAs, |
465 | | const IPCTabContext& context, |
466 | | const uint32_t& chromeFlags, |
467 | | const ContentParentId& cpId, |
468 | | const bool& isForBrowser) -> PBrowserChild* |
469 | 0 | { |
470 | 0 | return SendPBrowserConstructor(AllocPBrowserChild(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser), tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser); |
471 | 0 | } |
472 | | |
473 | | auto PContentChild::SendPBrowserConstructor( |
474 | | PBrowserChild* actor, |
475 | | const TabId& tabId, |
476 | | const TabId& sameTabGroupAs, |
477 | | const IPCTabContext& context, |
478 | | const uint32_t& chromeFlags, |
479 | | const ContentParentId& cpId, |
480 | | const bool& isForBrowser) -> PBrowserChild* |
481 | 0 | { |
482 | 0 | if ((!(actor))) { |
483 | 0 | NS_WARNING("Error constructing actor PBrowserChild"); |
484 | 0 | return nullptr; |
485 | 0 | } |
486 | 0 | (actor)->SetManagerAndRegister(this); |
487 | 0 | (mManagedPBrowserChild).PutEntry(actor); |
488 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
489 | 0 |
|
490 | 0 | IPC::Message* msg__ = PContent::Msg_PBrowserConstructor(MSG_ROUTING_CONTROL); |
491 | 0 |
|
492 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
493 | 0 | WriteIPDLParam(msg__, this, actor); |
494 | 0 | // Sentinel = 'actor' |
495 | 0 | (msg__)->WriteSentinel(875202478); |
496 | 0 | WriteIPDLParam(msg__, this, tabId); |
497 | 0 | // Sentinel = 'tabId' |
498 | 0 | (msg__)->WriteSentinel(3419081923); |
499 | 0 | WriteIPDLParam(msg__, this, sameTabGroupAs); |
500 | 0 | // Sentinel = 'sameTabGroupAs' |
501 | 0 | (msg__)->WriteSentinel(3969365410); |
502 | 0 | WriteIPDLParam(msg__, this, context); |
503 | 0 | // Sentinel = 'context' |
504 | 0 | (msg__)->WriteSentinel(3514529014); |
505 | 0 | WriteIPDLParam(msg__, this, chromeFlags); |
506 | 0 | // Sentinel = 'chromeFlags' |
507 | 0 | (msg__)->WriteSentinel(299515804); |
508 | 0 | WriteIPDLParam(msg__, this, cpId); |
509 | 0 | // Sentinel = 'cpId' |
510 | 0 | (msg__)->WriteSentinel(2452595622); |
511 | 0 | WriteIPDLParam(msg__, this, isForBrowser); |
512 | 0 | // Sentinel = 'isForBrowser' |
513 | 0 | (msg__)->WriteSentinel(2051565587); |
514 | 0 |
|
515 | 0 |
|
516 | 0 |
|
517 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
518 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
519 | 0 | } |
520 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER); |
521 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
522 | 0 | mozilla::ipc::LogicError("Transition error"); |
523 | 0 | } |
524 | 0 |
|
525 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
526 | 0 | if ((!(sendok__))) { |
527 | 0 | FatalError("constructor for actor failed"); |
528 | 0 | return nullptr; |
529 | 0 | } |
530 | 0 | return actor; |
531 | 0 | } |
532 | | |
533 | | auto PContentChild::SendPFileDescriptorSetConstructor(const FileDescriptor& fd) -> PFileDescriptorSetChild* |
534 | 0 | { |
535 | 0 | return SendPFileDescriptorSetConstructor(AllocPFileDescriptorSetChild(fd), fd); |
536 | 0 | } |
537 | | |
538 | | auto PContentChild::SendPFileDescriptorSetConstructor( |
539 | | PFileDescriptorSetChild* actor, |
540 | | const FileDescriptor& fd) -> PFileDescriptorSetChild* |
541 | 0 | { |
542 | 0 | if ((!(actor))) { |
543 | 0 | NS_WARNING("Error constructing actor PFileDescriptorSetChild"); |
544 | 0 | return nullptr; |
545 | 0 | } |
546 | 0 | (actor)->SetManagerAndRegister(this); |
547 | 0 | (mManagedPFileDescriptorSetChild).PutEntry(actor); |
548 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
549 | 0 |
|
550 | 0 | IPC::Message* msg__ = PContent::Msg_PFileDescriptorSetConstructor(MSG_ROUTING_CONTROL); |
551 | 0 |
|
552 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
553 | 0 | WriteIPDLParam(msg__, this, actor); |
554 | 0 | // Sentinel = 'actor' |
555 | 0 | (msg__)->WriteSentinel(875202478); |
556 | 0 | WriteIPDLParam(msg__, this, fd); |
557 | 0 | // Sentinel = 'fd' |
558 | 0 | (msg__)->WriteSentinel(628535764); |
559 | 0 |
|
560 | 0 |
|
561 | 0 |
|
562 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
563 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
564 | 0 | } |
565 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER); |
566 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
567 | 0 | mozilla::ipc::LogicError("Transition error"); |
568 | 0 | } |
569 | 0 |
|
570 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
571 | 0 | if ((!(sendok__))) { |
572 | 0 | FatalError("constructor for actor failed"); |
573 | 0 | return nullptr; |
574 | 0 | } |
575 | 0 | return actor; |
576 | 0 | } |
577 | | |
578 | | auto PContentChild::SendPWebBrowserPersistDocumentConstructor( |
579 | | PBrowserChild* aBrowser, |
580 | | const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentChild* |
581 | 0 | { |
582 | 0 | return SendPWebBrowserPersistDocumentConstructor(AllocPWebBrowserPersistDocumentChild(aBrowser, aOuterWindowID), aBrowser, aOuterWindowID); |
583 | 0 | } |
584 | | |
585 | | auto PContentChild::SendPWebBrowserPersistDocumentConstructor( |
586 | | PWebBrowserPersistDocumentChild* actor, |
587 | | PBrowserChild* aBrowser, |
588 | | const uint64_t& aOuterWindowID) -> PWebBrowserPersistDocumentChild* |
589 | 0 | { |
590 | 0 | if ((!(actor))) { |
591 | 0 | NS_WARNING("Error constructing actor PWebBrowserPersistDocumentChild"); |
592 | 0 | return nullptr; |
593 | 0 | } |
594 | 0 | (actor)->SetManagerAndRegister(this); |
595 | 0 | (mManagedPWebBrowserPersistDocumentChild).PutEntry(actor); |
596 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
597 | 0 |
|
598 | 0 | IPC::Message* msg__ = PContent::Msg_PWebBrowserPersistDocumentConstructor(MSG_ROUTING_CONTROL); |
599 | 0 |
|
600 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
601 | 0 | WriteIPDLParam(msg__, this, actor); |
602 | 0 | // Sentinel = 'actor' |
603 | 0 | (msg__)->WriteSentinel(875202478); |
604 | 0 | WriteIPDLParam(msg__, this, aBrowser); |
605 | 0 | // Sentinel = 'aBrowser' |
606 | 0 | (msg__)->WriteSentinel(3086016059); |
607 | 0 | WriteIPDLParam(msg__, this, aOuterWindowID); |
608 | 0 | // Sentinel = 'aOuterWindowID' |
609 | 0 | (msg__)->WriteSentinel(3438169907); |
610 | 0 |
|
611 | 0 |
|
612 | 0 |
|
613 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
614 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
615 | 0 | } |
616 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER); |
617 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
618 | 0 | mozilla::ipc::LogicError("Transition error"); |
619 | 0 | } |
620 | 0 |
|
621 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
622 | 0 | if ((!(sendok__))) { |
623 | 0 | FatalError("constructor for actor failed"); |
624 | 0 | return nullptr; |
625 | 0 | } |
626 | 0 | return actor; |
627 | 0 | } |
628 | | |
629 | | auto PContentChild::SendInitBackground(const Endpoint<mozilla::ipc::PBackgroundParent>& aEndpoint) -> bool |
630 | 0 | { |
631 | 0 | IPC::Message* msg__ = PContent::Msg_InitBackground(MSG_ROUTING_CONTROL); |
632 | 0 |
|
633 | 0 | WriteIPDLParam(msg__, this, aEndpoint); |
634 | 0 | // Sentinel = 'aEndpoint' |
635 | 0 | (msg__)->WriteSentinel(2457438235); |
636 | 0 |
|
637 | 0 |
|
638 | 0 |
|
639 | 0 |
|
640 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
641 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
642 | 0 | } |
643 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitBackground", OTHER); |
644 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
645 | 0 | mozilla::ipc::LogicError("Transition error"); |
646 | 0 | } |
647 | 0 |
|
648 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
649 | 0 | return sendok__; |
650 | 0 | } |
651 | | |
652 | | auto PContentChild::SendCreateChildProcess( |
653 | | const IPCTabContext& context, |
654 | | const ProcessPriority& priority, |
655 | | const TabId& openerTabId, |
656 | | const TabId& tabId, |
657 | | ContentParentId* cpId, |
658 | | bool* isForBrowser) -> bool |
659 | 0 | { |
660 | 0 | IPC::Message* msg__ = PContent::Msg_CreateChildProcess(MSG_ROUTING_CONTROL); |
661 | 0 |
|
662 | 0 | WriteIPDLParam(msg__, this, context); |
663 | 0 | // Sentinel = 'context' |
664 | 0 | (msg__)->WriteSentinel(3514529014); |
665 | 0 | WriteIPDLParam(msg__, this, priority); |
666 | 0 | // Sentinel = 'priority' |
667 | 0 | (msg__)->WriteSentinel(558136112); |
668 | 0 | WriteIPDLParam(msg__, this, openerTabId); |
669 | 0 | // Sentinel = 'openerTabId' |
670 | 0 | (msg__)->WriteSentinel(817688674); |
671 | 0 | WriteIPDLParam(msg__, this, tabId); |
672 | 0 | // Sentinel = 'tabId' |
673 | 0 | (msg__)->WriteSentinel(3419081923); |
674 | 0 |
|
675 | 0 |
|
676 | 0 |
|
677 | 0 | Message reply__; |
678 | 0 |
|
679 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
680 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
681 | 0 | } |
682 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateChildProcess", OTHER); |
683 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
684 | 0 | mozilla::ipc::LogicError("Transition error"); |
685 | 0 | } |
686 | 0 |
|
687 | 0 | bool sendok__; |
688 | 0 | { |
689 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_CreateChildProcess"); |
690 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
691 | 0 | } |
692 | 0 | if ((!(sendok__))) { |
693 | 0 | return false; |
694 | 0 | } |
695 | 0 | |
696 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
697 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
698 | 0 | } |
699 | 0 |
|
700 | 0 | PickleIterator iter__(reply__); |
701 | 0 |
|
702 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, cpId)))) { |
703 | 0 | FatalError("Error deserializing 'ContentParentId'"); |
704 | 0 | return false; |
705 | 0 | } |
706 | 0 | // Sentinel = 'cpId' |
707 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2452595622)))) { |
708 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'"); |
709 | 0 | return false; |
710 | 0 | } |
711 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, isForBrowser)))) { |
712 | 0 | FatalError("Error deserializing 'bool'"); |
713 | 0 | return false; |
714 | 0 | } |
715 | 0 | // Sentinel = 'isForBrowser' |
716 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2051565587)))) { |
717 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
718 | 0 | return false; |
719 | 0 | } |
720 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
721 | 0 |
|
722 | 0 | return true; |
723 | 0 | } |
724 | | |
725 | | auto PContentChild::SendBridgeToChildProcess( |
726 | | const ContentParentId& cpId, |
727 | | Endpoint<mozilla::dom::PContentBridgeParent>* endpoint) -> bool |
728 | 0 | { |
729 | 0 | IPC::Message* msg__ = PContent::Msg_BridgeToChildProcess(MSG_ROUTING_CONTROL); |
730 | 0 |
|
731 | 0 | WriteIPDLParam(msg__, this, cpId); |
732 | 0 | // Sentinel = 'cpId' |
733 | 0 | (msg__)->WriteSentinel(2452595622); |
734 | 0 |
|
735 | 0 |
|
736 | 0 |
|
737 | 0 | Message reply__; |
738 | 0 |
|
739 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
740 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
741 | 0 | } |
742 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BridgeToChildProcess", OTHER); |
743 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
744 | 0 | mozilla::ipc::LogicError("Transition error"); |
745 | 0 | } |
746 | 0 |
|
747 | 0 | bool sendok__; |
748 | 0 | { |
749 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_BridgeToChildProcess"); |
750 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
751 | 0 | } |
752 | 0 | if ((!(sendok__))) { |
753 | 0 | return false; |
754 | 0 | } |
755 | 0 | |
756 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
757 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
758 | 0 | } |
759 | 0 |
|
760 | 0 | PickleIterator iter__(reply__); |
761 | 0 |
|
762 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, endpoint)))) { |
763 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::dom::PContentBridgeParent>'"); |
764 | 0 | return false; |
765 | 0 | } |
766 | 0 | // Sentinel = 'endpoint' |
767 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3610972515)))) { |
768 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::dom::PContentBridgeParent>'"); |
769 | 0 | return false; |
770 | 0 | } |
771 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
772 | 0 |
|
773 | 0 | return true; |
774 | 0 | } |
775 | | |
776 | | auto PContentChild::SendOpenRecordReplayChannel( |
777 | | const uint32_t& channelId, |
778 | | FileDescriptor* connection) -> bool |
779 | 0 | { |
780 | 0 | IPC::Message* msg__ = PContent::Msg_OpenRecordReplayChannel(MSG_ROUTING_CONTROL); |
781 | 0 |
|
782 | 0 | WriteIPDLParam(msg__, this, channelId); |
783 | 0 | // Sentinel = 'channelId' |
784 | 0 | (msg__)->WriteSentinel(6854027); |
785 | 0 |
|
786 | 0 |
|
787 | 0 |
|
788 | 0 | Message reply__; |
789 | 0 |
|
790 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
791 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
792 | 0 | } |
793 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_OpenRecordReplayChannel", OTHER); |
794 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
795 | 0 | mozilla::ipc::LogicError("Transition error"); |
796 | 0 | } |
797 | 0 |
|
798 | 0 | bool sendok__; |
799 | 0 | { |
800 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_OpenRecordReplayChannel"); |
801 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
802 | 0 | } |
803 | 0 | if ((!(sendok__))) { |
804 | 0 | return false; |
805 | 0 | } |
806 | 0 | |
807 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
808 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
809 | 0 | } |
810 | 0 |
|
811 | 0 | PickleIterator iter__(reply__); |
812 | 0 |
|
813 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, connection)))) { |
814 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
815 | 0 | return false; |
816 | 0 | } |
817 | 0 | // Sentinel = 'connection' |
818 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3784185074)))) { |
819 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
820 | 0 | return false; |
821 | 0 | } |
822 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
823 | 0 |
|
824 | 0 | return true; |
825 | 0 | } |
826 | | |
827 | | auto PContentChild::SendCreateReplayingProcess(const uint32_t& channelId) -> bool |
828 | 0 | { |
829 | 0 | IPC::Message* msg__ = PContent::Msg_CreateReplayingProcess(MSG_ROUTING_CONTROL); |
830 | 0 |
|
831 | 0 | WriteIPDLParam(msg__, this, channelId); |
832 | 0 | // Sentinel = 'channelId' |
833 | 0 | (msg__)->WriteSentinel(6854027); |
834 | 0 |
|
835 | 0 |
|
836 | 0 |
|
837 | 0 |
|
838 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
839 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
840 | 0 | } |
841 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateReplayingProcess", OTHER); |
842 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
843 | 0 | mozilla::ipc::LogicError("Transition error"); |
844 | 0 | } |
845 | 0 |
|
846 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
847 | 0 | return sendok__; |
848 | 0 | } |
849 | | |
850 | | auto PContentChild::SendTerminateReplayingProcess(const uint32_t& channelId) -> bool |
851 | 0 | { |
852 | 0 | IPC::Message* msg__ = PContent::Msg_TerminateReplayingProcess(MSG_ROUTING_CONTROL); |
853 | 0 |
|
854 | 0 | WriteIPDLParam(msg__, this, channelId); |
855 | 0 | // Sentinel = 'channelId' |
856 | 0 | (msg__)->WriteSentinel(6854027); |
857 | 0 |
|
858 | 0 |
|
859 | 0 |
|
860 | 0 |
|
861 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
862 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
863 | 0 | } |
864 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_TerminateReplayingProcess", OTHER); |
865 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
866 | 0 | mozilla::ipc::LogicError("Transition error"); |
867 | 0 | } |
868 | 0 |
|
869 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
870 | 0 | return sendok__; |
871 | 0 | } |
872 | | |
873 | | auto PContentChild::SendCreateGMPService() -> bool |
874 | 0 | { |
875 | 0 | IPC::Message* msg__ = PContent::Msg_CreateGMPService(MSG_ROUTING_CONTROL); |
876 | 0 |
|
877 | 0 |
|
878 | 0 |
|
879 | 0 |
|
880 | 0 |
|
881 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
882 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
883 | 0 | } |
884 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateGMPService", OTHER); |
885 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
886 | 0 | mozilla::ipc::LogicError("Transition error"); |
887 | 0 | } |
888 | 0 |
|
889 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
890 | 0 | return sendok__; |
891 | 0 | } |
892 | | |
893 | | auto PContentChild::SendInitStreamFilter( |
894 | | const uint64_t& channelId, |
895 | | const nsString& addonId, |
896 | | mozilla::ipc::ResolveCallback<Endpoint<mozilla::extensions::PStreamFilterChild>>&& aResolve, |
897 | | mozilla::ipc::RejectCallback&& aReject) -> void |
898 | 0 | { |
899 | 0 | IPC::Message* msg__ = PContent::Msg_InitStreamFilter(MSG_ROUTING_CONTROL); |
900 | 0 |
|
901 | 0 | WriteIPDLParam(msg__, this, channelId); |
902 | 0 | // Sentinel = 'channelId' |
903 | 0 | (msg__)->WriteSentinel(6854027); |
904 | 0 | WriteIPDLParam(msg__, this, addonId); |
905 | 0 | // Sentinel = 'addonId' |
906 | 0 | (msg__)->WriteSentinel(4000132214); |
907 | 0 |
|
908 | 0 |
|
909 | 0 |
|
910 | 0 |
|
911 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
912 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
913 | 0 | } |
914 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitStreamFilter", OTHER); |
915 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
916 | 0 | mozilla::ipc::LogicError("Transition error"); |
917 | 0 | } |
918 | 0 |
|
919 | 0 | (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject)); |
920 | 0 | return; |
921 | 0 | } |
922 | | |
923 | | auto PContentChild::SendInitStreamFilter( |
924 | | const uint64_t& channelId, |
925 | | const nsString& addonId) -> RefPtr<InitStreamFilterPromise> |
926 | 0 | { |
927 | 0 |
|
928 | 0 | RefPtr<MozPromise<Endpoint<mozilla::extensions::PStreamFilterChild>, ResponseRejectReason, true>::Private> promise__ = new MozPromise<Endpoint<mozilla::extensions::PStreamFilterChild>, ResponseRejectReason, true>::Private(__func__); |
929 | 0 |
|
930 | 0 | SendInitStreamFilter(channelId, addonId, [promise__](Endpoint<mozilla::extensions::PStreamFilterChild>&& aValue) { |
931 | 0 | (promise__)->Resolve(std::move(aValue), __func__); |
932 | 0 | }, [promise__](ResponseRejectReason aReason) { |
933 | 0 | (promise__)->Reject(aReason, __func__); |
934 | 0 | }); |
935 | 0 | return promise__; |
936 | 0 | } |
937 | | |
938 | | auto PContentChild::SendLoadPlugin( |
939 | | const uint32_t& aPluginId, |
940 | | nsresult* aResult, |
941 | | uint32_t* aRunID, |
942 | | Endpoint<mozilla::plugins::PPluginModuleParent>* aEndpoint) -> bool |
943 | 0 | { |
944 | 0 | IPC::Message* msg__ = PContent::Msg_LoadPlugin(MSG_ROUTING_CONTROL); |
945 | 0 |
|
946 | 0 | WriteIPDLParam(msg__, this, aPluginId); |
947 | 0 | // Sentinel = 'aPluginId' |
948 | 0 | (msg__)->WriteSentinel(4181313310); |
949 | 0 |
|
950 | 0 |
|
951 | 0 |
|
952 | 0 | Message reply__; |
953 | 0 |
|
954 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
955 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
956 | 0 | } |
957 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_LoadPlugin", OTHER); |
958 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
959 | 0 | mozilla::ipc::LogicError("Transition error"); |
960 | 0 | } |
961 | 0 |
|
962 | 0 | bool sendok__; |
963 | 0 | { |
964 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_LoadPlugin"); |
965 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
966 | 0 | } |
967 | 0 | if ((!(sendok__))) { |
968 | 0 | return false; |
969 | 0 | } |
970 | 0 | |
971 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
972 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
973 | 0 | } |
974 | 0 |
|
975 | 0 | PickleIterator iter__(reply__); |
976 | 0 |
|
977 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aResult)))) { |
978 | 0 | FatalError("Error deserializing 'nsresult'"); |
979 | 0 | return false; |
980 | 0 | } |
981 | 0 | // Sentinel = 'aResult' |
982 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) { |
983 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
984 | 0 | return false; |
985 | 0 | } |
986 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aRunID)))) { |
987 | 0 | FatalError("Error deserializing 'uint32_t'"); |
988 | 0 | return false; |
989 | 0 | } |
990 | 0 | // Sentinel = 'aRunID' |
991 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2758209365)))) { |
992 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
993 | 0 | return false; |
994 | 0 | } |
995 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aEndpoint)))) { |
996 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleParent>'"); |
997 | 0 | return false; |
998 | 0 | } |
999 | 0 | // Sentinel = 'aEndpoint' |
1000 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2457438235)))) { |
1001 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleParent>'"); |
1002 | 0 | return false; |
1003 | 0 | } |
1004 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1005 | 0 |
|
1006 | 0 | return true; |
1007 | 0 | } |
1008 | | |
1009 | | auto PContentChild::SendConnectPluginBridge( |
1010 | | const uint32_t& aPluginId, |
1011 | | nsresult* rv, |
1012 | | Endpoint<mozilla::plugins::PPluginModuleParent>* aEndpoint) -> bool |
1013 | 0 | { |
1014 | 0 | IPC::Message* msg__ = PContent::Msg_ConnectPluginBridge(MSG_ROUTING_CONTROL); |
1015 | 0 |
|
1016 | 0 | WriteIPDLParam(msg__, this, aPluginId); |
1017 | 0 | // Sentinel = 'aPluginId' |
1018 | 0 | (msg__)->WriteSentinel(4181313310); |
1019 | 0 |
|
1020 | 0 |
|
1021 | 0 |
|
1022 | 0 | Message reply__; |
1023 | 0 |
|
1024 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1025 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1026 | 0 | } |
1027 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ConnectPluginBridge", OTHER); |
1028 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1029 | 0 | mozilla::ipc::LogicError("Transition error"); |
1030 | 0 | } |
1031 | 0 |
|
1032 | 0 | bool sendok__; |
1033 | 0 | { |
1034 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_ConnectPluginBridge"); |
1035 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1036 | 0 | } |
1037 | 0 | if ((!(sendok__))) { |
1038 | 0 | return false; |
1039 | 0 | } |
1040 | 0 | |
1041 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1042 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1043 | 0 | } |
1044 | 0 |
|
1045 | 0 | PickleIterator iter__(reply__); |
1046 | 0 |
|
1047 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rv)))) { |
1048 | 0 | FatalError("Error deserializing 'nsresult'"); |
1049 | 0 | return false; |
1050 | 0 | } |
1051 | 0 | // Sentinel = 'rv' |
1052 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) { |
1053 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
1054 | 0 | return false; |
1055 | 0 | } |
1056 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aEndpoint)))) { |
1057 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleParent>'"); |
1058 | 0 | return false; |
1059 | 0 | } |
1060 | 0 | // Sentinel = 'aEndpoint' |
1061 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2457438235)))) { |
1062 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleParent>'"); |
1063 | 0 | return false; |
1064 | 0 | } |
1065 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1066 | 0 |
|
1067 | 0 | return true; |
1068 | 0 | } |
1069 | | |
1070 | | auto PContentChild::SendPJavaScriptConstructor() -> PJavaScriptChild* |
1071 | 0 | { |
1072 | 0 | return SendPJavaScriptConstructor(AllocPJavaScriptChild()); |
1073 | 0 | } |
1074 | | |
1075 | | auto PContentChild::SendPJavaScriptConstructor(PJavaScriptChild* actor) -> PJavaScriptChild* |
1076 | 0 | { |
1077 | 0 | if ((!(actor))) { |
1078 | 0 | NS_WARNING("Error constructing actor PJavaScriptChild"); |
1079 | 0 | return nullptr; |
1080 | 0 | } |
1081 | 0 | (actor)->SetManagerAndRegister(this); |
1082 | 0 | (mManagedPJavaScriptChild).PutEntry(actor); |
1083 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1084 | 0 |
|
1085 | 0 | IPC::Message* msg__ = PContent::Msg_PJavaScriptConstructor(MSG_ROUTING_CONTROL); |
1086 | 0 |
|
1087 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1088 | 0 | WriteIPDLParam(msg__, this, actor); |
1089 | 0 | // Sentinel = 'actor' |
1090 | 0 | (msg__)->WriteSentinel(875202478); |
1091 | 0 |
|
1092 | 0 |
|
1093 | 0 |
|
1094 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1095 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1096 | 0 | } |
1097 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PJavaScriptConstructor", OTHER); |
1098 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1099 | 0 | mozilla::ipc::LogicError("Transition error"); |
1100 | 0 | } |
1101 | 0 |
|
1102 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1103 | 0 | if ((!(sendok__))) { |
1104 | 0 | FatalError("constructor for actor failed"); |
1105 | 0 | return nullptr; |
1106 | 0 | } |
1107 | 0 | return actor; |
1108 | 0 | } |
1109 | | |
1110 | | auto PContentChild::SendPRemoteSpellcheckEngineConstructor() -> PRemoteSpellcheckEngineChild* |
1111 | 0 | { |
1112 | 0 | return SendPRemoteSpellcheckEngineConstructor(AllocPRemoteSpellcheckEngineChild()); |
1113 | 0 | } |
1114 | | |
1115 | | auto PContentChild::SendPRemoteSpellcheckEngineConstructor(PRemoteSpellcheckEngineChild* actor) -> PRemoteSpellcheckEngineChild* |
1116 | 0 | { |
1117 | 0 | if ((!(actor))) { |
1118 | 0 | NS_WARNING("Error constructing actor PRemoteSpellcheckEngineChild"); |
1119 | 0 | return nullptr; |
1120 | 0 | } |
1121 | 0 | (actor)->SetManagerAndRegister(this); |
1122 | 0 | (mManagedPRemoteSpellcheckEngineChild).PutEntry(actor); |
1123 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1124 | 0 |
|
1125 | 0 | IPC::Message* msg__ = PContent::Msg_PRemoteSpellcheckEngineConstructor(MSG_ROUTING_CONTROL); |
1126 | 0 |
|
1127 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1128 | 0 | WriteIPDLParam(msg__, this, actor); |
1129 | 0 | // Sentinel = 'actor' |
1130 | 0 | (msg__)->WriteSentinel(875202478); |
1131 | 0 |
|
1132 | 0 |
|
1133 | 0 |
|
1134 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1135 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1136 | 0 | } |
1137 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PRemoteSpellcheckEngineConstructor", OTHER); |
1138 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1139 | 0 | mozilla::ipc::LogicError("Transition error"); |
1140 | 0 | } |
1141 | 0 |
|
1142 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1143 | 0 | if ((!(sendok__))) { |
1144 | 0 | FatalError("constructor for actor failed"); |
1145 | 0 | return nullptr; |
1146 | 0 | } |
1147 | 0 | return actor; |
1148 | 0 | } |
1149 | | |
1150 | | auto PContentChild::SendInitCrashReporter( |
1151 | | Shmem& shmem, |
1152 | | const NativeThreadId& tid) -> bool |
1153 | 0 | { |
1154 | 0 | IPC::Message* msg__ = PContent::Msg_InitCrashReporter(MSG_ROUTING_CONTROL); |
1155 | 0 |
|
1156 | 0 | WriteIPDLParam(msg__, this, shmem); |
1157 | 0 | // Sentinel = 'shmem' |
1158 | 0 | (msg__)->WriteSentinel(4252604405); |
1159 | 0 | WriteIPDLParam(msg__, this, tid); |
1160 | 0 | // Sentinel = 'tid' |
1161 | 0 | (msg__)->WriteSentinel(333309880); |
1162 | 0 |
|
1163 | 0 |
|
1164 | 0 |
|
1165 | 0 |
|
1166 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1167 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1168 | 0 | } |
1169 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitCrashReporter", OTHER); |
1170 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1171 | 0 | mozilla::ipc::LogicError("Transition error"); |
1172 | 0 | } |
1173 | 0 |
|
1174 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1175 | 0 | return sendok__; |
1176 | 0 | } |
1177 | | |
1178 | | auto PContentChild::SendIsSecureURI( |
1179 | | const uint32_t& aType, |
1180 | | const URIParams& aURI, |
1181 | | const uint32_t& aFlags, |
1182 | | const OriginAttributes& aOriginAttributes, |
1183 | | bool* isSecureURI) -> bool |
1184 | 0 | { |
1185 | 0 | IPC::Message* msg__ = PContent::Msg_IsSecureURI(MSG_ROUTING_CONTROL); |
1186 | 0 |
|
1187 | 0 | WriteIPDLParam(msg__, this, aType); |
1188 | 0 | // Sentinel = 'aType' |
1189 | 0 | (msg__)->WriteSentinel(1819585676); |
1190 | 0 | WriteIPDLParam(msg__, this, aURI); |
1191 | 0 | // Sentinel = 'aURI' |
1192 | 0 | (msg__)->WriteSentinel(2075506333); |
1193 | 0 | WriteIPDLParam(msg__, this, aFlags); |
1194 | 0 | // Sentinel = 'aFlags' |
1195 | 0 | (msg__)->WriteSentinel(3595665704); |
1196 | 0 | WriteIPDLParam(msg__, this, aOriginAttributes); |
1197 | 0 | // Sentinel = 'aOriginAttributes' |
1198 | 0 | (msg__)->WriteSentinel(2175998517); |
1199 | 0 |
|
1200 | 0 |
|
1201 | 0 |
|
1202 | 0 | Message reply__; |
1203 | 0 |
|
1204 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1205 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1206 | 0 | } |
1207 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_IsSecureURI", OTHER); |
1208 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1209 | 0 | mozilla::ipc::LogicError("Transition error"); |
1210 | 0 | } |
1211 | 0 |
|
1212 | 0 | bool sendok__; |
1213 | 0 | { |
1214 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_IsSecureURI"); |
1215 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1216 | 0 | } |
1217 | 0 | if ((!(sendok__))) { |
1218 | 0 | return false; |
1219 | 0 | } |
1220 | 0 | |
1221 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1222 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1223 | 0 | } |
1224 | 0 |
|
1225 | 0 | PickleIterator iter__(reply__); |
1226 | 0 |
|
1227 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, isSecureURI)))) { |
1228 | 0 | FatalError("Error deserializing 'bool'"); |
1229 | 0 | return false; |
1230 | 0 | } |
1231 | 0 | // Sentinel = 'isSecureURI' |
1232 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 672781896)))) { |
1233 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1234 | 0 | return false; |
1235 | 0 | } |
1236 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1237 | 0 |
|
1238 | 0 | return true; |
1239 | 0 | } |
1240 | | |
1241 | | auto PContentChild::SendAccumulateMixedContentHSTS( |
1242 | | const URIParams& aURI, |
1243 | | const bool& aActive, |
1244 | | const OriginAttributes& aOriginAttributes) -> bool |
1245 | 0 | { |
1246 | 0 | IPC::Message* msg__ = PContent::Msg_AccumulateMixedContentHSTS(MSG_ROUTING_CONTROL); |
1247 | 0 |
|
1248 | 0 | WriteIPDLParam(msg__, this, aURI); |
1249 | 0 | // Sentinel = 'aURI' |
1250 | 0 | (msg__)->WriteSentinel(2075506333); |
1251 | 0 | WriteIPDLParam(msg__, this, aActive); |
1252 | 0 | // Sentinel = 'aActive' |
1253 | 0 | (msg__)->WriteSentinel(1215369048); |
1254 | 0 | WriteIPDLParam(msg__, this, aOriginAttributes); |
1255 | 0 | // Sentinel = 'aOriginAttributes' |
1256 | 0 | (msg__)->WriteSentinel(2175998517); |
1257 | 0 |
|
1258 | 0 |
|
1259 | 0 |
|
1260 | 0 |
|
1261 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1262 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1263 | 0 | } |
1264 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AccumulateMixedContentHSTS", OTHER); |
1265 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1266 | 0 | mozilla::ipc::LogicError("Transition error"); |
1267 | 0 | } |
1268 | 0 |
|
1269 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1270 | 0 | return sendok__; |
1271 | 0 | } |
1272 | | |
1273 | | auto PContentChild::SendPHalConstructor() -> PHalChild* |
1274 | 0 | { |
1275 | 0 | return SendPHalConstructor(AllocPHalChild()); |
1276 | 0 | } |
1277 | | |
1278 | | auto PContentChild::SendPHalConstructor(PHalChild* actor) -> PHalChild* |
1279 | 0 | { |
1280 | 0 | if ((!(actor))) { |
1281 | 0 | NS_WARNING("Error constructing actor PHalChild"); |
1282 | 0 | return nullptr; |
1283 | 0 | } |
1284 | 0 | (actor)->SetManagerAndRegister(this); |
1285 | 0 | (mManagedPHalChild).PutEntry(actor); |
1286 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1287 | 0 |
|
1288 | 0 | IPC::Message* msg__ = PContent::Msg_PHalConstructor(MSG_ROUTING_CONTROL); |
1289 | 0 |
|
1290 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1291 | 0 | WriteIPDLParam(msg__, this, actor); |
1292 | 0 | // Sentinel = 'actor' |
1293 | 0 | (msg__)->WriteSentinel(875202478); |
1294 | 0 |
|
1295 | 0 |
|
1296 | 0 |
|
1297 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1298 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1299 | 0 | } |
1300 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PHalConstructor", OTHER); |
1301 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1302 | 0 | mozilla::ipc::LogicError("Transition error"); |
1303 | 0 | } |
1304 | 0 |
|
1305 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1306 | 0 | if ((!(sendok__))) { |
1307 | 0 | FatalError("constructor for actor failed"); |
1308 | 0 | return nullptr; |
1309 | 0 | } |
1310 | 0 | return actor; |
1311 | 0 | } |
1312 | | |
1313 | | auto PContentChild::SendPHeapSnapshotTempFileHelperConstructor() -> PHeapSnapshotTempFileHelperChild* |
1314 | 0 | { |
1315 | 0 | return SendPHeapSnapshotTempFileHelperConstructor(AllocPHeapSnapshotTempFileHelperChild()); |
1316 | 0 | } |
1317 | | |
1318 | | auto PContentChild::SendPHeapSnapshotTempFileHelperConstructor(PHeapSnapshotTempFileHelperChild* actor) -> PHeapSnapshotTempFileHelperChild* |
1319 | 0 | { |
1320 | 0 | if ((!(actor))) { |
1321 | 0 | NS_WARNING("Error constructing actor PHeapSnapshotTempFileHelperChild"); |
1322 | 0 | return nullptr; |
1323 | 0 | } |
1324 | 0 | (actor)->SetManagerAndRegister(this); |
1325 | 0 | (mManagedPHeapSnapshotTempFileHelperChild).PutEntry(actor); |
1326 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1327 | 0 |
|
1328 | 0 | IPC::Message* msg__ = PContent::Msg_PHeapSnapshotTempFileHelperConstructor(MSG_ROUTING_CONTROL); |
1329 | 0 |
|
1330 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1331 | 0 | WriteIPDLParam(msg__, this, actor); |
1332 | 0 | // Sentinel = 'actor' |
1333 | 0 | (msg__)->WriteSentinel(875202478); |
1334 | 0 |
|
1335 | 0 |
|
1336 | 0 |
|
1337 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1338 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1339 | 0 | } |
1340 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PHeapSnapshotTempFileHelperConstructor", OTHER); |
1341 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1342 | 0 | mozilla::ipc::LogicError("Transition error"); |
1343 | 0 | } |
1344 | 0 |
|
1345 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1346 | 0 | if ((!(sendok__))) { |
1347 | 0 | FatalError("constructor for actor failed"); |
1348 | 0 | return nullptr; |
1349 | 0 | } |
1350 | 0 | return actor; |
1351 | 0 | } |
1352 | | |
1353 | | auto PContentChild::SendPNeckoConstructor() -> PNeckoChild* |
1354 | 0 | { |
1355 | 0 | return SendPNeckoConstructor(AllocPNeckoChild()); |
1356 | 0 | } |
1357 | | |
1358 | | auto PContentChild::SendPNeckoConstructor(PNeckoChild* actor) -> PNeckoChild* |
1359 | 0 | { |
1360 | 0 | if ((!(actor))) { |
1361 | 0 | NS_WARNING("Error constructing actor PNeckoChild"); |
1362 | 0 | return nullptr; |
1363 | 0 | } |
1364 | 0 | (actor)->SetManagerAndRegister(this); |
1365 | 0 | (mManagedPNeckoChild).PutEntry(actor); |
1366 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1367 | 0 |
|
1368 | 0 | IPC::Message* msg__ = PContent::Msg_PNeckoConstructor(MSG_ROUTING_CONTROL); |
1369 | 0 |
|
1370 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1371 | 0 | WriteIPDLParam(msg__, this, actor); |
1372 | 0 | // Sentinel = 'actor' |
1373 | 0 | (msg__)->WriteSentinel(875202478); |
1374 | 0 |
|
1375 | 0 |
|
1376 | 0 |
|
1377 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1378 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1379 | 0 | } |
1380 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PNeckoConstructor", OTHER); |
1381 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1382 | 0 | mozilla::ipc::LogicError("Transition error"); |
1383 | 0 | } |
1384 | 0 |
|
1385 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1386 | 0 | if ((!(sendok__))) { |
1387 | 0 | FatalError("constructor for actor failed"); |
1388 | 0 | return nullptr; |
1389 | 0 | } |
1390 | 0 | return actor; |
1391 | 0 | } |
1392 | | |
1393 | | auto PContentChild::SendPPrintingConstructor() -> PPrintingChild* |
1394 | 0 | { |
1395 | 0 | return SendPPrintingConstructor(AllocPPrintingChild()); |
1396 | 0 | } |
1397 | | |
1398 | | auto PContentChild::SendPPrintingConstructor(PPrintingChild* actor) -> PPrintingChild* |
1399 | 0 | { |
1400 | 0 | if ((!(actor))) { |
1401 | 0 | NS_WARNING("Error constructing actor PPrintingChild"); |
1402 | 0 | return nullptr; |
1403 | 0 | } |
1404 | 0 | (actor)->SetManagerAndRegister(this); |
1405 | 0 | (mManagedPPrintingChild).PutEntry(actor); |
1406 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1407 | 0 |
|
1408 | 0 | IPC::Message* msg__ = PContent::Msg_PPrintingConstructor(MSG_ROUTING_CONTROL); |
1409 | 0 |
|
1410 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1411 | 0 | WriteIPDLParam(msg__, this, actor); |
1412 | 0 | // Sentinel = 'actor' |
1413 | 0 | (msg__)->WriteSentinel(875202478); |
1414 | 0 |
|
1415 | 0 |
|
1416 | 0 |
|
1417 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1418 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1419 | 0 | } |
1420 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PPrintingConstructor", OTHER); |
1421 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1422 | 0 | mozilla::ipc::LogicError("Transition error"); |
1423 | 0 | } |
1424 | 0 |
|
1425 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1426 | 0 | if ((!(sendok__))) { |
1427 | 0 | FatalError("constructor for actor failed"); |
1428 | 0 | return nullptr; |
1429 | 0 | } |
1430 | 0 | return actor; |
1431 | 0 | } |
1432 | | |
1433 | | auto PContentChild::SendPChildToParentStreamConstructor() -> PChildToParentStreamChild* |
1434 | 0 | { |
1435 | 0 | return SendPChildToParentStreamConstructor(AllocPChildToParentStreamChild()); |
1436 | 0 | } |
1437 | | |
1438 | | auto PContentChild::SendPChildToParentStreamConstructor(PChildToParentStreamChild* actor) -> PChildToParentStreamChild* |
1439 | 0 | { |
1440 | 0 | if ((!(actor))) { |
1441 | 0 | NS_WARNING("Error constructing actor PChildToParentStreamChild"); |
1442 | 0 | return nullptr; |
1443 | 0 | } |
1444 | 0 | (actor)->SetManagerAndRegister(this); |
1445 | 0 | (mManagedPChildToParentStreamChild).PutEntry(actor); |
1446 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1447 | 0 |
|
1448 | 0 | IPC::Message* msg__ = PContent::Msg_PChildToParentStreamConstructor(MSG_ROUTING_CONTROL); |
1449 | 0 |
|
1450 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1451 | 0 | WriteIPDLParam(msg__, this, actor); |
1452 | 0 | // Sentinel = 'actor' |
1453 | 0 | (msg__)->WriteSentinel(875202478); |
1454 | 0 |
|
1455 | 0 |
|
1456 | 0 |
|
1457 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1458 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1459 | 0 | } |
1460 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PChildToParentStreamConstructor", OTHER); |
1461 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1462 | 0 | mozilla::ipc::LogicError("Transition error"); |
1463 | 0 | } |
1464 | 0 |
|
1465 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1466 | 0 | if ((!(sendok__))) { |
1467 | 0 | FatalError("constructor for actor failed"); |
1468 | 0 | return nullptr; |
1469 | 0 | } |
1470 | 0 | return actor; |
1471 | 0 | } |
1472 | | |
1473 | | auto PContentChild::SendPSpeechSynthesisConstructor() -> PSpeechSynthesisChild* |
1474 | 0 | { |
1475 | 0 | return SendPSpeechSynthesisConstructor(AllocPSpeechSynthesisChild()); |
1476 | 0 | } |
1477 | | |
1478 | | auto PContentChild::SendPSpeechSynthesisConstructor(PSpeechSynthesisChild* actor) -> PSpeechSynthesisChild* |
1479 | 0 | { |
1480 | 0 | if ((!(actor))) { |
1481 | 0 | NS_WARNING("Error constructing actor PSpeechSynthesisChild"); |
1482 | 0 | return nullptr; |
1483 | 0 | } |
1484 | 0 | (actor)->SetManagerAndRegister(this); |
1485 | 0 | (mManagedPSpeechSynthesisChild).PutEntry(actor); |
1486 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1487 | 0 |
|
1488 | 0 | IPC::Message* msg__ = PContent::Msg_PSpeechSynthesisConstructor(MSG_ROUTING_CONTROL); |
1489 | 0 |
|
1490 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1491 | 0 | WriteIPDLParam(msg__, this, actor); |
1492 | 0 | // Sentinel = 'actor' |
1493 | 0 | (msg__)->WriteSentinel(875202478); |
1494 | 0 |
|
1495 | 0 |
|
1496 | 0 |
|
1497 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1498 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1499 | 0 | } |
1500 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PSpeechSynthesisConstructor", OTHER); |
1501 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1502 | 0 | mozilla::ipc::LogicError("Transition error"); |
1503 | 0 | } |
1504 | 0 |
|
1505 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1506 | 0 | if ((!(sendok__))) { |
1507 | 0 | FatalError("constructor for actor failed"); |
1508 | 0 | return nullptr; |
1509 | 0 | } |
1510 | 0 | return actor; |
1511 | 0 | } |
1512 | | |
1513 | | auto PContentChild::SendPMediaConstructor() -> PMediaChild* |
1514 | 0 | { |
1515 | 0 | return SendPMediaConstructor(AllocPMediaChild()); |
1516 | 0 | } |
1517 | | |
1518 | | auto PContentChild::SendPMediaConstructor(PMediaChild* actor) -> PMediaChild* |
1519 | 0 | { |
1520 | 0 | if ((!(actor))) { |
1521 | 0 | NS_WARNING("Error constructing actor PMediaChild"); |
1522 | 0 | return nullptr; |
1523 | 0 | } |
1524 | 0 | (actor)->SetManagerAndRegister(this); |
1525 | 0 | (mManagedPMediaChild).PutEntry(actor); |
1526 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1527 | 0 |
|
1528 | 0 | IPC::Message* msg__ = PContent::Msg_PMediaConstructor(MSG_ROUTING_CONTROL); |
1529 | 0 |
|
1530 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1531 | 0 | WriteIPDLParam(msg__, this, actor); |
1532 | 0 | // Sentinel = 'actor' |
1533 | 0 | (msg__)->WriteSentinel(875202478); |
1534 | 0 |
|
1535 | 0 |
|
1536 | 0 |
|
1537 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1538 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1539 | 0 | } |
1540 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PMediaConstructor", OTHER); |
1541 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1542 | 0 | mozilla::ipc::LogicError("Transition error"); |
1543 | 0 | } |
1544 | 0 |
|
1545 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1546 | 0 | if ((!(sendok__))) { |
1547 | 0 | FatalError("constructor for actor failed"); |
1548 | 0 | return nullptr; |
1549 | 0 | } |
1550 | 0 | return actor; |
1551 | 0 | } |
1552 | | |
1553 | | auto PContentChild::SendPWebrtcGlobalConstructor() -> PWebrtcGlobalChild* |
1554 | 0 | { |
1555 | 0 | return SendPWebrtcGlobalConstructor(AllocPWebrtcGlobalChild()); |
1556 | 0 | } |
1557 | | |
1558 | | auto PContentChild::SendPWebrtcGlobalConstructor(PWebrtcGlobalChild* actor) -> PWebrtcGlobalChild* |
1559 | 0 | { |
1560 | 0 | if ((!(actor))) { |
1561 | 0 | NS_WARNING("Error constructing actor PWebrtcGlobalChild"); |
1562 | 0 | return nullptr; |
1563 | 0 | } |
1564 | 0 | (actor)->SetManagerAndRegister(this); |
1565 | 0 | (mManagedPWebrtcGlobalChild).PutEntry(actor); |
1566 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1567 | 0 |
|
1568 | 0 | IPC::Message* msg__ = PContent::Msg_PWebrtcGlobalConstructor(MSG_ROUTING_CONTROL); |
1569 | 0 |
|
1570 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1571 | 0 | WriteIPDLParam(msg__, this, actor); |
1572 | 0 | // Sentinel = 'actor' |
1573 | 0 | (msg__)->WriteSentinel(875202478); |
1574 | 0 |
|
1575 | 0 |
|
1576 | 0 |
|
1577 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1578 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1579 | 0 | } |
1580 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PWebrtcGlobalConstructor", OTHER); |
1581 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1582 | 0 | mozilla::ipc::LogicError("Transition error"); |
1583 | 0 | } |
1584 | 0 |
|
1585 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1586 | 0 | if ((!(sendok__))) { |
1587 | 0 | FatalError("constructor for actor failed"); |
1588 | 0 | return nullptr; |
1589 | 0 | } |
1590 | 0 | return actor; |
1591 | 0 | } |
1592 | | |
1593 | | auto PContentChild::SendPPresentationConstructor() -> PPresentationChild* |
1594 | 0 | { |
1595 | 0 | return SendPPresentationConstructor(AllocPPresentationChild()); |
1596 | 0 | } |
1597 | | |
1598 | | auto PContentChild::SendPPresentationConstructor(PPresentationChild* actor) -> PPresentationChild* |
1599 | 0 | { |
1600 | 0 | if ((!(actor))) { |
1601 | 0 | NS_WARNING("Error constructing actor PPresentationChild"); |
1602 | 0 | return nullptr; |
1603 | 0 | } |
1604 | 0 | (actor)->SetManagerAndRegister(this); |
1605 | 0 | (mManagedPPresentationChild).PutEntry(actor); |
1606 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1607 | 0 |
|
1608 | 0 | IPC::Message* msg__ = PContent::Msg_PPresentationConstructor(MSG_ROUTING_CONTROL); |
1609 | 0 |
|
1610 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1611 | 0 | WriteIPDLParam(msg__, this, actor); |
1612 | 0 | // Sentinel = 'actor' |
1613 | 0 | (msg__)->WriteSentinel(875202478); |
1614 | 0 |
|
1615 | 0 |
|
1616 | 0 |
|
1617 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1618 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1619 | 0 | } |
1620 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PPresentationConstructor", OTHER); |
1621 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1622 | 0 | mozilla::ipc::LogicError("Transition error"); |
1623 | 0 | } |
1624 | 0 |
|
1625 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1626 | 0 | if ((!(sendok__))) { |
1627 | 0 | FatalError("constructor for actor failed"); |
1628 | 0 | return nullptr; |
1629 | 0 | } |
1630 | 0 | return actor; |
1631 | 0 | } |
1632 | | |
1633 | | auto PContentChild::SendCreateAudioIPCConnection( |
1634 | | mozilla::ipc::ResolveCallback<FileDescriptor>&& aResolve, |
1635 | | mozilla::ipc::RejectCallback&& aReject) -> void |
1636 | 0 | { |
1637 | 0 | IPC::Message* msg__ = PContent::Msg_CreateAudioIPCConnection(MSG_ROUTING_CONTROL); |
1638 | 0 |
|
1639 | 0 |
|
1640 | 0 |
|
1641 | 0 |
|
1642 | 0 |
|
1643 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1644 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1645 | 0 | } |
1646 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateAudioIPCConnection", OTHER); |
1647 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1648 | 0 | mozilla::ipc::LogicError("Transition error"); |
1649 | 0 | } |
1650 | 0 |
|
1651 | 0 | (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject)); |
1652 | 0 | return; |
1653 | 0 | } |
1654 | | |
1655 | | auto PContentChild::SendCreateAudioIPCConnection() -> RefPtr<CreateAudioIPCConnectionPromise> |
1656 | 0 | { |
1657 | 0 |
|
1658 | 0 | RefPtr<MozPromise<FileDescriptor, ResponseRejectReason, false>::Private> promise__ = new MozPromise<FileDescriptor, ResponseRejectReason, false>::Private(__func__); |
1659 | 0 |
|
1660 | 0 | SendCreateAudioIPCConnection([promise__](FileDescriptor&& aValue) { |
1661 | 0 | (promise__)->Resolve(std::move(aValue), __func__); |
1662 | 0 | }, [promise__](ResponseRejectReason aReason) { |
1663 | 0 | (promise__)->Reject(aReason, __func__); |
1664 | 0 | }); |
1665 | 0 | return promise__; |
1666 | 0 | } |
1667 | | |
1668 | | auto PContentChild::SendPURLClassifierConstructor( |
1669 | | const Principal& principal, |
1670 | | const bool& useTrackingProtection, |
1671 | | bool* success) -> PURLClassifierChild* |
1672 | 0 | { |
1673 | 0 | return SendPURLClassifierConstructor(AllocPURLClassifierChild(principal, useTrackingProtection, success), principal, useTrackingProtection, success); |
1674 | 0 | } |
1675 | | |
1676 | | auto PContentChild::SendPURLClassifierConstructor( |
1677 | | PURLClassifierChild* actor, |
1678 | | const Principal& principal, |
1679 | | const bool& useTrackingProtection, |
1680 | | bool* success) -> PURLClassifierChild* |
1681 | 0 | { |
1682 | 0 | if ((!(actor))) { |
1683 | 0 | NS_WARNING("Error constructing actor PURLClassifierChild"); |
1684 | 0 | return nullptr; |
1685 | 0 | } |
1686 | 0 | (actor)->SetManagerAndRegister(this); |
1687 | 0 | (mManagedPURLClassifierChild).PutEntry(actor); |
1688 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1689 | 0 |
|
1690 | 0 | IPC::Message* msg__ = PContent::Msg_PURLClassifierConstructor(MSG_ROUTING_CONTROL); |
1691 | 0 |
|
1692 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1693 | 0 | WriteIPDLParam(msg__, this, actor); |
1694 | 0 | // Sentinel = 'actor' |
1695 | 0 | (msg__)->WriteSentinel(875202478); |
1696 | 0 | WriteIPDLParam(msg__, this, principal); |
1697 | 0 | // Sentinel = 'principal' |
1698 | 0 | (msg__)->WriteSentinel(732240927); |
1699 | 0 | WriteIPDLParam(msg__, this, useTrackingProtection); |
1700 | 0 | // Sentinel = 'useTrackingProtection' |
1701 | 0 | (msg__)->WriteSentinel(3366740154); |
1702 | 0 |
|
1703 | 0 |
|
1704 | 0 |
|
1705 | 0 | Message reply__; |
1706 | 0 |
|
1707 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1708 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1709 | 0 | } |
1710 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierConstructor", OTHER); |
1711 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1712 | 0 | mozilla::ipc::LogicError("Transition error"); |
1713 | 0 | } |
1714 | 0 |
|
1715 | 0 | bool sendok__; |
1716 | 0 | { |
1717 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_PURLClassifierConstructor"); |
1718 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1719 | 0 | } |
1720 | 0 | if ((!(sendok__))) { |
1721 | 0 | FatalError("constructor for actor failed"); |
1722 | 0 | return nullptr; |
1723 | 0 | } |
1724 | 0 | |
1725 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1726 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1727 | 0 | } |
1728 | 0 |
|
1729 | 0 | PickleIterator iter__(reply__); |
1730 | 0 |
|
1731 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, success)))) { |
1732 | 0 | if (true) { |
1733 | 0 | FatalError("constructor for actor failed"); |
1734 | 0 | return nullptr; |
1735 | 0 | } |
1736 | 0 | } |
1737 | 0 | // Sentinel = 'success' |
1738 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3877396070)))) { |
1739 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1740 | 0 | return nullptr; |
1741 | 0 | } |
1742 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1743 | 0 | return actor; |
1744 | 0 | } |
1745 | | |
1746 | | auto PContentChild::SendClassifyLocal( |
1747 | | const URIParams& uri, |
1748 | | const nsCString& tables, |
1749 | | nsresult* rv, |
1750 | | nsTArray<nsCString>* results) -> bool |
1751 | 0 | { |
1752 | 0 | IPC::Message* msg__ = PContent::Msg_ClassifyLocal(MSG_ROUTING_CONTROL); |
1753 | 0 |
|
1754 | 0 | WriteIPDLParam(msg__, this, uri); |
1755 | 0 | // Sentinel = 'uri' |
1756 | 0 | (msg__)->WriteSentinel(1453210605); |
1757 | 0 | WriteIPDLParam(msg__, this, tables); |
1758 | 0 | // Sentinel = 'tables' |
1759 | 0 | (msg__)->WriteSentinel(1212380705); |
1760 | 0 |
|
1761 | 0 |
|
1762 | 0 |
|
1763 | 0 | Message reply__; |
1764 | 0 |
|
1765 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1766 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1767 | 0 | } |
1768 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ClassifyLocal", OTHER); |
1769 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1770 | 0 | mozilla::ipc::LogicError("Transition error"); |
1771 | 0 | } |
1772 | 0 |
|
1773 | 0 | bool sendok__; |
1774 | 0 | { |
1775 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_ClassifyLocal"); |
1776 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1777 | 0 | } |
1778 | 0 | if ((!(sendok__))) { |
1779 | 0 | return false; |
1780 | 0 | } |
1781 | 0 | |
1782 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1783 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1784 | 0 | } |
1785 | 0 |
|
1786 | 0 | PickleIterator iter__(reply__); |
1787 | 0 |
|
1788 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rv)))) { |
1789 | 0 | FatalError("Error deserializing 'nsresult'"); |
1790 | 0 | return false; |
1791 | 0 | } |
1792 | 0 | // Sentinel = 'rv' |
1793 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) { |
1794 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
1795 | 0 | return false; |
1796 | 0 | } |
1797 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, results)))) { |
1798 | 0 | FatalError("Error deserializing 'nsTArray'"); |
1799 | 0 | return false; |
1800 | 0 | } |
1801 | 0 | // Sentinel = 'results' |
1802 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1173657613)))) { |
1803 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
1804 | 0 | return false; |
1805 | 0 | } |
1806 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1807 | 0 |
|
1808 | 0 | return true; |
1809 | 0 | } |
1810 | | |
1811 | | auto PContentChild::SendPURLClassifierLocalConstructor( |
1812 | | const URIParams& uri, |
1813 | | const nsCString& tables) -> PURLClassifierLocalChild* |
1814 | 0 | { |
1815 | 0 | return SendPURLClassifierLocalConstructor(AllocPURLClassifierLocalChild(uri, tables), uri, tables); |
1816 | 0 | } |
1817 | | |
1818 | | auto PContentChild::SendPURLClassifierLocalConstructor( |
1819 | | PURLClassifierLocalChild* actor, |
1820 | | const URIParams& uri, |
1821 | | const nsCString& tables) -> PURLClassifierLocalChild* |
1822 | 0 | { |
1823 | 0 | if ((!(actor))) { |
1824 | 0 | NS_WARNING("Error constructing actor PURLClassifierLocalChild"); |
1825 | 0 | return nullptr; |
1826 | 0 | } |
1827 | 0 | (actor)->SetManagerAndRegister(this); |
1828 | 0 | (mManagedPURLClassifierLocalChild).PutEntry(actor); |
1829 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1830 | 0 |
|
1831 | 0 | IPC::Message* msg__ = PContent::Msg_PURLClassifierLocalConstructor(MSG_ROUTING_CONTROL); |
1832 | 0 |
|
1833 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1834 | 0 | WriteIPDLParam(msg__, this, actor); |
1835 | 0 | // Sentinel = 'actor' |
1836 | 0 | (msg__)->WriteSentinel(875202478); |
1837 | 0 | WriteIPDLParam(msg__, this, uri); |
1838 | 0 | // Sentinel = 'uri' |
1839 | 0 | (msg__)->WriteSentinel(1453210605); |
1840 | 0 | WriteIPDLParam(msg__, this, tables); |
1841 | 0 | // Sentinel = 'tables' |
1842 | 0 | (msg__)->WriteSentinel(1212380705); |
1843 | 0 |
|
1844 | 0 |
|
1845 | 0 |
|
1846 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1847 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1848 | 0 | } |
1849 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PURLClassifierLocalConstructor", OTHER); |
1850 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1851 | 0 | mozilla::ipc::LogicError("Transition error"); |
1852 | 0 | } |
1853 | 0 |
|
1854 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1855 | 0 | if ((!(sendok__))) { |
1856 | 0 | FatalError("constructor for actor failed"); |
1857 | 0 | return nullptr; |
1858 | 0 | } |
1859 | 0 | return actor; |
1860 | 0 | } |
1861 | | |
1862 | | auto PContentChild::SendPLoginReputationConstructor(const URIParams& formURI) -> PLoginReputationChild* |
1863 | 0 | { |
1864 | 0 | return SendPLoginReputationConstructor(AllocPLoginReputationChild(formURI), formURI); |
1865 | 0 | } |
1866 | | |
1867 | | auto PContentChild::SendPLoginReputationConstructor( |
1868 | | PLoginReputationChild* actor, |
1869 | | const URIParams& formURI) -> PLoginReputationChild* |
1870 | 0 | { |
1871 | 0 | if ((!(actor))) { |
1872 | 0 | NS_WARNING("Error constructing actor PLoginReputationChild"); |
1873 | 0 | return nullptr; |
1874 | 0 | } |
1875 | 0 | (actor)->SetManagerAndRegister(this); |
1876 | 0 | (mManagedPLoginReputationChild).PutEntry(actor); |
1877 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
1878 | 0 |
|
1879 | 0 | IPC::Message* msg__ = PContent::Msg_PLoginReputationConstructor(MSG_ROUTING_CONTROL); |
1880 | 0 |
|
1881 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
1882 | 0 | WriteIPDLParam(msg__, this, actor); |
1883 | 0 | // Sentinel = 'actor' |
1884 | 0 | (msg__)->WriteSentinel(875202478); |
1885 | 0 | WriteIPDLParam(msg__, this, formURI); |
1886 | 0 | // Sentinel = 'formURI' |
1887 | 0 | (msg__)->WriteSentinel(333511311); |
1888 | 0 |
|
1889 | 0 |
|
1890 | 0 |
|
1891 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1892 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1893 | 0 | } |
1894 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PLoginReputationConstructor", OTHER); |
1895 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1896 | 0 | mozilla::ipc::LogicError("Transition error"); |
1897 | 0 | } |
1898 | 0 |
|
1899 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1900 | 0 | if ((!(sendok__))) { |
1901 | 0 | FatalError("constructor for actor failed"); |
1902 | 0 | return nullptr; |
1903 | 0 | } |
1904 | 0 | return actor; |
1905 | 0 | } |
1906 | | |
1907 | | auto PContentChild::SendStartVisitedQuery(const URIParams& uri) -> bool |
1908 | 0 | { |
1909 | 0 | IPC::Message* msg__ = PContent::Msg_StartVisitedQuery(MSG_ROUTING_CONTROL); |
1910 | 0 |
|
1911 | 0 | WriteIPDLParam(msg__, this, uri); |
1912 | 0 | // Sentinel = 'uri' |
1913 | 0 | (msg__)->WriteSentinel(1453210605); |
1914 | 0 |
|
1915 | 0 |
|
1916 | 0 |
|
1917 | 0 |
|
1918 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1919 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1920 | 0 | } |
1921 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_StartVisitedQuery", OTHER); |
1922 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1923 | 0 | mozilla::ipc::LogicError("Transition error"); |
1924 | 0 | } |
1925 | 0 |
|
1926 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1927 | 0 | return sendok__; |
1928 | 0 | } |
1929 | | |
1930 | | auto PContentChild::SendVisitURI( |
1931 | | const URIParams& uri, |
1932 | | const OptionalURIParams& referrer, |
1933 | | const uint32_t& flags) -> bool |
1934 | 0 | { |
1935 | 0 | IPC::Message* msg__ = PContent::Msg_VisitURI(MSG_ROUTING_CONTROL); |
1936 | 0 |
|
1937 | 0 | WriteIPDLParam(msg__, this, uri); |
1938 | 0 | // Sentinel = 'uri' |
1939 | 0 | (msg__)->WriteSentinel(1453210605); |
1940 | 0 | WriteIPDLParam(msg__, this, referrer); |
1941 | 0 | // Sentinel = 'referrer' |
1942 | 0 | (msg__)->WriteSentinel(3770987113); |
1943 | 0 | WriteIPDLParam(msg__, this, flags); |
1944 | 0 | // Sentinel = 'flags' |
1945 | 0 | (msg__)->WriteSentinel(2550519284); |
1946 | 0 |
|
1947 | 0 |
|
1948 | 0 |
|
1949 | 0 |
|
1950 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1951 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1952 | 0 | } |
1953 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_VisitURI", OTHER); |
1954 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1955 | 0 | mozilla::ipc::LogicError("Transition error"); |
1956 | 0 | } |
1957 | 0 |
|
1958 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1959 | 0 | return sendok__; |
1960 | 0 | } |
1961 | | |
1962 | | auto PContentChild::SendSetURITitle( |
1963 | | const URIParams& uri, |
1964 | | const nsString& title) -> bool |
1965 | 0 | { |
1966 | 0 | IPC::Message* msg__ = PContent::Msg_SetURITitle(MSG_ROUTING_CONTROL); |
1967 | 0 |
|
1968 | 0 | WriteIPDLParam(msg__, this, uri); |
1969 | 0 | // Sentinel = 'uri' |
1970 | 0 | (msg__)->WriteSentinel(1453210605); |
1971 | 0 | WriteIPDLParam(msg__, this, title); |
1972 | 0 | // Sentinel = 'title' |
1973 | 0 | (msg__)->WriteSentinel(4272139303); |
1974 | 0 |
|
1975 | 0 |
|
1976 | 0 |
|
1977 | 0 |
|
1978 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
1979 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1980 | 0 | } |
1981 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetURITitle", OTHER); |
1982 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1983 | 0 | mozilla::ipc::LogicError("Transition error"); |
1984 | 0 | } |
1985 | 0 |
|
1986 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1987 | 0 | return sendok__; |
1988 | 0 | } |
1989 | | |
1990 | | auto PContentChild::SendLoadURIExternal( |
1991 | | const URIParams& uri, |
1992 | | PBrowserChild* windowContext) -> bool |
1993 | 0 | { |
1994 | 0 | IPC::Message* msg__ = PContent::Msg_LoadURIExternal(MSG_ROUTING_CONTROL); |
1995 | 0 |
|
1996 | 0 | WriteIPDLParam(msg__, this, uri); |
1997 | 0 | // Sentinel = 'uri' |
1998 | 0 | (msg__)->WriteSentinel(1453210605); |
1999 | 0 | MOZ_RELEASE_ASSERT(windowContext, "NULL actor value passed to non-nullable param"); |
2000 | 0 | WriteIPDLParam(msg__, this, windowContext); |
2001 | 0 | // Sentinel = 'windowContext' |
2002 | 0 | (msg__)->WriteSentinel(3429612728); |
2003 | 0 |
|
2004 | 0 |
|
2005 | 0 |
|
2006 | 0 |
|
2007 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2008 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2009 | 0 | } |
2010 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_LoadURIExternal", OTHER); |
2011 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2012 | 0 | mozilla::ipc::LogicError("Transition error"); |
2013 | 0 | } |
2014 | 0 |
|
2015 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2016 | 0 | return sendok__; |
2017 | 0 | } |
2018 | | |
2019 | | auto PContentChild::SendExtProtocolChannelConnectParent(const uint32_t& registrarId) -> bool |
2020 | 0 | { |
2021 | 0 | IPC::Message* msg__ = PContent::Msg_ExtProtocolChannelConnectParent(MSG_ROUTING_CONTROL); |
2022 | 0 |
|
2023 | 0 | WriteIPDLParam(msg__, this, registrarId); |
2024 | 0 | // Sentinel = 'registrarId' |
2025 | 0 | (msg__)->WriteSentinel(3202787989); |
2026 | 0 |
|
2027 | 0 |
|
2028 | 0 |
|
2029 | 0 |
|
2030 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2031 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2032 | 0 | } |
2033 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ExtProtocolChannelConnectParent", OTHER); |
2034 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2035 | 0 | mozilla::ipc::LogicError("Transition error"); |
2036 | 0 | } |
2037 | 0 |
|
2038 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2039 | 0 | return sendok__; |
2040 | 0 | } |
2041 | | |
2042 | | auto PContentChild::SendGetGfxVars(nsTArray<GfxVarUpdate>* vars) -> bool |
2043 | 0 | { |
2044 | 0 | IPC::Message* msg__ = PContent::Msg_GetGfxVars(MSG_ROUTING_CONTROL); |
2045 | 0 |
|
2046 | 0 |
|
2047 | 0 |
|
2048 | 0 |
|
2049 | 0 | Message reply__; |
2050 | 0 |
|
2051 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2052 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2053 | 0 | } |
2054 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetGfxVars", OTHER); |
2055 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2056 | 0 | mozilla::ipc::LogicError("Transition error"); |
2057 | 0 | } |
2058 | 0 |
|
2059 | 0 | bool sendok__; |
2060 | 0 | { |
2061 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetGfxVars"); |
2062 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2063 | 0 | } |
2064 | 0 | if ((!(sendok__))) { |
2065 | 0 | return false; |
2066 | 0 | } |
2067 | 0 | |
2068 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2069 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2070 | 0 | } |
2071 | 0 |
|
2072 | 0 | PickleIterator iter__(reply__); |
2073 | 0 |
|
2074 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, vars)))) { |
2075 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2076 | 0 | return false; |
2077 | 0 | } |
2078 | 0 | // Sentinel = 'vars' |
2079 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2632090118)))) { |
2080 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2081 | 0 | return false; |
2082 | 0 | } |
2083 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2084 | 0 |
|
2085 | 0 | return true; |
2086 | 0 | } |
2087 | | |
2088 | | auto PContentChild::SendReadFontList(nsTArray<FontListEntry>* retValue) -> bool |
2089 | 0 | { |
2090 | 0 | IPC::Message* msg__ = PContent::Msg_ReadFontList(MSG_ROUTING_CONTROL); |
2091 | 0 |
|
2092 | 0 |
|
2093 | 0 |
|
2094 | 0 |
|
2095 | 0 | Message reply__; |
2096 | 0 |
|
2097 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2098 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2099 | 0 | } |
2100 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ReadFontList", OTHER); |
2101 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2102 | 0 | mozilla::ipc::LogicError("Transition error"); |
2103 | 0 | } |
2104 | 0 |
|
2105 | 0 | bool sendok__; |
2106 | 0 | { |
2107 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_ReadFontList"); |
2108 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2109 | 0 | } |
2110 | 0 | if ((!(sendok__))) { |
2111 | 0 | return false; |
2112 | 0 | } |
2113 | 0 | |
2114 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2115 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2116 | 0 | } |
2117 | 0 |
|
2118 | 0 | PickleIterator iter__(reply__); |
2119 | 0 |
|
2120 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, retValue)))) { |
2121 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2122 | 0 | return false; |
2123 | 0 | } |
2124 | 0 | // Sentinel = 'retValue' |
2125 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3328961628)))) { |
2126 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2127 | 0 | return false; |
2128 | 0 | } |
2129 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2130 | 0 |
|
2131 | 0 | return true; |
2132 | 0 | } |
2133 | | |
2134 | | auto PContentChild::SendSyncMessage( |
2135 | | const nsString& aMessage, |
2136 | | const ClonedMessageData& aData, |
2137 | | const nsTArray<CpowEntry>& aCpows, |
2138 | | const Principal& aPrincipal, |
2139 | | nsTArray<StructuredCloneData>* retval) -> bool |
2140 | 0 | { |
2141 | 0 | IPC::Message* msg__ = PContent::Msg_SyncMessage(MSG_ROUTING_CONTROL); |
2142 | 0 |
|
2143 | 0 | WriteIPDLParam(msg__, this, aMessage); |
2144 | 0 | // Sentinel = 'aMessage' |
2145 | 0 | (msg__)->WriteSentinel(3453110902); |
2146 | 0 | WriteIPDLParam(msg__, this, aData); |
2147 | 0 | // Sentinel = 'aData' |
2148 | 0 | (msg__)->WriteSentinel(3285075324); |
2149 | 0 | WriteIPDLParam(msg__, this, aCpows); |
2150 | 0 | // Sentinel = 'aCpows' |
2151 | 0 | (msg__)->WriteSentinel(2178221451); |
2152 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
2153 | 0 | // Sentinel = 'aPrincipal' |
2154 | 0 | (msg__)->WriteSentinel(4097511); |
2155 | 0 |
|
2156 | 0 |
|
2157 | 0 |
|
2158 | 0 | Message reply__; |
2159 | 0 |
|
2160 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2161 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2162 | 0 | } |
2163 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SyncMessage", OTHER); |
2164 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2165 | 0 | mozilla::ipc::LogicError("Transition error"); |
2166 | 0 | } |
2167 | 0 |
|
2168 | 0 | bool sendok__; |
2169 | 0 | { |
2170 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_SyncMessage"); |
2171 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2172 | 0 | } |
2173 | 0 | if ((!(sendok__))) { |
2174 | 0 | return false; |
2175 | 0 | } |
2176 | 0 | |
2177 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2178 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2179 | 0 | } |
2180 | 0 |
|
2181 | 0 | PickleIterator iter__(reply__); |
2182 | 0 |
|
2183 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, retval)))) { |
2184 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2185 | 0 | return false; |
2186 | 0 | } |
2187 | 0 | // Sentinel = 'retval' |
2188 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3130628604)))) { |
2189 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2190 | 0 | return false; |
2191 | 0 | } |
2192 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2193 | 0 |
|
2194 | 0 | return true; |
2195 | 0 | } |
2196 | | |
2197 | | auto PContentChild::SendRpcMessage( |
2198 | | const nsString& aMessage, |
2199 | | const ClonedMessageData& aData, |
2200 | | const nsTArray<CpowEntry>& aCpows, |
2201 | | const Principal& aPrincipal, |
2202 | | nsTArray<StructuredCloneData>* retval) -> bool |
2203 | 0 | { |
2204 | 0 | IPC::Message* msg__ = PContent::Msg_RpcMessage(MSG_ROUTING_CONTROL); |
2205 | 0 |
|
2206 | 0 | WriteIPDLParam(msg__, this, aMessage); |
2207 | 0 | // Sentinel = 'aMessage' |
2208 | 0 | (msg__)->WriteSentinel(3453110902); |
2209 | 0 | WriteIPDLParam(msg__, this, aData); |
2210 | 0 | // Sentinel = 'aData' |
2211 | 0 | (msg__)->WriteSentinel(3285075324); |
2212 | 0 | WriteIPDLParam(msg__, this, aCpows); |
2213 | 0 | // Sentinel = 'aCpows' |
2214 | 0 | (msg__)->WriteSentinel(2178221451); |
2215 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
2216 | 0 | // Sentinel = 'aPrincipal' |
2217 | 0 | (msg__)->WriteSentinel(4097511); |
2218 | 0 |
|
2219 | 0 |
|
2220 | 0 |
|
2221 | 0 | Message reply__; |
2222 | 0 |
|
2223 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2224 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2225 | 0 | } |
2226 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RpcMessage", OTHER); |
2227 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2228 | 0 | mozilla::ipc::LogicError("Transition error"); |
2229 | 0 | } |
2230 | 0 |
|
2231 | 0 | bool sendok__; |
2232 | 0 | { |
2233 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_RpcMessage"); |
2234 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2235 | 0 | } |
2236 | 0 | if ((!(sendok__))) { |
2237 | 0 | return false; |
2238 | 0 | } |
2239 | 0 | |
2240 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2241 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2242 | 0 | } |
2243 | 0 |
|
2244 | 0 | PickleIterator iter__(reply__); |
2245 | 0 |
|
2246 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, retval)))) { |
2247 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2248 | 0 | return false; |
2249 | 0 | } |
2250 | 0 | // Sentinel = 'retval' |
2251 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3130628604)))) { |
2252 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2253 | 0 | return false; |
2254 | 0 | } |
2255 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2256 | 0 |
|
2257 | 0 | return true; |
2258 | 0 | } |
2259 | | |
2260 | | auto PContentChild::SendShowAlert(nsIAlertNotification* alert) -> bool |
2261 | 0 | { |
2262 | 0 | IPC::Message* msg__ = PContent::Msg_ShowAlert(MSG_ROUTING_CONTROL); |
2263 | 0 |
|
2264 | 0 | WriteIPDLParam(msg__, this, alert); |
2265 | 0 | // Sentinel = 'alert' |
2266 | 0 | (msg__)->WriteSentinel(3087341007); |
2267 | 0 |
|
2268 | 0 |
|
2269 | 0 |
|
2270 | 0 |
|
2271 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2272 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2273 | 0 | } |
2274 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ShowAlert", OTHER); |
2275 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2276 | 0 | mozilla::ipc::LogicError("Transition error"); |
2277 | 0 | } |
2278 | 0 |
|
2279 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2280 | 0 | return sendok__; |
2281 | 0 | } |
2282 | | |
2283 | | auto PContentChild::SendCloseAlert( |
2284 | | const nsString& name, |
2285 | | const Principal& principal) -> bool |
2286 | 0 | { |
2287 | 0 | IPC::Message* msg__ = PContent::Msg_CloseAlert(MSG_ROUTING_CONTROL); |
2288 | 0 |
|
2289 | 0 | WriteIPDLParam(msg__, this, name); |
2290 | 0 | // Sentinel = 'name' |
2291 | 0 | (msg__)->WriteSentinel(15034981); |
2292 | 0 | WriteIPDLParam(msg__, this, principal); |
2293 | 0 | // Sentinel = 'principal' |
2294 | 0 | (msg__)->WriteSentinel(732240927); |
2295 | 0 |
|
2296 | 0 |
|
2297 | 0 |
|
2298 | 0 |
|
2299 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2300 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2301 | 0 | } |
2302 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CloseAlert", OTHER); |
2303 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2304 | 0 | mozilla::ipc::LogicError("Transition error"); |
2305 | 0 | } |
2306 | 0 |
|
2307 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2308 | 0 | return sendok__; |
2309 | 0 | } |
2310 | | |
2311 | | auto PContentChild::SendDisableNotifications(const Principal& principal) -> bool |
2312 | 0 | { |
2313 | 0 | IPC::Message* msg__ = PContent::Msg_DisableNotifications(MSG_ROUTING_CONTROL); |
2314 | 0 |
|
2315 | 0 | WriteIPDLParam(msg__, this, principal); |
2316 | 0 | // Sentinel = 'principal' |
2317 | 0 | (msg__)->WriteSentinel(732240927); |
2318 | 0 |
|
2319 | 0 |
|
2320 | 0 |
|
2321 | 0 |
|
2322 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2323 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2324 | 0 | } |
2325 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DisableNotifications", OTHER); |
2326 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2327 | 0 | mozilla::ipc::LogicError("Transition error"); |
2328 | 0 | } |
2329 | 0 |
|
2330 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2331 | 0 | return sendok__; |
2332 | 0 | } |
2333 | | |
2334 | | auto PContentChild::SendOpenNotificationSettings(const Principal& principal) -> bool |
2335 | 0 | { |
2336 | 0 | IPC::Message* msg__ = PContent::Msg_OpenNotificationSettings(MSG_ROUTING_CONTROL); |
2337 | 0 |
|
2338 | 0 | WriteIPDLParam(msg__, this, principal); |
2339 | 0 | // Sentinel = 'principal' |
2340 | 0 | (msg__)->WriteSentinel(732240927); |
2341 | 0 |
|
2342 | 0 |
|
2343 | 0 |
|
2344 | 0 |
|
2345 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2346 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2347 | 0 | } |
2348 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_OpenNotificationSettings", OTHER); |
2349 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2350 | 0 | mozilla::ipc::LogicError("Transition error"); |
2351 | 0 | } |
2352 | 0 |
|
2353 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2354 | 0 | return sendok__; |
2355 | 0 | } |
2356 | | |
2357 | | auto PContentChild::SendPPSMContentDownloaderConstructor(const uint32_t& aCertType) -> PPSMContentDownloaderChild* |
2358 | 0 | { |
2359 | 0 | return SendPPSMContentDownloaderConstructor(AllocPPSMContentDownloaderChild(aCertType), aCertType); |
2360 | 0 | } |
2361 | | |
2362 | | auto PContentChild::SendPPSMContentDownloaderConstructor( |
2363 | | PPSMContentDownloaderChild* actor, |
2364 | | const uint32_t& aCertType) -> PPSMContentDownloaderChild* |
2365 | 0 | { |
2366 | 0 | if ((!(actor))) { |
2367 | 0 | NS_WARNING("Error constructing actor PPSMContentDownloaderChild"); |
2368 | 0 | return nullptr; |
2369 | 0 | } |
2370 | 0 | (actor)->SetManagerAndRegister(this); |
2371 | 0 | (mManagedPPSMContentDownloaderChild).PutEntry(actor); |
2372 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
2373 | 0 |
|
2374 | 0 | IPC::Message* msg__ = PContent::Msg_PPSMContentDownloaderConstructor(MSG_ROUTING_CONTROL); |
2375 | 0 |
|
2376 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
2377 | 0 | WriteIPDLParam(msg__, this, actor); |
2378 | 0 | // Sentinel = 'actor' |
2379 | 0 | (msg__)->WriteSentinel(875202478); |
2380 | 0 | WriteIPDLParam(msg__, this, aCertType); |
2381 | 0 | // Sentinel = 'aCertType' |
2382 | 0 | (msg__)->WriteSentinel(919891650); |
2383 | 0 |
|
2384 | 0 |
|
2385 | 0 |
|
2386 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2387 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2388 | 0 | } |
2389 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PPSMContentDownloaderConstructor", OTHER); |
2390 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2391 | 0 | mozilla::ipc::LogicError("Transition error"); |
2392 | 0 | } |
2393 | 0 |
|
2394 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2395 | 0 | if ((!(sendok__))) { |
2396 | 0 | FatalError("constructor for actor failed"); |
2397 | 0 | return nullptr; |
2398 | 0 | } |
2399 | 0 | return actor; |
2400 | 0 | } |
2401 | | |
2402 | | auto PContentChild::SendPExternalHelperAppConstructor( |
2403 | | const OptionalURIParams& uri, |
2404 | | const nsCString& aMimeContentType, |
2405 | | const nsCString& aContentDisposition, |
2406 | | const uint32_t& aContentDispositionHint, |
2407 | | const nsString& aContentDispositionFilename, |
2408 | | const bool& aForceSave, |
2409 | | const int64_t& aContentLength, |
2410 | | const bool& aWasFileChannel, |
2411 | | const OptionalURIParams& aReferrer, |
2412 | | PBrowserChild* aBrowser) -> PExternalHelperAppChild* |
2413 | 0 | { |
2414 | 0 | return SendPExternalHelperAppConstructor(AllocPExternalHelperAppChild(uri, aMimeContentType, aContentDisposition, aContentDispositionHint, aContentDispositionFilename, aForceSave, aContentLength, aWasFileChannel, aReferrer, aBrowser), uri, aMimeContentType, aContentDisposition, aContentDispositionHint, aContentDispositionFilename, aForceSave, aContentLength, aWasFileChannel, aReferrer, aBrowser); |
2415 | 0 | } |
2416 | | |
2417 | | auto PContentChild::SendPExternalHelperAppConstructor( |
2418 | | PExternalHelperAppChild* actor, |
2419 | | const OptionalURIParams& uri, |
2420 | | const nsCString& aMimeContentType, |
2421 | | const nsCString& aContentDisposition, |
2422 | | const uint32_t& aContentDispositionHint, |
2423 | | const nsString& aContentDispositionFilename, |
2424 | | const bool& aForceSave, |
2425 | | const int64_t& aContentLength, |
2426 | | const bool& aWasFileChannel, |
2427 | | const OptionalURIParams& aReferrer, |
2428 | | PBrowserChild* aBrowser) -> PExternalHelperAppChild* |
2429 | 0 | { |
2430 | 0 | if ((!(actor))) { |
2431 | 0 | NS_WARNING("Error constructing actor PExternalHelperAppChild"); |
2432 | 0 | return nullptr; |
2433 | 0 | } |
2434 | 0 | (actor)->SetManagerAndRegister(this); |
2435 | 0 | (mManagedPExternalHelperAppChild).PutEntry(actor); |
2436 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
2437 | 0 |
|
2438 | 0 | IPC::Message* msg__ = PContent::Msg_PExternalHelperAppConstructor(MSG_ROUTING_CONTROL); |
2439 | 0 |
|
2440 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
2441 | 0 | WriteIPDLParam(msg__, this, actor); |
2442 | 0 | // Sentinel = 'actor' |
2443 | 0 | (msg__)->WriteSentinel(875202478); |
2444 | 0 | WriteIPDLParam(msg__, this, uri); |
2445 | 0 | // Sentinel = 'uri' |
2446 | 0 | (msg__)->WriteSentinel(1453210605); |
2447 | 0 | WriteIPDLParam(msg__, this, aMimeContentType); |
2448 | 0 | // Sentinel = 'aMimeContentType' |
2449 | 0 | (msg__)->WriteSentinel(1001170972); |
2450 | 0 | WriteIPDLParam(msg__, this, aContentDisposition); |
2451 | 0 | // Sentinel = 'aContentDisposition' |
2452 | 0 | (msg__)->WriteSentinel(2499070154); |
2453 | 0 | WriteIPDLParam(msg__, this, aContentDispositionHint); |
2454 | 0 | // Sentinel = 'aContentDispositionHint' |
2455 | 0 | (msg__)->WriteSentinel(4044281289); |
2456 | 0 | WriteIPDLParam(msg__, this, aContentDispositionFilename); |
2457 | 0 | // Sentinel = 'aContentDispositionFilename' |
2458 | 0 | (msg__)->WriteSentinel(3976510585); |
2459 | 0 | WriteIPDLParam(msg__, this, aForceSave); |
2460 | 0 | // Sentinel = 'aForceSave' |
2461 | 0 | (msg__)->WriteSentinel(1729926259); |
2462 | 0 | WriteIPDLParam(msg__, this, aContentLength); |
2463 | 0 | // Sentinel = 'aContentLength' |
2464 | 0 | (msg__)->WriteSentinel(773059686); |
2465 | 0 | WriteIPDLParam(msg__, this, aWasFileChannel); |
2466 | 0 | // Sentinel = 'aWasFileChannel' |
2467 | 0 | (msg__)->WriteSentinel(2398731776); |
2468 | 0 | WriteIPDLParam(msg__, this, aReferrer); |
2469 | 0 | // Sentinel = 'aReferrer' |
2470 | 0 | (msg__)->WriteSentinel(1461587361); |
2471 | 0 | WriteIPDLParam(msg__, this, aBrowser); |
2472 | 0 | // Sentinel = 'aBrowser' |
2473 | 0 | (msg__)->WriteSentinel(3086016059); |
2474 | 0 |
|
2475 | 0 |
|
2476 | 0 |
|
2477 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2478 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2479 | 0 | } |
2480 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PExternalHelperAppConstructor", OTHER); |
2481 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2482 | 0 | mozilla::ipc::LogicError("Transition error"); |
2483 | 0 | } |
2484 | 0 |
|
2485 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2486 | 0 | if ((!(sendok__))) { |
2487 | 0 | FatalError("constructor for actor failed"); |
2488 | 0 | return nullptr; |
2489 | 0 | } |
2490 | 0 | return actor; |
2491 | 0 | } |
2492 | | |
2493 | | auto PContentChild::SendPHandlerServiceConstructor() -> PHandlerServiceChild* |
2494 | 0 | { |
2495 | 0 | return SendPHandlerServiceConstructor(AllocPHandlerServiceChild()); |
2496 | 0 | } |
2497 | | |
2498 | | auto PContentChild::SendPHandlerServiceConstructor(PHandlerServiceChild* actor) -> PHandlerServiceChild* |
2499 | 0 | { |
2500 | 0 | if ((!(actor))) { |
2501 | 0 | NS_WARNING("Error constructing actor PHandlerServiceChild"); |
2502 | 0 | return nullptr; |
2503 | 0 | } |
2504 | 0 | (actor)->SetManagerAndRegister(this); |
2505 | 0 | (mManagedPHandlerServiceChild).PutEntry(actor); |
2506 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
2507 | 0 |
|
2508 | 0 | IPC::Message* msg__ = PContent::Msg_PHandlerServiceConstructor(MSG_ROUTING_CONTROL); |
2509 | 0 |
|
2510 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
2511 | 0 | WriteIPDLParam(msg__, this, actor); |
2512 | 0 | // Sentinel = 'actor' |
2513 | 0 | (msg__)->WriteSentinel(875202478); |
2514 | 0 |
|
2515 | 0 |
|
2516 | 0 |
|
2517 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2518 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2519 | 0 | } |
2520 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PHandlerServiceConstructor", OTHER); |
2521 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2522 | 0 | mozilla::ipc::LogicError("Transition error"); |
2523 | 0 | } |
2524 | 0 |
|
2525 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2526 | 0 | if ((!(sendok__))) { |
2527 | 0 | FatalError("constructor for actor failed"); |
2528 | 0 | return nullptr; |
2529 | 0 | } |
2530 | 0 | return actor; |
2531 | 0 | } |
2532 | | |
2533 | | auto PContentChild::SendAddGeolocationListener( |
2534 | | const Principal& principal, |
2535 | | const bool& highAccuracy) -> bool |
2536 | 0 | { |
2537 | 0 | IPC::Message* msg__ = PContent::Msg_AddGeolocationListener(MSG_ROUTING_CONTROL); |
2538 | 0 |
|
2539 | 0 | WriteIPDLParam(msg__, this, principal); |
2540 | 0 | // Sentinel = 'principal' |
2541 | 0 | (msg__)->WriteSentinel(732240927); |
2542 | 0 | WriteIPDLParam(msg__, this, highAccuracy); |
2543 | 0 | // Sentinel = 'highAccuracy' |
2544 | 0 | (msg__)->WriteSentinel(369486639); |
2545 | 0 |
|
2546 | 0 |
|
2547 | 0 |
|
2548 | 0 |
|
2549 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2550 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2551 | 0 | } |
2552 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddGeolocationListener", OTHER); |
2553 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2554 | 0 | mozilla::ipc::LogicError("Transition error"); |
2555 | 0 | } |
2556 | 0 |
|
2557 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2558 | 0 | return sendok__; |
2559 | 0 | } |
2560 | | |
2561 | | auto PContentChild::SendRemoveGeolocationListener() -> bool |
2562 | 0 | { |
2563 | 0 | IPC::Message* msg__ = PContent::Msg_RemoveGeolocationListener(MSG_ROUTING_CONTROL); |
2564 | 0 |
|
2565 | 0 |
|
2566 | 0 |
|
2567 | 0 |
|
2568 | 0 |
|
2569 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2570 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2571 | 0 | } |
2572 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RemoveGeolocationListener", OTHER); |
2573 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2574 | 0 | mozilla::ipc::LogicError("Transition error"); |
2575 | 0 | } |
2576 | 0 |
|
2577 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2578 | 0 | return sendok__; |
2579 | 0 | } |
2580 | | |
2581 | | auto PContentChild::SendSetGeolocationHigherAccuracy(const bool& enable) -> bool |
2582 | 0 | { |
2583 | 0 | IPC::Message* msg__ = PContent::Msg_SetGeolocationHigherAccuracy(MSG_ROUTING_CONTROL); |
2584 | 0 |
|
2585 | 0 | WriteIPDLParam(msg__, this, enable); |
2586 | 0 | // Sentinel = 'enable' |
2587 | 0 | (msg__)->WriteSentinel(399314243); |
2588 | 0 |
|
2589 | 0 |
|
2590 | 0 |
|
2591 | 0 |
|
2592 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2593 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2594 | 0 | } |
2595 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetGeolocationHigherAccuracy", OTHER); |
2596 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2597 | 0 | mozilla::ipc::LogicError("Transition error"); |
2598 | 0 | } |
2599 | 0 |
|
2600 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2601 | 0 | return sendok__; |
2602 | 0 | } |
2603 | | |
2604 | | auto PContentChild::SendConsoleMessage(const nsString& message) -> bool |
2605 | 0 | { |
2606 | 0 | IPC::Message* msg__ = PContent::Msg_ConsoleMessage(MSG_ROUTING_CONTROL); |
2607 | 0 |
|
2608 | 0 | WriteIPDLParam(msg__, this, message); |
2609 | 0 | // Sentinel = 'message' |
2610 | 0 | (msg__)->WriteSentinel(1366108954); |
2611 | 0 |
|
2612 | 0 |
|
2613 | 0 |
|
2614 | 0 |
|
2615 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2616 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2617 | 0 | } |
2618 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ConsoleMessage", OTHER); |
2619 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2620 | 0 | mozilla::ipc::LogicError("Transition error"); |
2621 | 0 | } |
2622 | 0 |
|
2623 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2624 | 0 | return sendok__; |
2625 | 0 | } |
2626 | | |
2627 | | auto PContentChild::SendScriptError( |
2628 | | const nsString& message, |
2629 | | const nsString& sourceName, |
2630 | | const nsString& sourceLine, |
2631 | | const uint32_t& lineNumber, |
2632 | | const uint32_t& colNumber, |
2633 | | const uint32_t& flags, |
2634 | | const nsCString& category, |
2635 | | const bool& privateWindow) -> bool |
2636 | 0 | { |
2637 | 0 | IPC::Message* msg__ = PContent::Msg_ScriptError(MSG_ROUTING_CONTROL); |
2638 | 0 |
|
2639 | 0 | WriteIPDLParam(msg__, this, message); |
2640 | 0 | // Sentinel = 'message' |
2641 | 0 | (msg__)->WriteSentinel(1366108954); |
2642 | 0 | WriteIPDLParam(msg__, this, sourceName); |
2643 | 0 | // Sentinel = 'sourceName' |
2644 | 0 | (msg__)->WriteSentinel(725837832); |
2645 | 0 | WriteIPDLParam(msg__, this, sourceLine); |
2646 | 0 | // Sentinel = 'sourceLine' |
2647 | 0 | (msg__)->WriteSentinel(2099440551); |
2648 | 0 | WriteIPDLParam(msg__, this, lineNumber); |
2649 | 0 | // Sentinel = 'lineNumber' |
2650 | 0 | (msg__)->WriteSentinel(1005376855); |
2651 | 0 | WriteIPDLParam(msg__, this, colNumber); |
2652 | 0 | // Sentinel = 'colNumber' |
2653 | 0 | (msg__)->WriteSentinel(1714268980); |
2654 | 0 | WriteIPDLParam(msg__, this, flags); |
2655 | 0 | // Sentinel = 'flags' |
2656 | 0 | (msg__)->WriteSentinel(2550519284); |
2657 | 0 | WriteIPDLParam(msg__, this, category); |
2658 | 0 | // Sentinel = 'category' |
2659 | 0 | (msg__)->WriteSentinel(1962932896); |
2660 | 0 | WriteIPDLParam(msg__, this, privateWindow); |
2661 | 0 | // Sentinel = 'privateWindow' |
2662 | 0 | (msg__)->WriteSentinel(3677713676); |
2663 | 0 |
|
2664 | 0 |
|
2665 | 0 |
|
2666 | 0 |
|
2667 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2668 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2669 | 0 | } |
2670 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ScriptError", OTHER); |
2671 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2672 | 0 | mozilla::ipc::LogicError("Transition error"); |
2673 | 0 | } |
2674 | 0 |
|
2675 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2676 | 0 | return sendok__; |
2677 | 0 | } |
2678 | | |
2679 | | auto PContentChild::SendScriptErrorWithStack( |
2680 | | const nsString& message, |
2681 | | const nsString& sourceName, |
2682 | | const nsString& sourceLine, |
2683 | | const uint32_t& lineNumber, |
2684 | | const uint32_t& colNumber, |
2685 | | const uint32_t& flags, |
2686 | | const nsCString& category, |
2687 | | const bool& privateWindow, |
2688 | | const ClonedMessageData& stack) -> bool |
2689 | 0 | { |
2690 | 0 | IPC::Message* msg__ = PContent::Msg_ScriptErrorWithStack(MSG_ROUTING_CONTROL); |
2691 | 0 |
|
2692 | 0 | WriteIPDLParam(msg__, this, message); |
2693 | 0 | // Sentinel = 'message' |
2694 | 0 | (msg__)->WriteSentinel(1366108954); |
2695 | 0 | WriteIPDLParam(msg__, this, sourceName); |
2696 | 0 | // Sentinel = 'sourceName' |
2697 | 0 | (msg__)->WriteSentinel(725837832); |
2698 | 0 | WriteIPDLParam(msg__, this, sourceLine); |
2699 | 0 | // Sentinel = 'sourceLine' |
2700 | 0 | (msg__)->WriteSentinel(2099440551); |
2701 | 0 | WriteIPDLParam(msg__, this, lineNumber); |
2702 | 0 | // Sentinel = 'lineNumber' |
2703 | 0 | (msg__)->WriteSentinel(1005376855); |
2704 | 0 | WriteIPDLParam(msg__, this, colNumber); |
2705 | 0 | // Sentinel = 'colNumber' |
2706 | 0 | (msg__)->WriteSentinel(1714268980); |
2707 | 0 | WriteIPDLParam(msg__, this, flags); |
2708 | 0 | // Sentinel = 'flags' |
2709 | 0 | (msg__)->WriteSentinel(2550519284); |
2710 | 0 | WriteIPDLParam(msg__, this, category); |
2711 | 0 | // Sentinel = 'category' |
2712 | 0 | (msg__)->WriteSentinel(1962932896); |
2713 | 0 | WriteIPDLParam(msg__, this, privateWindow); |
2714 | 0 | // Sentinel = 'privateWindow' |
2715 | 0 | (msg__)->WriteSentinel(3677713676); |
2716 | 0 | WriteIPDLParam(msg__, this, stack); |
2717 | 0 | // Sentinel = 'stack' |
2718 | 0 | (msg__)->WriteSentinel(2105644509); |
2719 | 0 |
|
2720 | 0 |
|
2721 | 0 |
|
2722 | 0 |
|
2723 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2724 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2725 | 0 | } |
2726 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ScriptErrorWithStack", OTHER); |
2727 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2728 | 0 | mozilla::ipc::LogicError("Transition error"); |
2729 | 0 | } |
2730 | 0 |
|
2731 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2732 | 0 | return sendok__; |
2733 | 0 | } |
2734 | | |
2735 | | auto PContentChild::SendSetClipboard( |
2736 | | const IPCDataTransfer& aDataTransfer, |
2737 | | const bool& aIsPrivateData, |
2738 | | const Principal& aRequestingPrincipal, |
2739 | | const uint32_t& aContentPolicyType, |
2740 | | const int32_t& aWhichClipboard) -> bool |
2741 | 0 | { |
2742 | 0 | IPC::Message* msg__ = PContent::Msg_SetClipboard(MSG_ROUTING_CONTROL); |
2743 | 0 |
|
2744 | 0 | WriteIPDLParam(msg__, this, aDataTransfer); |
2745 | 0 | // Sentinel = 'aDataTransfer' |
2746 | 0 | (msg__)->WriteSentinel(234514541); |
2747 | 0 | WriteIPDLParam(msg__, this, aIsPrivateData); |
2748 | 0 | // Sentinel = 'aIsPrivateData' |
2749 | 0 | (msg__)->WriteSentinel(1857969960); |
2750 | 0 | WriteIPDLParam(msg__, this, aRequestingPrincipal); |
2751 | 0 | // Sentinel = 'aRequestingPrincipal' |
2752 | 0 | (msg__)->WriteSentinel(2772545910); |
2753 | 0 | WriteIPDLParam(msg__, this, aContentPolicyType); |
2754 | 0 | // Sentinel = 'aContentPolicyType' |
2755 | 0 | (msg__)->WriteSentinel(2302108504); |
2756 | 0 | WriteIPDLParam(msg__, this, aWhichClipboard); |
2757 | 0 | // Sentinel = 'aWhichClipboard' |
2758 | 0 | (msg__)->WriteSentinel(4216338969); |
2759 | 0 |
|
2760 | 0 |
|
2761 | 0 |
|
2762 | 0 |
|
2763 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2764 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2765 | 0 | } |
2766 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetClipboard", OTHER); |
2767 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2768 | 0 | mozilla::ipc::LogicError("Transition error"); |
2769 | 0 | } |
2770 | 0 |
|
2771 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2772 | 0 | return sendok__; |
2773 | 0 | } |
2774 | | |
2775 | | auto PContentChild::SendGetClipboard( |
2776 | | const nsTArray<nsCString>& aTypes, |
2777 | | const int32_t& aWhichClipboard, |
2778 | | IPCDataTransfer* dataTransfer) -> bool |
2779 | 0 | { |
2780 | 0 | IPC::Message* msg__ = PContent::Msg_GetClipboard(MSG_ROUTING_CONTROL); |
2781 | 0 |
|
2782 | 0 | WriteIPDLParam(msg__, this, aTypes); |
2783 | 0 | // Sentinel = 'aTypes' |
2784 | 0 | (msg__)->WriteSentinel(2467002798); |
2785 | 0 | WriteIPDLParam(msg__, this, aWhichClipboard); |
2786 | 0 | // Sentinel = 'aWhichClipboard' |
2787 | 0 | (msg__)->WriteSentinel(4216338969); |
2788 | 0 |
|
2789 | 0 |
|
2790 | 0 |
|
2791 | 0 | Message reply__; |
2792 | 0 |
|
2793 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2794 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2795 | 0 | } |
2796 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetClipboard", OTHER); |
2797 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2798 | 0 | mozilla::ipc::LogicError("Transition error"); |
2799 | 0 | } |
2800 | 0 |
|
2801 | 0 | bool sendok__; |
2802 | 0 | { |
2803 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetClipboard"); |
2804 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2805 | 0 | } |
2806 | 0 | if ((!(sendok__))) { |
2807 | 0 | return false; |
2808 | 0 | } |
2809 | 0 | |
2810 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2811 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2812 | 0 | } |
2813 | 0 |
|
2814 | 0 | PickleIterator iter__(reply__); |
2815 | 0 |
|
2816 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, dataTransfer)))) { |
2817 | 0 | FatalError("Error deserializing 'IPCDataTransfer'"); |
2818 | 0 | return false; |
2819 | 0 | } |
2820 | 0 | // Sentinel = 'dataTransfer' |
2821 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2250342981)))) { |
2822 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IPCDataTransfer'"); |
2823 | 0 | return false; |
2824 | 0 | } |
2825 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2826 | 0 |
|
2827 | 0 | return true; |
2828 | 0 | } |
2829 | | |
2830 | | auto PContentChild::SendGetExternalClipboardFormats( |
2831 | | const int32_t& aWhichClipboard, |
2832 | | const bool& aPlainTextOnly, |
2833 | | nsTArray<nsCString>* aTypes) -> bool |
2834 | 0 | { |
2835 | 0 | IPC::Message* msg__ = PContent::Msg_GetExternalClipboardFormats(MSG_ROUTING_CONTROL); |
2836 | 0 |
|
2837 | 0 | WriteIPDLParam(msg__, this, aWhichClipboard); |
2838 | 0 | // Sentinel = 'aWhichClipboard' |
2839 | 0 | (msg__)->WriteSentinel(4216338969); |
2840 | 0 | WriteIPDLParam(msg__, this, aPlainTextOnly); |
2841 | 0 | // Sentinel = 'aPlainTextOnly' |
2842 | 0 | (msg__)->WriteSentinel(4270627318); |
2843 | 0 |
|
2844 | 0 |
|
2845 | 0 |
|
2846 | 0 | Message reply__; |
2847 | 0 |
|
2848 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2849 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2850 | 0 | } |
2851 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetExternalClipboardFormats", OTHER); |
2852 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2853 | 0 | mozilla::ipc::LogicError("Transition error"); |
2854 | 0 | } |
2855 | 0 |
|
2856 | 0 | bool sendok__; |
2857 | 0 | { |
2858 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetExternalClipboardFormats"); |
2859 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2860 | 0 | } |
2861 | 0 | if ((!(sendok__))) { |
2862 | 0 | return false; |
2863 | 0 | } |
2864 | 0 | |
2865 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2866 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2867 | 0 | } |
2868 | 0 |
|
2869 | 0 | PickleIterator iter__(reply__); |
2870 | 0 |
|
2871 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aTypes)))) { |
2872 | 0 | FatalError("Error deserializing 'nsTArray'"); |
2873 | 0 | return false; |
2874 | 0 | } |
2875 | 0 | // Sentinel = 'aTypes' |
2876 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2467002798)))) { |
2877 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2878 | 0 | return false; |
2879 | 0 | } |
2880 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2881 | 0 |
|
2882 | 0 | return true; |
2883 | 0 | } |
2884 | | |
2885 | | auto PContentChild::SendEmptyClipboard(const int32_t& aWhichClipboard) -> bool |
2886 | 0 | { |
2887 | 0 | IPC::Message* msg__ = PContent::Msg_EmptyClipboard(MSG_ROUTING_CONTROL); |
2888 | 0 |
|
2889 | 0 | WriteIPDLParam(msg__, this, aWhichClipboard); |
2890 | 0 | // Sentinel = 'aWhichClipboard' |
2891 | 0 | (msg__)->WriteSentinel(4216338969); |
2892 | 0 |
|
2893 | 0 |
|
2894 | 0 |
|
2895 | 0 |
|
2896 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2897 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2898 | 0 | } |
2899 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_EmptyClipboard", OTHER); |
2900 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2901 | 0 | mozilla::ipc::LogicError("Transition error"); |
2902 | 0 | } |
2903 | 0 |
|
2904 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2905 | 0 | return sendok__; |
2906 | 0 | } |
2907 | | |
2908 | | auto PContentChild::SendClipboardHasType( |
2909 | | const nsTArray<nsCString>& aTypes, |
2910 | | const int32_t& aWhichClipboard, |
2911 | | bool* hasType) -> bool |
2912 | 0 | { |
2913 | 0 | IPC::Message* msg__ = PContent::Msg_ClipboardHasType(MSG_ROUTING_CONTROL); |
2914 | 0 |
|
2915 | 0 | WriteIPDLParam(msg__, this, aTypes); |
2916 | 0 | // Sentinel = 'aTypes' |
2917 | 0 | (msg__)->WriteSentinel(2467002798); |
2918 | 0 | WriteIPDLParam(msg__, this, aWhichClipboard); |
2919 | 0 | // Sentinel = 'aWhichClipboard' |
2920 | 0 | (msg__)->WriteSentinel(4216338969); |
2921 | 0 |
|
2922 | 0 |
|
2923 | 0 |
|
2924 | 0 | Message reply__; |
2925 | 0 |
|
2926 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2927 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2928 | 0 | } |
2929 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ClipboardHasType", OTHER); |
2930 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2931 | 0 | mozilla::ipc::LogicError("Transition error"); |
2932 | 0 | } |
2933 | 0 |
|
2934 | 0 | bool sendok__; |
2935 | 0 | { |
2936 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_ClipboardHasType"); |
2937 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
2938 | 0 | } |
2939 | 0 | if ((!(sendok__))) { |
2940 | 0 | return false; |
2941 | 0 | } |
2942 | 0 | |
2943 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2944 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2945 | 0 | } |
2946 | 0 |
|
2947 | 0 | PickleIterator iter__(reply__); |
2948 | 0 |
|
2949 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, hasType)))) { |
2950 | 0 | FatalError("Error deserializing 'bool'"); |
2951 | 0 | return false; |
2952 | 0 | } |
2953 | 0 | // Sentinel = 'hasType' |
2954 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2839560423)))) { |
2955 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2956 | 0 | return false; |
2957 | 0 | } |
2958 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
2959 | 0 |
|
2960 | 0 | return true; |
2961 | 0 | } |
2962 | | |
2963 | | auto PContentChild::SendPlaySound(const URIParams& aURL) -> bool |
2964 | 0 | { |
2965 | 0 | IPC::Message* msg__ = PContent::Msg_PlaySound(MSG_ROUTING_CONTROL); |
2966 | 0 |
|
2967 | 0 | WriteIPDLParam(msg__, this, aURL); |
2968 | 0 | // Sentinel = 'aURL' |
2969 | 0 | (msg__)->WriteSentinel(2075506328); |
2970 | 0 |
|
2971 | 0 |
|
2972 | 0 |
|
2973 | 0 |
|
2974 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2975 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2976 | 0 | } |
2977 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PlaySound", OTHER); |
2978 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2979 | 0 | mozilla::ipc::LogicError("Transition error"); |
2980 | 0 | } |
2981 | 0 |
|
2982 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
2983 | 0 | return sendok__; |
2984 | 0 | } |
2985 | | |
2986 | | auto PContentChild::SendBeep() -> bool |
2987 | 0 | { |
2988 | 0 | IPC::Message* msg__ = PContent::Msg_Beep(MSG_ROUTING_CONTROL); |
2989 | 0 |
|
2990 | 0 |
|
2991 | 0 |
|
2992 | 0 |
|
2993 | 0 |
|
2994 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
2995 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
2996 | 0 | } |
2997 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_Beep", OTHER); |
2998 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2999 | 0 | mozilla::ipc::LogicError("Transition error"); |
3000 | 0 | } |
3001 | 0 |
|
3002 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3003 | 0 | return sendok__; |
3004 | 0 | } |
3005 | | |
3006 | | auto PContentChild::SendPlayEventSound(const uint32_t& aEventId) -> bool |
3007 | 0 | { |
3008 | 0 | IPC::Message* msg__ = PContent::Msg_PlayEventSound(MSG_ROUTING_CONTROL); |
3009 | 0 |
|
3010 | 0 | WriteIPDLParam(msg__, this, aEventId); |
3011 | 0 | // Sentinel = 'aEventId' |
3012 | 0 | (msg__)->WriteSentinel(3092164244); |
3013 | 0 |
|
3014 | 0 |
|
3015 | 0 |
|
3016 | 0 |
|
3017 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3018 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3019 | 0 | } |
3020 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PlayEventSound", OTHER); |
3021 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3022 | 0 | mozilla::ipc::LogicError("Transition error"); |
3023 | 0 | } |
3024 | 0 |
|
3025 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3026 | 0 | return sendok__; |
3027 | 0 | } |
3028 | | |
3029 | | auto PContentChild::SendGetSystemColors( |
3030 | | const uint32_t& colorsCount, |
3031 | | nsTArray<uint32_t>* colors) -> bool |
3032 | 0 | { |
3033 | 0 | IPC::Message* msg__ = PContent::Msg_GetSystemColors(MSG_ROUTING_CONTROL); |
3034 | 0 |
|
3035 | 0 | WriteIPDLParam(msg__, this, colorsCount); |
3036 | 0 | // Sentinel = 'colorsCount' |
3037 | 0 | (msg__)->WriteSentinel(767523530); |
3038 | 0 |
|
3039 | 0 |
|
3040 | 0 |
|
3041 | 0 | Message reply__; |
3042 | 0 |
|
3043 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3044 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3045 | 0 | } |
3046 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetSystemColors", OTHER); |
3047 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3048 | 0 | mozilla::ipc::LogicError("Transition error"); |
3049 | 0 | } |
3050 | 0 |
|
3051 | 0 | bool sendok__; |
3052 | 0 | { |
3053 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetSystemColors"); |
3054 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3055 | 0 | } |
3056 | 0 | if ((!(sendok__))) { |
3057 | 0 | return false; |
3058 | 0 | } |
3059 | 0 | |
3060 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3061 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3062 | 0 | } |
3063 | 0 |
|
3064 | 0 | PickleIterator iter__(reply__); |
3065 | 0 |
|
3066 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, colors)))) { |
3067 | 0 | FatalError("Error deserializing 'nsTArray'"); |
3068 | 0 | return false; |
3069 | 0 | } |
3070 | 0 | // Sentinel = 'colors' |
3071 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2508874770)))) { |
3072 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
3073 | 0 | return false; |
3074 | 0 | } |
3075 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3076 | 0 |
|
3077 | 0 | return true; |
3078 | 0 | } |
3079 | | |
3080 | | auto PContentChild::SendGetIconForExtension( |
3081 | | const nsCString& aFileExt, |
3082 | | const uint32_t& aIconSize, |
3083 | | nsTArray<uint8_t>* bits) -> bool |
3084 | 0 | { |
3085 | 0 | IPC::Message* msg__ = PContent::Msg_GetIconForExtension(MSG_ROUTING_CONTROL); |
3086 | 0 |
|
3087 | 0 | WriteIPDLParam(msg__, this, aFileExt); |
3088 | 0 | // Sentinel = 'aFileExt' |
3089 | 0 | (msg__)->WriteSentinel(931144044); |
3090 | 0 | WriteIPDLParam(msg__, this, aIconSize); |
3091 | 0 | // Sentinel = 'aIconSize' |
3092 | 0 | (msg__)->WriteSentinel(3889311776); |
3093 | 0 |
|
3094 | 0 |
|
3095 | 0 |
|
3096 | 0 | Message reply__; |
3097 | 0 |
|
3098 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3099 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3100 | 0 | } |
3101 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetIconForExtension", OTHER); |
3102 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3103 | 0 | mozilla::ipc::LogicError("Transition error"); |
3104 | 0 | } |
3105 | 0 |
|
3106 | 0 | bool sendok__; |
3107 | 0 | { |
3108 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetIconForExtension"); |
3109 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3110 | 0 | } |
3111 | 0 | if ((!(sendok__))) { |
3112 | 0 | return false; |
3113 | 0 | } |
3114 | 0 | |
3115 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3116 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3117 | 0 | } |
3118 | 0 |
|
3119 | 0 | PickleIterator iter__(reply__); |
3120 | 0 |
|
3121 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, bits)))) { |
3122 | 0 | FatalError("Error deserializing 'nsTArray'"); |
3123 | 0 | return false; |
3124 | 0 | } |
3125 | 0 | // Sentinel = 'bits' |
3126 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2740652860)))) { |
3127 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
3128 | 0 | return false; |
3129 | 0 | } |
3130 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3131 | 0 |
|
3132 | 0 | return true; |
3133 | 0 | } |
3134 | | |
3135 | | auto PContentChild::SendGetShowPasswordSetting(bool* showPassword) -> bool |
3136 | 0 | { |
3137 | 0 | IPC::Message* msg__ = PContent::Msg_GetShowPasswordSetting(MSG_ROUTING_CONTROL); |
3138 | 0 |
|
3139 | 0 |
|
3140 | 0 |
|
3141 | 0 |
|
3142 | 0 | Message reply__; |
3143 | 0 |
|
3144 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3145 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3146 | 0 | } |
3147 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetShowPasswordSetting", OTHER); |
3148 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3149 | 0 | mozilla::ipc::LogicError("Transition error"); |
3150 | 0 | } |
3151 | 0 |
|
3152 | 0 | bool sendok__; |
3153 | 0 | { |
3154 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetShowPasswordSetting"); |
3155 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3156 | 0 | } |
3157 | 0 | if ((!(sendok__))) { |
3158 | 0 | return false; |
3159 | 0 | } |
3160 | 0 | |
3161 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3162 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3163 | 0 | } |
3164 | 0 |
|
3165 | 0 | PickleIterator iter__(reply__); |
3166 | 0 |
|
3167 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, showPassword)))) { |
3168 | 0 | FatalError("Error deserializing 'bool'"); |
3169 | 0 | return false; |
3170 | 0 | } |
3171 | 0 | // Sentinel = 'showPassword' |
3172 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2677726048)))) { |
3173 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
3174 | 0 | return false; |
3175 | 0 | } |
3176 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3177 | 0 |
|
3178 | 0 | return true; |
3179 | 0 | } |
3180 | | |
3181 | | auto PContentChild::SendPrivateDocShellsExist(const bool& aExist) -> bool |
3182 | 0 | { |
3183 | 0 | IPC::Message* msg__ = PContent::Msg_PrivateDocShellsExist(MSG_ROUTING_CONTROL); |
3184 | 0 |
|
3185 | 0 | WriteIPDLParam(msg__, this, aExist); |
3186 | 0 | // Sentinel = 'aExist' |
3187 | 0 | (msg__)->WriteSentinel(1481080944); |
3188 | 0 |
|
3189 | 0 |
|
3190 | 0 |
|
3191 | 0 |
|
3192 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3193 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3194 | 0 | } |
3195 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PrivateDocShellsExist", OTHER); |
3196 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3197 | 0 | mozilla::ipc::LogicError("Transition error"); |
3198 | 0 | } |
3199 | 0 |
|
3200 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3201 | 0 | return sendok__; |
3202 | 0 | } |
3203 | | |
3204 | | auto PContentChild::SendFirstIdle() -> bool |
3205 | 0 | { |
3206 | 0 | IPC::Message* msg__ = PContent::Msg_FirstIdle(MSG_ROUTING_CONTROL); |
3207 | 0 |
|
3208 | 0 |
|
3209 | 0 |
|
3210 | 0 |
|
3211 | 0 |
|
3212 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3213 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3214 | 0 | } |
3215 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FirstIdle", OTHER); |
3216 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3217 | 0 | mozilla::ipc::LogicError("Transition error"); |
3218 | 0 | } |
3219 | 0 |
|
3220 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3221 | 0 | return sendok__; |
3222 | 0 | } |
3223 | | |
3224 | | auto PContentChild::SendDeviceReset() -> bool |
3225 | 0 | { |
3226 | 0 | IPC::Message* msg__ = PContent::Msg_DeviceReset(MSG_ROUTING_CONTROL); |
3227 | 0 |
|
3228 | 0 |
|
3229 | 0 |
|
3230 | 0 |
|
3231 | 0 |
|
3232 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3233 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3234 | 0 | } |
3235 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DeviceReset", OTHER); |
3236 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3237 | 0 | mozilla::ipc::LogicError("Transition error"); |
3238 | 0 | } |
3239 | 0 |
|
3240 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3241 | 0 | return sendok__; |
3242 | 0 | } |
3243 | | |
3244 | | auto PContentChild::SendKeywordToURI( |
3245 | | const nsCString& keyword, |
3246 | | nsString* providerName, |
3247 | | RefPtr<nsIInputStream>* postData, |
3248 | | OptionalURIParams* uri) -> bool |
3249 | 0 | { |
3250 | 0 | IPC::Message* msg__ = PContent::Msg_KeywordToURI(MSG_ROUTING_CONTROL); |
3251 | 0 |
|
3252 | 0 | WriteIPDLParam(msg__, this, keyword); |
3253 | 0 | // Sentinel = 'keyword' |
3254 | 0 | (msg__)->WriteSentinel(1802027878); |
3255 | 0 |
|
3256 | 0 |
|
3257 | 0 |
|
3258 | 0 | Message reply__; |
3259 | 0 |
|
3260 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3261 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3262 | 0 | } |
3263 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_KeywordToURI", OTHER); |
3264 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3265 | 0 | mozilla::ipc::LogicError("Transition error"); |
3266 | 0 | } |
3267 | 0 |
|
3268 | 0 | bool sendok__; |
3269 | 0 | { |
3270 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_KeywordToURI"); |
3271 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3272 | 0 | } |
3273 | 0 | if ((!(sendok__))) { |
3274 | 0 | return false; |
3275 | 0 | } |
3276 | 0 | |
3277 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3278 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3279 | 0 | } |
3280 | 0 |
|
3281 | 0 | PickleIterator iter__(reply__); |
3282 | 0 |
|
3283 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, providerName)))) { |
3284 | 0 | FatalError("Error deserializing 'nsString'"); |
3285 | 0 | return false; |
3286 | 0 | } |
3287 | 0 | // Sentinel = 'providerName' |
3288 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 876606310)))) { |
3289 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3290 | 0 | return false; |
3291 | 0 | } |
3292 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, postData)))) { |
3293 | 0 | FatalError("Error deserializing 'RefPtr'"); |
3294 | 0 | return false; |
3295 | 0 | } |
3296 | 0 | // Sentinel = 'postData' |
3297 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1373212390)))) { |
3298 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'RefPtr'"); |
3299 | 0 | return false; |
3300 | 0 | } |
3301 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, uri)))) { |
3302 | 0 | FatalError("Error deserializing 'OptionalURIParams'"); |
3303 | 0 | return false; |
3304 | 0 | } |
3305 | 0 | // Sentinel = 'uri' |
3306 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1453210605)))) { |
3307 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'"); |
3308 | 0 | return false; |
3309 | 0 | } |
3310 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3311 | 0 |
|
3312 | 0 | return true; |
3313 | 0 | } |
3314 | | |
3315 | | auto PContentChild::SendNotifyKeywordSearchLoading( |
3316 | | const nsString& providerName, |
3317 | | const nsString& keyword) -> bool |
3318 | 0 | { |
3319 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyKeywordSearchLoading(MSG_ROUTING_CONTROL); |
3320 | 0 |
|
3321 | 0 | WriteIPDLParam(msg__, this, providerName); |
3322 | 0 | // Sentinel = 'providerName' |
3323 | 0 | (msg__)->WriteSentinel(876606310); |
3324 | 0 | WriteIPDLParam(msg__, this, keyword); |
3325 | 0 | // Sentinel = 'keyword' |
3326 | 0 | (msg__)->WriteSentinel(1802027878); |
3327 | 0 |
|
3328 | 0 |
|
3329 | 0 |
|
3330 | 0 | Message reply__; |
3331 | 0 |
|
3332 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3333 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3334 | 0 | } |
3335 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyKeywordSearchLoading", OTHER); |
3336 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3337 | 0 | mozilla::ipc::LogicError("Transition error"); |
3338 | 0 | } |
3339 | 0 |
|
3340 | 0 | bool sendok__; |
3341 | 0 | { |
3342 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_NotifyKeywordSearchLoading"); |
3343 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3344 | 0 | } |
3345 | 0 | if ((!(sendok__))) { |
3346 | 0 | return false; |
3347 | 0 | } |
3348 | 0 | |
3349 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3350 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3351 | 0 | } |
3352 | 0 |
|
3353 | 0 | return true; |
3354 | 0 | } |
3355 | | |
3356 | | auto PContentChild::SendCopyFavicon( |
3357 | | const URIParams& oldURI, |
3358 | | const URIParams& newURI, |
3359 | | const Principal& aLoadingPrincipal, |
3360 | | const bool& isPrivate) -> bool |
3361 | 0 | { |
3362 | 0 | IPC::Message* msg__ = PContent::Msg_CopyFavicon(MSG_ROUTING_CONTROL); |
3363 | 0 |
|
3364 | 0 | WriteIPDLParam(msg__, this, oldURI); |
3365 | 0 | // Sentinel = 'oldURI' |
3366 | 0 | (msg__)->WriteSentinel(90428473); |
3367 | 0 | WriteIPDLParam(msg__, this, newURI); |
3368 | 0 | // Sentinel = 'newURI' |
3369 | 0 | (msg__)->WriteSentinel(1179970086); |
3370 | 0 | WriteIPDLParam(msg__, this, aLoadingPrincipal); |
3371 | 0 | // Sentinel = 'aLoadingPrincipal' |
3372 | 0 | (msg__)->WriteSentinel(4178989650); |
3373 | 0 | WriteIPDLParam(msg__, this, isPrivate); |
3374 | 0 | // Sentinel = 'isPrivate' |
3375 | 0 | (msg__)->WriteSentinel(4033294520); |
3376 | 0 |
|
3377 | 0 |
|
3378 | 0 |
|
3379 | 0 |
|
3380 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3381 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3382 | 0 | } |
3383 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CopyFavicon", OTHER); |
3384 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3385 | 0 | mozilla::ipc::LogicError("Transition error"); |
3386 | 0 | } |
3387 | 0 |
|
3388 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3389 | 0 | return sendok__; |
3390 | 0 | } |
3391 | | |
3392 | | auto PContentChild::SendAllocateLayerTreeId( |
3393 | | const ContentParentId& cpId, |
3394 | | const TabId& tabId, |
3395 | | LayersId* id) -> bool |
3396 | 0 | { |
3397 | 0 | IPC::Message* msg__ = PContent::Msg_AllocateLayerTreeId(MSG_ROUTING_CONTROL); |
3398 | 0 |
|
3399 | 0 | WriteIPDLParam(msg__, this, cpId); |
3400 | 0 | // Sentinel = 'cpId' |
3401 | 0 | (msg__)->WriteSentinel(2452595622); |
3402 | 0 | WriteIPDLParam(msg__, this, tabId); |
3403 | 0 | // Sentinel = 'tabId' |
3404 | 0 | (msg__)->WriteSentinel(3419081923); |
3405 | 0 |
|
3406 | 0 |
|
3407 | 0 |
|
3408 | 0 | Message reply__; |
3409 | 0 |
|
3410 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3411 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3412 | 0 | } |
3413 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AllocateLayerTreeId", OTHER); |
3414 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3415 | 0 | mozilla::ipc::LogicError("Transition error"); |
3416 | 0 | } |
3417 | 0 |
|
3418 | 0 | bool sendok__; |
3419 | 0 | { |
3420 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_AllocateLayerTreeId"); |
3421 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3422 | 0 | } |
3423 | 0 | if ((!(sendok__))) { |
3424 | 0 | return false; |
3425 | 0 | } |
3426 | 0 | |
3427 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3428 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3429 | 0 | } |
3430 | 0 |
|
3431 | 0 | PickleIterator iter__(reply__); |
3432 | 0 |
|
3433 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, id)))) { |
3434 | 0 | FatalError("Error deserializing 'LayersId'"); |
3435 | 0 | return false; |
3436 | 0 | } |
3437 | 0 | // Sentinel = 'id' |
3438 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
3439 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayersId'"); |
3440 | 0 | return false; |
3441 | 0 | } |
3442 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3443 | 0 |
|
3444 | 0 | return true; |
3445 | 0 | } |
3446 | | |
3447 | | auto PContentChild::SendDeallocateLayerTreeId( |
3448 | | const ContentParentId& cpId, |
3449 | | const LayersId& id) -> bool |
3450 | 0 | { |
3451 | 0 | IPC::Message* msg__ = PContent::Msg_DeallocateLayerTreeId(MSG_ROUTING_CONTROL); |
3452 | 0 |
|
3453 | 0 | WriteIPDLParam(msg__, this, cpId); |
3454 | 0 | // Sentinel = 'cpId' |
3455 | 0 | (msg__)->WriteSentinel(2452595622); |
3456 | 0 | WriteIPDLParam(msg__, this, id); |
3457 | 0 | // Sentinel = 'id' |
3458 | 0 | (msg__)->WriteSentinel(2794505629); |
3459 | 0 |
|
3460 | 0 |
|
3461 | 0 |
|
3462 | 0 |
|
3463 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3464 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3465 | 0 | } |
3466 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DeallocateLayerTreeId", OTHER); |
3467 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3468 | 0 | mozilla::ipc::LogicError("Transition error"); |
3469 | 0 | } |
3470 | 0 |
|
3471 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3472 | 0 | return sendok__; |
3473 | 0 | } |
3474 | | |
3475 | | auto PContentChild::SendRecordingDeviceEvents( |
3476 | | const nsString& recordingStatus, |
3477 | | const nsString& pageURL, |
3478 | | const bool& isAudio, |
3479 | | const bool& isVideo) -> bool |
3480 | 0 | { |
3481 | 0 | IPC::Message* msg__ = PContent::Msg_RecordingDeviceEvents(MSG_ROUTING_CONTROL); |
3482 | 0 |
|
3483 | 0 | WriteIPDLParam(msg__, this, recordingStatus); |
3484 | 0 | // Sentinel = 'recordingStatus' |
3485 | 0 | (msg__)->WriteSentinel(2504558560); |
3486 | 0 | WriteIPDLParam(msg__, this, pageURL); |
3487 | 0 | // Sentinel = 'pageURL' |
3488 | 0 | (msg__)->WriteSentinel(3373102899); |
3489 | 0 | WriteIPDLParam(msg__, this, isAudio); |
3490 | 0 | // Sentinel = 'isAudio' |
3491 | 0 | (msg__)->WriteSentinel(3505326961); |
3492 | 0 | WriteIPDLParam(msg__, this, isVideo); |
3493 | 0 | // Sentinel = 'isVideo' |
3494 | 0 | (msg__)->WriteSentinel(1688400398); |
3495 | 0 |
|
3496 | 0 |
|
3497 | 0 |
|
3498 | 0 |
|
3499 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3500 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3501 | 0 | } |
3502 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RecordingDeviceEvents", OTHER); |
3503 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3504 | 0 | mozilla::ipc::LogicError("Transition error"); |
3505 | 0 | } |
3506 | 0 |
|
3507 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3508 | 0 | return sendok__; |
3509 | 0 | } |
3510 | | |
3511 | | auto PContentChild::SendGraphicsError(const nsCString& aError) -> bool |
3512 | 0 | { |
3513 | 0 | IPC::Message* msg__ = PContent::Msg_GraphicsError(MSG_ROUTING_CONTROL); |
3514 | 0 |
|
3515 | 0 | WriteIPDLParam(msg__, this, aError); |
3516 | 0 | // Sentinel = 'aError' |
3517 | 0 | (msg__)->WriteSentinel(3299422495); |
3518 | 0 |
|
3519 | 0 |
|
3520 | 0 |
|
3521 | 0 |
|
3522 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3523 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3524 | 0 | } |
3525 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GraphicsError", OTHER); |
3526 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3527 | 0 | mozilla::ipc::LogicError("Transition error"); |
3528 | 0 | } |
3529 | 0 |
|
3530 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3531 | 0 | return sendok__; |
3532 | 0 | } |
3533 | | |
3534 | | auto PContentChild::SendBeginDriverCrashGuard( |
3535 | | const uint32_t& aGuardType, |
3536 | | bool* crashDetected) -> bool |
3537 | 0 | { |
3538 | 0 | IPC::Message* msg__ = PContent::Msg_BeginDriverCrashGuard(MSG_ROUTING_CONTROL); |
3539 | 0 |
|
3540 | 0 | WriteIPDLParam(msg__, this, aGuardType); |
3541 | 0 | // Sentinel = 'aGuardType' |
3542 | 0 | (msg__)->WriteSentinel(2013376914); |
3543 | 0 |
|
3544 | 0 |
|
3545 | 0 |
|
3546 | 0 | Message reply__; |
3547 | 0 |
|
3548 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3549 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3550 | 0 | } |
3551 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BeginDriverCrashGuard", OTHER); |
3552 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3553 | 0 | mozilla::ipc::LogicError("Transition error"); |
3554 | 0 | } |
3555 | 0 |
|
3556 | 0 | bool sendok__; |
3557 | 0 | { |
3558 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_BeginDriverCrashGuard"); |
3559 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3560 | 0 | } |
3561 | 0 | if ((!(sendok__))) { |
3562 | 0 | return false; |
3563 | 0 | } |
3564 | 0 | |
3565 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3566 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3567 | 0 | } |
3568 | 0 |
|
3569 | 0 | PickleIterator iter__(reply__); |
3570 | 0 |
|
3571 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, crashDetected)))) { |
3572 | 0 | FatalError("Error deserializing 'bool'"); |
3573 | 0 | return false; |
3574 | 0 | } |
3575 | 0 | // Sentinel = 'crashDetected' |
3576 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1759895034)))) { |
3577 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
3578 | 0 | return false; |
3579 | 0 | } |
3580 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3581 | 0 |
|
3582 | 0 | return true; |
3583 | 0 | } |
3584 | | |
3585 | | auto PContentChild::SendEndDriverCrashGuard(const uint32_t& aGuardType) -> bool |
3586 | 0 | { |
3587 | 0 | IPC::Message* msg__ = PContent::Msg_EndDriverCrashGuard(MSG_ROUTING_CONTROL); |
3588 | 0 |
|
3589 | 0 | WriteIPDLParam(msg__, this, aGuardType); |
3590 | 0 | // Sentinel = 'aGuardType' |
3591 | 0 | (msg__)->WriteSentinel(2013376914); |
3592 | 0 |
|
3593 | 0 |
|
3594 | 0 |
|
3595 | 0 | Message reply__; |
3596 | 0 |
|
3597 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3598 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3599 | 0 | } |
3600 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_EndDriverCrashGuard", OTHER); |
3601 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3602 | 0 | mozilla::ipc::LogicError("Transition error"); |
3603 | 0 | } |
3604 | 0 |
|
3605 | 0 | bool sendok__; |
3606 | 0 | { |
3607 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_EndDriverCrashGuard"); |
3608 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3609 | 0 | } |
3610 | 0 | if ((!(sendok__))) { |
3611 | 0 | return false; |
3612 | 0 | } |
3613 | 0 | |
3614 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3615 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3616 | 0 | } |
3617 | 0 |
|
3618 | 0 | return true; |
3619 | 0 | } |
3620 | | |
3621 | | auto PContentChild::SendAddIdleObserver( |
3622 | | const uint64_t& observerId, |
3623 | | const uint32_t& idleTimeInS) -> bool |
3624 | 0 | { |
3625 | 0 | IPC::Message* msg__ = PContent::Msg_AddIdleObserver(MSG_ROUTING_CONTROL); |
3626 | 0 |
|
3627 | 0 | WriteIPDLParam(msg__, this, observerId); |
3628 | 0 | // Sentinel = 'observerId' |
3629 | 0 | (msg__)->WriteSentinel(2815026823); |
3630 | 0 | WriteIPDLParam(msg__, this, idleTimeInS); |
3631 | 0 | // Sentinel = 'idleTimeInS' |
3632 | 0 | (msg__)->WriteSentinel(2527371272); |
3633 | 0 |
|
3634 | 0 |
|
3635 | 0 |
|
3636 | 0 |
|
3637 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3638 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3639 | 0 | } |
3640 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddIdleObserver", OTHER); |
3641 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3642 | 0 | mozilla::ipc::LogicError("Transition error"); |
3643 | 0 | } |
3644 | 0 |
|
3645 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3646 | 0 | return sendok__; |
3647 | 0 | } |
3648 | | |
3649 | | auto PContentChild::SendRemoveIdleObserver( |
3650 | | const uint64_t& observerId, |
3651 | | const uint32_t& idleTimeInS) -> bool |
3652 | 0 | { |
3653 | 0 | IPC::Message* msg__ = PContent::Msg_RemoveIdleObserver(MSG_ROUTING_CONTROL); |
3654 | 0 |
|
3655 | 0 | WriteIPDLParam(msg__, this, observerId); |
3656 | 0 | // Sentinel = 'observerId' |
3657 | 0 | (msg__)->WriteSentinel(2815026823); |
3658 | 0 | WriteIPDLParam(msg__, this, idleTimeInS); |
3659 | 0 | // Sentinel = 'idleTimeInS' |
3660 | 0 | (msg__)->WriteSentinel(2527371272); |
3661 | 0 |
|
3662 | 0 |
|
3663 | 0 |
|
3664 | 0 |
|
3665 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3666 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3667 | 0 | } |
3668 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RemoveIdleObserver", OTHER); |
3669 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3670 | 0 | mozilla::ipc::LogicError("Transition error"); |
3671 | 0 | } |
3672 | 0 |
|
3673 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3674 | 0 | return sendok__; |
3675 | 0 | } |
3676 | | |
3677 | | auto PContentChild::SendBackUpXResources(const FileDescriptor& aXSocketFd) -> bool |
3678 | 0 | { |
3679 | 0 | IPC::Message* msg__ = PContent::Msg_BackUpXResources(MSG_ROUTING_CONTROL); |
3680 | 0 |
|
3681 | 0 | WriteIPDLParam(msg__, this, aXSocketFd); |
3682 | 0 | // Sentinel = 'aXSocketFd' |
3683 | 0 | (msg__)->WriteSentinel(1448798316); |
3684 | 0 |
|
3685 | 0 |
|
3686 | 0 |
|
3687 | 0 |
|
3688 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3689 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3690 | 0 | } |
3691 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BackUpXResources", OTHER); |
3692 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3693 | 0 | mozilla::ipc::LogicError("Transition error"); |
3694 | 0 | } |
3695 | 0 |
|
3696 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3697 | 0 | return sendok__; |
3698 | 0 | } |
3699 | | |
3700 | | auto PContentChild::SendRequestAnonymousTemporaryFile(const uint64_t& aID) -> bool |
3701 | 0 | { |
3702 | 0 | IPC::Message* msg__ = PContent::Msg_RequestAnonymousTemporaryFile(MSG_ROUTING_CONTROL); |
3703 | 0 |
|
3704 | 0 | WriteIPDLParam(msg__, this, aID); |
3705 | 0 | // Sentinel = 'aID' |
3706 | 0 | (msg__)->WriteSentinel(2735041849); |
3707 | 0 |
|
3708 | 0 |
|
3709 | 0 |
|
3710 | 0 |
|
3711 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3712 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3713 | 0 | } |
3714 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RequestAnonymousTemporaryFile", OTHER); |
3715 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3716 | 0 | mozilla::ipc::LogicError("Transition error"); |
3717 | 0 | } |
3718 | 0 |
|
3719 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3720 | 0 | return sendok__; |
3721 | 0 | } |
3722 | | |
3723 | | auto PContentChild::SendKeygenProcessValue( |
3724 | | const nsString& oldValue, |
3725 | | const nsString& challenge, |
3726 | | const nsString& keytype, |
3727 | | const nsString& keyparams, |
3728 | | nsString* newValue) -> bool |
3729 | 0 | { |
3730 | 0 | IPC::Message* msg__ = PContent::Msg_KeygenProcessValue(MSG_ROUTING_CONTROL); |
3731 | 0 |
|
3732 | 0 | WriteIPDLParam(msg__, this, oldValue); |
3733 | 0 | // Sentinel = 'oldValue' |
3734 | 0 | (msg__)->WriteSentinel(2227149046); |
3735 | 0 | WriteIPDLParam(msg__, this, challenge); |
3736 | 0 | // Sentinel = 'challenge' |
3737 | 0 | (msg__)->WriteSentinel(3710327146); |
3738 | 0 | WriteIPDLParam(msg__, this, keytype); |
3739 | 0 | // Sentinel = 'keytype' |
3740 | 0 | (msg__)->WriteSentinel(391822858); |
3741 | 0 | WriteIPDLParam(msg__, this, keyparams); |
3742 | 0 | // Sentinel = 'keyparams' |
3743 | 0 | (msg__)->WriteSentinel(591068598); |
3744 | 0 |
|
3745 | 0 |
|
3746 | 0 |
|
3747 | 0 | Message reply__; |
3748 | 0 |
|
3749 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3750 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3751 | 0 | } |
3752 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_KeygenProcessValue", OTHER); |
3753 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3754 | 0 | mozilla::ipc::LogicError("Transition error"); |
3755 | 0 | } |
3756 | 0 |
|
3757 | 0 | bool sendok__; |
3758 | 0 | { |
3759 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_KeygenProcessValue"); |
3760 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3761 | 0 | } |
3762 | 0 | if ((!(sendok__))) { |
3763 | 0 | return false; |
3764 | 0 | } |
3765 | 0 | |
3766 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3767 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3768 | 0 | } |
3769 | 0 |
|
3770 | 0 | PickleIterator iter__(reply__); |
3771 | 0 |
|
3772 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, newValue)))) { |
3773 | 0 | FatalError("Error deserializing 'nsString'"); |
3774 | 0 | return false; |
3775 | 0 | } |
3776 | 0 | // Sentinel = 'newValue' |
3777 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1405873629)))) { |
3778 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3779 | 0 | return false; |
3780 | 0 | } |
3781 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3782 | 0 |
|
3783 | 0 | return true; |
3784 | 0 | } |
3785 | | |
3786 | | auto PContentChild::SendKeygenProvideContent( |
3787 | | nsString* aAttribute, |
3788 | | nsTArray<nsString>* aContent) -> bool |
3789 | 0 | { |
3790 | 0 | IPC::Message* msg__ = PContent::Msg_KeygenProvideContent(MSG_ROUTING_CONTROL); |
3791 | 0 |
|
3792 | 0 |
|
3793 | 0 |
|
3794 | 0 |
|
3795 | 0 | Message reply__; |
3796 | 0 |
|
3797 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3798 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3799 | 0 | } |
3800 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_KeygenProvideContent", OTHER); |
3801 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3802 | 0 | mozilla::ipc::LogicError("Transition error"); |
3803 | 0 | } |
3804 | 0 |
|
3805 | 0 | bool sendok__; |
3806 | 0 | { |
3807 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_KeygenProvideContent"); |
3808 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
3809 | 0 | } |
3810 | 0 | if ((!(sendok__))) { |
3811 | 0 | return false; |
3812 | 0 | } |
3813 | 0 | |
3814 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3815 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
3816 | 0 | } |
3817 | 0 |
|
3818 | 0 | PickleIterator iter__(reply__); |
3819 | 0 |
|
3820 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aAttribute)))) { |
3821 | 0 | FatalError("Error deserializing 'nsString'"); |
3822 | 0 | return false; |
3823 | 0 | } |
3824 | 0 | // Sentinel = 'aAttribute' |
3825 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4137811577)))) { |
3826 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
3827 | 0 | return false; |
3828 | 0 | } |
3829 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aContent)))) { |
3830 | 0 | FatalError("Error deserializing 'nsTArray'"); |
3831 | 0 | return false; |
3832 | 0 | } |
3833 | 0 | // Sentinel = 'aContent' |
3834 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2066258676)))) { |
3835 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
3836 | 0 | return false; |
3837 | 0 | } |
3838 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
3839 | 0 |
|
3840 | 0 | return true; |
3841 | 0 | } |
3842 | | |
3843 | | auto PContentChild::SendUnregisterRemoteFrame( |
3844 | | const TabId& tabId, |
3845 | | const ContentParentId& cpId, |
3846 | | const bool& aMarkedDestroying) -> bool |
3847 | 0 | { |
3848 | 0 | IPC::Message* msg__ = PContent::Msg_UnregisterRemoteFrame(MSG_ROUTING_CONTROL); |
3849 | 0 |
|
3850 | 0 | WriteIPDLParam(msg__, this, tabId); |
3851 | 0 | // Sentinel = 'tabId' |
3852 | 0 | (msg__)->WriteSentinel(3419081923); |
3853 | 0 | WriteIPDLParam(msg__, this, cpId); |
3854 | 0 | // Sentinel = 'cpId' |
3855 | 0 | (msg__)->WriteSentinel(2452595622); |
3856 | 0 | WriteIPDLParam(msg__, this, aMarkedDestroying); |
3857 | 0 | // Sentinel = 'aMarkedDestroying' |
3858 | 0 | (msg__)->WriteSentinel(4114437722); |
3859 | 0 |
|
3860 | 0 |
|
3861 | 0 |
|
3862 | 0 |
|
3863 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3864 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3865 | 0 | } |
3866 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UnregisterRemoteFrame", OTHER); |
3867 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3868 | 0 | mozilla::ipc::LogicError("Transition error"); |
3869 | 0 | } |
3870 | 0 |
|
3871 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3872 | 0 | return sendok__; |
3873 | 0 | } |
3874 | | |
3875 | | auto PContentChild::SendNotifyTabDestroying( |
3876 | | const TabId& tabId, |
3877 | | const ContentParentId& cpId) -> bool |
3878 | 0 | { |
3879 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyTabDestroying(MSG_ROUTING_CONTROL); |
3880 | 0 |
|
3881 | 0 | WriteIPDLParam(msg__, this, tabId); |
3882 | 0 | // Sentinel = 'tabId' |
3883 | 0 | (msg__)->WriteSentinel(3419081923); |
3884 | 0 | WriteIPDLParam(msg__, this, cpId); |
3885 | 0 | // Sentinel = 'cpId' |
3886 | 0 | (msg__)->WriteSentinel(2452595622); |
3887 | 0 |
|
3888 | 0 |
|
3889 | 0 |
|
3890 | 0 |
|
3891 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3892 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3893 | 0 | } |
3894 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyTabDestroying", OTHER); |
3895 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3896 | 0 | mozilla::ipc::LogicError("Transition error"); |
3897 | 0 | } |
3898 | 0 |
|
3899 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3900 | 0 | return sendok__; |
3901 | 0 | } |
3902 | | |
3903 | | auto PContentChild::SendPOfflineCacheUpdateConstructor( |
3904 | | const URIParams& manifestURI, |
3905 | | const URIParams& documentURI, |
3906 | | const PrincipalInfo& loadingPrincipal, |
3907 | | const bool& stickDocument) -> POfflineCacheUpdateChild* |
3908 | 0 | { |
3909 | 0 | return SendPOfflineCacheUpdateConstructor(AllocPOfflineCacheUpdateChild(manifestURI, documentURI, loadingPrincipal, stickDocument), manifestURI, documentURI, loadingPrincipal, stickDocument); |
3910 | 0 | } |
3911 | | |
3912 | | auto PContentChild::SendPOfflineCacheUpdateConstructor( |
3913 | | POfflineCacheUpdateChild* actor, |
3914 | | const URIParams& manifestURI, |
3915 | | const URIParams& documentURI, |
3916 | | const PrincipalInfo& loadingPrincipal, |
3917 | | const bool& stickDocument) -> POfflineCacheUpdateChild* |
3918 | 0 | { |
3919 | 0 | if ((!(actor))) { |
3920 | 0 | NS_WARNING("Error constructing actor POfflineCacheUpdateChild"); |
3921 | 0 | return nullptr; |
3922 | 0 | } |
3923 | 0 | (actor)->SetManagerAndRegister(this); |
3924 | 0 | (mManagedPOfflineCacheUpdateChild).PutEntry(actor); |
3925 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
3926 | 0 |
|
3927 | 0 | IPC::Message* msg__ = PContent::Msg_POfflineCacheUpdateConstructor(MSG_ROUTING_CONTROL); |
3928 | 0 |
|
3929 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
3930 | 0 | WriteIPDLParam(msg__, this, actor); |
3931 | 0 | // Sentinel = 'actor' |
3932 | 0 | (msg__)->WriteSentinel(875202478); |
3933 | 0 | WriteIPDLParam(msg__, this, manifestURI); |
3934 | 0 | // Sentinel = 'manifestURI' |
3935 | 0 | (msg__)->WriteSentinel(3261212628); |
3936 | 0 | WriteIPDLParam(msg__, this, documentURI); |
3937 | 0 | // Sentinel = 'documentURI' |
3938 | 0 | (msg__)->WriteSentinel(3585823520); |
3939 | 0 | WriteIPDLParam(msg__, this, loadingPrincipal); |
3940 | 0 | // Sentinel = 'loadingPrincipal' |
3941 | 0 | (msg__)->WriteSentinel(2000304082); |
3942 | 0 | WriteIPDLParam(msg__, this, stickDocument); |
3943 | 0 | // Sentinel = 'stickDocument' |
3944 | 0 | (msg__)->WriteSentinel(2826141294); |
3945 | 0 |
|
3946 | 0 |
|
3947 | 0 |
|
3948 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3949 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3950 | 0 | } |
3951 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_POfflineCacheUpdateConstructor", OTHER); |
3952 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3953 | 0 | mozilla::ipc::LogicError("Transition error"); |
3954 | 0 | } |
3955 | 0 |
|
3956 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3957 | 0 | if ((!(sendok__))) { |
3958 | 0 | FatalError("constructor for actor failed"); |
3959 | 0 | return nullptr; |
3960 | 0 | } |
3961 | 0 | return actor; |
3962 | 0 | } |
3963 | | |
3964 | | auto PContentChild::SendSetOfflinePermission(const Principal& principal) -> bool |
3965 | 0 | { |
3966 | 0 | IPC::Message* msg__ = PContent::Msg_SetOfflinePermission(MSG_ROUTING_CONTROL); |
3967 | 0 |
|
3968 | 0 | WriteIPDLParam(msg__, this, principal); |
3969 | 0 | // Sentinel = 'principal' |
3970 | 0 | (msg__)->WriteSentinel(732240927); |
3971 | 0 |
|
3972 | 0 |
|
3973 | 0 |
|
3974 | 0 |
|
3975 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3976 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3977 | 0 | } |
3978 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetOfflinePermission", OTHER); |
3979 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
3980 | 0 | mozilla::ipc::LogicError("Transition error"); |
3981 | 0 | } |
3982 | 0 |
|
3983 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
3984 | 0 | return sendok__; |
3985 | 0 | } |
3986 | | |
3987 | | auto PContentChild::SendFinishShutdown() -> bool |
3988 | 0 | { |
3989 | 0 | IPC::Message* msg__ = PContent::Msg_FinishShutdown(MSG_ROUTING_CONTROL); |
3990 | 0 |
|
3991 | 0 |
|
3992 | 0 |
|
3993 | 0 |
|
3994 | 0 |
|
3995 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
3996 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
3997 | 0 | } |
3998 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FinishShutdown", OTHER); |
3999 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4000 | 0 | mozilla::ipc::LogicError("Transition error"); |
4001 | 0 | } |
4002 | 0 |
|
4003 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4004 | 0 | return sendok__; |
4005 | 0 | } |
4006 | | |
4007 | | auto PContentChild::SendUpdateDropEffect( |
4008 | | const uint32_t& aDragAction, |
4009 | | const uint32_t& aDropEffect) -> bool |
4010 | 0 | { |
4011 | 0 | IPC::Message* msg__ = PContent::Msg_UpdateDropEffect(MSG_ROUTING_CONTROL); |
4012 | 0 |
|
4013 | 0 | WriteIPDLParam(msg__, this, aDragAction); |
4014 | 0 | // Sentinel = 'aDragAction' |
4015 | 0 | (msg__)->WriteSentinel(2407569738); |
4016 | 0 | WriteIPDLParam(msg__, this, aDropEffect); |
4017 | 0 | // Sentinel = 'aDropEffect' |
4018 | 0 | (msg__)->WriteSentinel(4065146166); |
4019 | 0 |
|
4020 | 0 |
|
4021 | 0 |
|
4022 | 0 |
|
4023 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4024 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4025 | 0 | } |
4026 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateDropEffect", OTHER); |
4027 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4028 | 0 | mozilla::ipc::LogicError("Transition error"); |
4029 | 0 | } |
4030 | 0 |
|
4031 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4032 | 0 | return sendok__; |
4033 | 0 | } |
4034 | | |
4035 | | auto PContentChild::SendPContentPermissionRequestConstructor( |
4036 | | const nsTArray<PermissionRequest>& aRequests, |
4037 | | const Principal& aPrincipal, |
4038 | | const bool& aIsHandlingUserInput, |
4039 | | const TabId& tabId) -> PContentPermissionRequestChild* |
4040 | 0 | { |
4041 | 0 | return SendPContentPermissionRequestConstructor(AllocPContentPermissionRequestChild(aRequests, aPrincipal, aIsHandlingUserInput, tabId), aRequests, aPrincipal, aIsHandlingUserInput, tabId); |
4042 | 0 | } |
4043 | | |
4044 | | auto PContentChild::SendPContentPermissionRequestConstructor( |
4045 | | PContentPermissionRequestChild* actor, |
4046 | | const nsTArray<PermissionRequest>& aRequests, |
4047 | | const Principal& aPrincipal, |
4048 | | const bool& aIsHandlingUserInput, |
4049 | | const TabId& tabId) -> PContentPermissionRequestChild* |
4050 | 0 | { |
4051 | 0 | if ((!(actor))) { |
4052 | 0 | NS_WARNING("Error constructing actor PContentPermissionRequestChild"); |
4053 | 0 | return nullptr; |
4054 | 0 | } |
4055 | 0 | (actor)->SetManagerAndRegister(this); |
4056 | 0 | (mManagedPContentPermissionRequestChild).PutEntry(actor); |
4057 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
4058 | 0 |
|
4059 | 0 | IPC::Message* msg__ = PContent::Msg_PContentPermissionRequestConstructor(MSG_ROUTING_CONTROL); |
4060 | 0 |
|
4061 | 0 | MOZ_RELEASE_ASSERT(actor, "NULL actor value passed to non-nullable param"); |
4062 | 0 | WriteIPDLParam(msg__, this, actor); |
4063 | 0 | // Sentinel = 'actor' |
4064 | 0 | (msg__)->WriteSentinel(875202478); |
4065 | 0 | WriteIPDLParam(msg__, this, aRequests); |
4066 | 0 | // Sentinel = 'aRequests' |
4067 | 0 | (msg__)->WriteSentinel(4267960022); |
4068 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
4069 | 0 | // Sentinel = 'aPrincipal' |
4070 | 0 | (msg__)->WriteSentinel(4097511); |
4071 | 0 | WriteIPDLParam(msg__, this, aIsHandlingUserInput); |
4072 | 0 | // Sentinel = 'aIsHandlingUserInput' |
4073 | 0 | (msg__)->WriteSentinel(3966872117); |
4074 | 0 | WriteIPDLParam(msg__, this, tabId); |
4075 | 0 | // Sentinel = 'tabId' |
4076 | 0 | (msg__)->WriteSentinel(3419081923); |
4077 | 0 |
|
4078 | 0 |
|
4079 | 0 |
|
4080 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4081 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4082 | 0 | } |
4083 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PContentPermissionRequestConstructor", OTHER); |
4084 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4085 | 0 | mozilla::ipc::LogicError("Transition error"); |
4086 | 0 | } |
4087 | 0 |
|
4088 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4089 | 0 | if ((!(sendok__))) { |
4090 | 0 | FatalError("constructor for actor failed"); |
4091 | 0 | return nullptr; |
4092 | 0 | } |
4093 | 0 | return actor; |
4094 | 0 | } |
4095 | | |
4096 | | auto PContentChild::SendShutdownProfile(const nsCString& aProfile) -> bool |
4097 | 0 | { |
4098 | 0 | IPC::Message* msg__ = PContent::Msg_ShutdownProfile(MSG_ROUTING_CONTROL); |
4099 | 0 |
|
4100 | 0 | WriteIPDLParam(msg__, this, aProfile); |
4101 | 0 | // Sentinel = 'aProfile' |
4102 | 0 | (msg__)->WriteSentinel(3994647340); |
4103 | 0 |
|
4104 | 0 |
|
4105 | 0 |
|
4106 | 0 |
|
4107 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4108 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4109 | 0 | } |
4110 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ShutdownProfile", OTHER); |
4111 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4112 | 0 | mozilla::ipc::LogicError("Transition error"); |
4113 | 0 | } |
4114 | 0 |
|
4115 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4116 | 0 | return sendok__; |
4117 | 0 | } |
4118 | | |
4119 | | auto PContentChild::SendGetGraphicsDeviceInitData(ContentDeviceData* aData) -> bool |
4120 | 0 | { |
4121 | 0 | IPC::Message* msg__ = PContent::Msg_GetGraphicsDeviceInitData(MSG_ROUTING_CONTROL); |
4122 | 0 |
|
4123 | 0 |
|
4124 | 0 |
|
4125 | 0 |
|
4126 | 0 | Message reply__; |
4127 | 0 |
|
4128 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4129 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4130 | 0 | } |
4131 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetGraphicsDeviceInitData", OTHER); |
4132 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4133 | 0 | mozilla::ipc::LogicError("Transition error"); |
4134 | 0 | } |
4135 | 0 |
|
4136 | 0 | bool sendok__; |
4137 | 0 | { |
4138 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetGraphicsDeviceInitData"); |
4139 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
4140 | 0 | } |
4141 | 0 | if ((!(sendok__))) { |
4142 | 0 | return false; |
4143 | 0 | } |
4144 | 0 | |
4145 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4146 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4147 | 0 | } |
4148 | 0 |
|
4149 | 0 | PickleIterator iter__(reply__); |
4150 | 0 |
|
4151 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aData)))) { |
4152 | 0 | FatalError("Error deserializing 'ContentDeviceData'"); |
4153 | 0 | return false; |
4154 | 0 | } |
4155 | 0 | // Sentinel = 'aData' |
4156 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3285075324)))) { |
4157 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentDeviceData'"); |
4158 | 0 | return false; |
4159 | 0 | } |
4160 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
4161 | 0 |
|
4162 | 0 | return true; |
4163 | 0 | } |
4164 | | |
4165 | | auto PContentChild::SendCreateWindow( |
4166 | | PBrowserChild* aThisTab, |
4167 | | PBrowserChild* aNewTab, |
4168 | | PRenderFrameChild* aRenderFrame, |
4169 | | const uint32_t& aChromeFlags, |
4170 | | const bool& aCalledFromJS, |
4171 | | const bool& aPositionSpecified, |
4172 | | const bool& aSizeSpecified, |
4173 | | const OptionalURIParams& aURIToLoad, |
4174 | | const nsCString& aFeatures, |
4175 | | const nsCString& aBaseURI, |
4176 | | const float& aFullZoom, |
4177 | | const Principal& aTriggeringPrincipal, |
4178 | | const uint32_t& aReferrerPolicy, |
4179 | | mozilla::ipc::ResolveCallback<CreatedWindowInfo>&& aResolve, |
4180 | | mozilla::ipc::RejectCallback&& aReject) -> void |
4181 | 0 | { |
4182 | 0 | IPC::Message* msg__ = PContent::Msg_CreateWindow(MSG_ROUTING_CONTROL); |
4183 | 0 |
|
4184 | 0 | WriteIPDLParam(msg__, this, aThisTab); |
4185 | 0 | // Sentinel = 'aThisTab' |
4186 | 0 | (msg__)->WriteSentinel(607760926); |
4187 | 0 | MOZ_RELEASE_ASSERT(aNewTab, "NULL actor value passed to non-nullable param"); |
4188 | 0 | WriteIPDLParam(msg__, this, aNewTab); |
4189 | 0 | // Sentinel = 'aNewTab' |
4190 | 0 | (msg__)->WriteSentinel(2089222425); |
4191 | 0 | MOZ_RELEASE_ASSERT(aRenderFrame, "NULL actor value passed to non-nullable param"); |
4192 | 0 | WriteIPDLParam(msg__, this, aRenderFrame); |
4193 | 0 | // Sentinel = 'aRenderFrame' |
4194 | 0 | (msg__)->WriteSentinel(1469288264); |
4195 | 0 | WriteIPDLParam(msg__, this, aChromeFlags); |
4196 | 0 | // Sentinel = 'aChromeFlags' |
4197 | 0 | (msg__)->WriteSentinel(3327922672); |
4198 | 0 | WriteIPDLParam(msg__, this, aCalledFromJS); |
4199 | 0 | // Sentinel = 'aCalledFromJS' |
4200 | 0 | (msg__)->WriteSentinel(1499256202); |
4201 | 0 | WriteIPDLParam(msg__, this, aPositionSpecified); |
4202 | 0 | // Sentinel = 'aPositionSpecified' |
4203 | 0 | (msg__)->WriteSentinel(2933421868); |
4204 | 0 | WriteIPDLParam(msg__, this, aSizeSpecified); |
4205 | 0 | // Sentinel = 'aSizeSpecified' |
4206 | 0 | (msg__)->WriteSentinel(3086178338); |
4207 | 0 | WriteIPDLParam(msg__, this, aURIToLoad); |
4208 | 0 | // Sentinel = 'aURIToLoad' |
4209 | 0 | (msg__)->WriteSentinel(4091656936); |
4210 | 0 | WriteIPDLParam(msg__, this, aFeatures); |
4211 | 0 | // Sentinel = 'aFeatures' |
4212 | 0 | (msg__)->WriteSentinel(1001034525); |
4213 | 0 | WriteIPDLParam(msg__, this, aBaseURI); |
4214 | 0 | // Sentinel = 'aBaseURI' |
4215 | 0 | (msg__)->WriteSentinel(2848511784); |
4216 | 0 | WriteIPDLParam(msg__, this, aFullZoom); |
4217 | 0 | // Sentinel = 'aFullZoom' |
4218 | 0 | (msg__)->WriteSentinel(2072210550); |
4219 | 0 | WriteIPDLParam(msg__, this, aTriggeringPrincipal); |
4220 | 0 | // Sentinel = 'aTriggeringPrincipal' |
4221 | 0 | (msg__)->WriteSentinel(1219575273); |
4222 | 0 | WriteIPDLParam(msg__, this, aReferrerPolicy); |
4223 | 0 | // Sentinel = 'aReferrerPolicy' |
4224 | 0 | (msg__)->WriteSentinel(3193013321); |
4225 | 0 |
|
4226 | 0 |
|
4227 | 0 |
|
4228 | 0 |
|
4229 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4230 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4231 | 0 | } |
4232 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateWindow", OTHER); |
4233 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4234 | 0 | mozilla::ipc::LogicError("Transition error"); |
4235 | 0 | } |
4236 | 0 |
|
4237 | 0 | (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject)); |
4238 | 0 | return; |
4239 | 0 | } |
4240 | | |
4241 | | auto PContentChild::SendCreateWindow( |
4242 | | PBrowserChild* aThisTab, |
4243 | | PBrowserChild* aNewTab, |
4244 | | PRenderFrameChild* aRenderFrame, |
4245 | | const uint32_t& aChromeFlags, |
4246 | | const bool& aCalledFromJS, |
4247 | | const bool& aPositionSpecified, |
4248 | | const bool& aSizeSpecified, |
4249 | | const OptionalURIParams& aURIToLoad, |
4250 | | const nsCString& aFeatures, |
4251 | | const nsCString& aBaseURI, |
4252 | | const float& aFullZoom, |
4253 | | const Principal& aTriggeringPrincipal, |
4254 | | const uint32_t& aReferrerPolicy) -> RefPtr<CreateWindowPromise> |
4255 | 0 | { |
4256 | 0 |
|
4257 | 0 | RefPtr<MozPromise<CreatedWindowInfo, ResponseRejectReason, false>::Private> promise__ = new MozPromise<CreatedWindowInfo, ResponseRejectReason, false>::Private(__func__); |
4258 | 0 |
|
4259 | 0 | SendCreateWindow(aThisTab, aNewTab, aRenderFrame, aChromeFlags, aCalledFromJS, aPositionSpecified, aSizeSpecified, aURIToLoad, aFeatures, aBaseURI, aFullZoom, aTriggeringPrincipal, aReferrerPolicy, [promise__](CreatedWindowInfo&& aValue) { |
4260 | 0 | (promise__)->Resolve(std::move(aValue), __func__); |
4261 | 0 | }, [promise__](ResponseRejectReason aReason) { |
4262 | 0 | (promise__)->Reject(aReason, __func__); |
4263 | 0 | }); |
4264 | 0 | return promise__; |
4265 | 0 | } |
4266 | | |
4267 | | auto PContentChild::SendCreateWindowInDifferentProcess( |
4268 | | PBrowserChild* aThisTab, |
4269 | | const uint32_t& aChromeFlags, |
4270 | | const bool& aCalledFromJS, |
4271 | | const bool& aPositionSpecified, |
4272 | | const bool& aSizeSpecified, |
4273 | | const OptionalURIParams& aURIToLoad, |
4274 | | const nsCString& aFeatures, |
4275 | | const nsCString& aBaseURI, |
4276 | | const float& aFullZoom, |
4277 | | const nsString& aName, |
4278 | | const Principal& aTriggeringPrincipal, |
4279 | | const uint32_t& aReferrerPolicy) -> bool |
4280 | 0 | { |
4281 | 0 | IPC::Message* msg__ = PContent::Msg_CreateWindowInDifferentProcess(MSG_ROUTING_CONTROL); |
4282 | 0 |
|
4283 | 0 | MOZ_RELEASE_ASSERT(aThisTab, "NULL actor value passed to non-nullable param"); |
4284 | 0 | WriteIPDLParam(msg__, this, aThisTab); |
4285 | 0 | // Sentinel = 'aThisTab' |
4286 | 0 | (msg__)->WriteSentinel(607760926); |
4287 | 0 | WriteIPDLParam(msg__, this, aChromeFlags); |
4288 | 0 | // Sentinel = 'aChromeFlags' |
4289 | 0 | (msg__)->WriteSentinel(3327922672); |
4290 | 0 | WriteIPDLParam(msg__, this, aCalledFromJS); |
4291 | 0 | // Sentinel = 'aCalledFromJS' |
4292 | 0 | (msg__)->WriteSentinel(1499256202); |
4293 | 0 | WriteIPDLParam(msg__, this, aPositionSpecified); |
4294 | 0 | // Sentinel = 'aPositionSpecified' |
4295 | 0 | (msg__)->WriteSentinel(2933421868); |
4296 | 0 | WriteIPDLParam(msg__, this, aSizeSpecified); |
4297 | 0 | // Sentinel = 'aSizeSpecified' |
4298 | 0 | (msg__)->WriteSentinel(3086178338); |
4299 | 0 | WriteIPDLParam(msg__, this, aURIToLoad); |
4300 | 0 | // Sentinel = 'aURIToLoad' |
4301 | 0 | (msg__)->WriteSentinel(4091656936); |
4302 | 0 | WriteIPDLParam(msg__, this, aFeatures); |
4303 | 0 | // Sentinel = 'aFeatures' |
4304 | 0 | (msg__)->WriteSentinel(1001034525); |
4305 | 0 | WriteIPDLParam(msg__, this, aBaseURI); |
4306 | 0 | // Sentinel = 'aBaseURI' |
4307 | 0 | (msg__)->WriteSentinel(2848511784); |
4308 | 0 | WriteIPDLParam(msg__, this, aFullZoom); |
4309 | 0 | // Sentinel = 'aFullZoom' |
4310 | 0 | (msg__)->WriteSentinel(2072210550); |
4311 | 0 | WriteIPDLParam(msg__, this, aName); |
4312 | 0 | // Sentinel = 'aName' |
4313 | 0 | (msg__)->WriteSentinel(1450162941); |
4314 | 0 | WriteIPDLParam(msg__, this, aTriggeringPrincipal); |
4315 | 0 | // Sentinel = 'aTriggeringPrincipal' |
4316 | 0 | (msg__)->WriteSentinel(1219575273); |
4317 | 0 | WriteIPDLParam(msg__, this, aReferrerPolicy); |
4318 | 0 | // Sentinel = 'aReferrerPolicy' |
4319 | 0 | (msg__)->WriteSentinel(3193013321); |
4320 | 0 |
|
4321 | 0 |
|
4322 | 0 |
|
4323 | 0 |
|
4324 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4325 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4326 | 0 | } |
4327 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateWindowInDifferentProcess", OTHER); |
4328 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4329 | 0 | mozilla::ipc::LogicError("Transition error"); |
4330 | 0 | } |
4331 | 0 |
|
4332 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4333 | 0 | return sendok__; |
4334 | 0 | } |
4335 | | |
4336 | | auto PContentChild::SendGetAndroidSystemInfo(AndroidSystemInfo* info) -> bool |
4337 | 0 | { |
4338 | 0 | IPC::Message* msg__ = PContent::Msg_GetAndroidSystemInfo(MSG_ROUTING_CONTROL); |
4339 | 0 |
|
4340 | 0 |
|
4341 | 0 |
|
4342 | 0 |
|
4343 | 0 | Message reply__; |
4344 | 0 |
|
4345 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4346 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4347 | 0 | } |
4348 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetAndroidSystemInfo", OTHER); |
4349 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4350 | 0 | mozilla::ipc::LogicError("Transition error"); |
4351 | 0 | } |
4352 | 0 |
|
4353 | 0 | bool sendok__; |
4354 | 0 | { |
4355 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetAndroidSystemInfo"); |
4356 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
4357 | 0 | } |
4358 | 0 | if ((!(sendok__))) { |
4359 | 0 | return false; |
4360 | 0 | } |
4361 | 0 | |
4362 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4363 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4364 | 0 | } |
4365 | 0 |
|
4366 | 0 | PickleIterator iter__(reply__); |
4367 | 0 |
|
4368 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, info)))) { |
4369 | 0 | FatalError("Error deserializing 'AndroidSystemInfo'"); |
4370 | 0 | return false; |
4371 | 0 | } |
4372 | 0 | // Sentinel = 'info' |
4373 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3750868832)))) { |
4374 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'AndroidSystemInfo'"); |
4375 | 0 | return false; |
4376 | 0 | } |
4377 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
4378 | 0 |
|
4379 | 0 | return true; |
4380 | 0 | } |
4381 | | |
4382 | | auto PContentChild::SendUngrabPointer(const uint32_t& time) -> bool |
4383 | 0 | { |
4384 | 0 | IPC::Message* msg__ = PContent::Msg_UngrabPointer(MSG_ROUTING_CONTROL); |
4385 | 0 |
|
4386 | 0 | WriteIPDLParam(msg__, this, time); |
4387 | 0 | // Sentinel = 'time' |
4388 | 0 | (msg__)->WriteSentinel(4231890935); |
4389 | 0 |
|
4390 | 0 |
|
4391 | 0 |
|
4392 | 0 | Message reply__; |
4393 | 0 |
|
4394 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4395 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4396 | 0 | } |
4397 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UngrabPointer", OTHER); |
4398 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4399 | 0 | mozilla::ipc::LogicError("Transition error"); |
4400 | 0 | } |
4401 | 0 |
|
4402 | 0 | bool sendok__; |
4403 | 0 | { |
4404 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_UngrabPointer"); |
4405 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
4406 | 0 | } |
4407 | 0 | if ((!(sendok__))) { |
4408 | 0 | return false; |
4409 | 0 | } |
4410 | 0 | |
4411 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4412 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4413 | 0 | } |
4414 | 0 |
|
4415 | 0 | return true; |
4416 | 0 | } |
4417 | | |
4418 | | auto PContentChild::SendRemovePermission( |
4419 | | const Principal& principal, |
4420 | | const nsCString& permissionType, |
4421 | | nsresult* rv) -> bool |
4422 | 0 | { |
4423 | 0 | IPC::Message* msg__ = PContent::Msg_RemovePermission(MSG_ROUTING_CONTROL); |
4424 | 0 |
|
4425 | 0 | WriteIPDLParam(msg__, this, principal); |
4426 | 0 | // Sentinel = 'principal' |
4427 | 0 | (msg__)->WriteSentinel(732240927); |
4428 | 0 | WriteIPDLParam(msg__, this, permissionType); |
4429 | 0 | // Sentinel = 'permissionType' |
4430 | 0 | (msg__)->WriteSentinel(3770618267); |
4431 | 0 |
|
4432 | 0 |
|
4433 | 0 |
|
4434 | 0 | Message reply__; |
4435 | 0 |
|
4436 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4437 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4438 | 0 | } |
4439 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RemovePermission", OTHER); |
4440 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4441 | 0 | mozilla::ipc::LogicError("Transition error"); |
4442 | 0 | } |
4443 | 0 |
|
4444 | 0 | bool sendok__; |
4445 | 0 | { |
4446 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_RemovePermission"); |
4447 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
4448 | 0 | } |
4449 | 0 | if ((!(sendok__))) { |
4450 | 0 | return false; |
4451 | 0 | } |
4452 | 0 | |
4453 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4454 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4455 | 0 | } |
4456 | 0 |
|
4457 | 0 | PickleIterator iter__(reply__); |
4458 | 0 |
|
4459 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rv)))) { |
4460 | 0 | FatalError("Error deserializing 'nsresult'"); |
4461 | 0 | return false; |
4462 | 0 | } |
4463 | 0 | // Sentinel = 'rv' |
4464 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481058)))) { |
4465 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'"); |
4466 | 0 | return false; |
4467 | 0 | } |
4468 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
4469 | 0 |
|
4470 | 0 | return true; |
4471 | 0 | } |
4472 | | |
4473 | | auto PContentChild::SendNotifyBenchmarkResult( |
4474 | | const nsString& aCodecName, |
4475 | | const uint32_t& aDecodeFPS) -> bool |
4476 | 0 | { |
4477 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyBenchmarkResult(MSG_ROUTING_CONTROL); |
4478 | 0 |
|
4479 | 0 | WriteIPDLParam(msg__, this, aCodecName); |
4480 | 0 | // Sentinel = 'aCodecName' |
4481 | 0 | (msg__)->WriteSentinel(1573682074); |
4482 | 0 | WriteIPDLParam(msg__, this, aDecodeFPS); |
4483 | 0 | // Sentinel = 'aDecodeFPS' |
4484 | 0 | (msg__)->WriteSentinel(2083295506); |
4485 | 0 |
|
4486 | 0 |
|
4487 | 0 |
|
4488 | 0 |
|
4489 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4490 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4491 | 0 | } |
4492 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyBenchmarkResult", OTHER); |
4493 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4494 | 0 | mozilla::ipc::LogicError("Transition error"); |
4495 | 0 | } |
4496 | 0 |
|
4497 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4498 | 0 | return sendok__; |
4499 | 0 | } |
4500 | | |
4501 | | auto PContentChild::SendNotifyPushObservers( |
4502 | | const nsCString& scope, |
4503 | | const Principal& principal, |
4504 | | const nsString& messageId) -> bool |
4505 | 0 | { |
4506 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyPushObservers(MSG_ROUTING_CONTROL); |
4507 | 0 |
|
4508 | 0 | WriteIPDLParam(msg__, this, scope); |
4509 | 0 | // Sentinel = 'scope' |
4510 | 0 | (msg__)->WriteSentinel(2191984953); |
4511 | 0 | WriteIPDLParam(msg__, this, principal); |
4512 | 0 | // Sentinel = 'principal' |
4513 | 0 | (msg__)->WriteSentinel(732240927); |
4514 | 0 | WriteIPDLParam(msg__, this, messageId); |
4515 | 0 | // Sentinel = 'messageId' |
4516 | 0 | (msg__)->WriteSentinel(2887269495); |
4517 | 0 |
|
4518 | 0 |
|
4519 | 0 |
|
4520 | 0 |
|
4521 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4522 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4523 | 0 | } |
4524 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObservers", OTHER); |
4525 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4526 | 0 | mozilla::ipc::LogicError("Transition error"); |
4527 | 0 | } |
4528 | 0 |
|
4529 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4530 | 0 | return sendok__; |
4531 | 0 | } |
4532 | | |
4533 | | auto PContentChild::SendNotifyPushObserversWithData( |
4534 | | const nsCString& scope, |
4535 | | const Principal& principal, |
4536 | | const nsString& messageId, |
4537 | | const nsTArray<uint8_t>& data) -> bool |
4538 | 0 | { |
4539 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyPushObserversWithData(MSG_ROUTING_CONTROL); |
4540 | 0 |
|
4541 | 0 | WriteIPDLParam(msg__, this, scope); |
4542 | 0 | // Sentinel = 'scope' |
4543 | 0 | (msg__)->WriteSentinel(2191984953); |
4544 | 0 | WriteIPDLParam(msg__, this, principal); |
4545 | 0 | // Sentinel = 'principal' |
4546 | 0 | (msg__)->WriteSentinel(732240927); |
4547 | 0 | WriteIPDLParam(msg__, this, messageId); |
4548 | 0 | // Sentinel = 'messageId' |
4549 | 0 | (msg__)->WriteSentinel(2887269495); |
4550 | 0 | WriteIPDLParam(msg__, this, data); |
4551 | 0 | // Sentinel = 'data' |
4552 | 0 | (msg__)->WriteSentinel(843352540); |
4553 | 0 |
|
4554 | 0 |
|
4555 | 0 |
|
4556 | 0 |
|
4557 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4558 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4559 | 0 | } |
4560 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushObserversWithData", OTHER); |
4561 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4562 | 0 | mozilla::ipc::LogicError("Transition error"); |
4563 | 0 | } |
4564 | 0 |
|
4565 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4566 | 0 | return sendok__; |
4567 | 0 | } |
4568 | | |
4569 | | auto PContentChild::SendNotifyPushSubscriptionChangeObservers( |
4570 | | const nsCString& scope, |
4571 | | const Principal& principal) -> bool |
4572 | 0 | { |
4573 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyPushSubscriptionChangeObservers(MSG_ROUTING_CONTROL); |
4574 | 0 |
|
4575 | 0 | WriteIPDLParam(msg__, this, scope); |
4576 | 0 | // Sentinel = 'scope' |
4577 | 0 | (msg__)->WriteSentinel(2191984953); |
4578 | 0 | WriteIPDLParam(msg__, this, principal); |
4579 | 0 | // Sentinel = 'principal' |
4580 | 0 | (msg__)->WriteSentinel(732240927); |
4581 | 0 |
|
4582 | 0 |
|
4583 | 0 |
|
4584 | 0 |
|
4585 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4586 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4587 | 0 | } |
4588 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionChangeObservers", OTHER); |
4589 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4590 | 0 | mozilla::ipc::LogicError("Transition error"); |
4591 | 0 | } |
4592 | 0 |
|
4593 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4594 | 0 | return sendok__; |
4595 | 0 | } |
4596 | | |
4597 | | auto PContentChild::SendGetFilesRequest( |
4598 | | const nsID& aID, |
4599 | | const nsString& aDirectory, |
4600 | | const bool& aRecursiveFlag) -> bool |
4601 | 0 | { |
4602 | 0 | IPC::Message* msg__ = PContent::Msg_GetFilesRequest(MSG_ROUTING_CONTROL); |
4603 | 0 |
|
4604 | 0 | WriteIPDLParam(msg__, this, aID); |
4605 | 0 | // Sentinel = 'aID' |
4606 | 0 | (msg__)->WriteSentinel(2735041849); |
4607 | 0 | WriteIPDLParam(msg__, this, aDirectory); |
4608 | 0 | // Sentinel = 'aDirectory' |
4609 | 0 | (msg__)->WriteSentinel(106387836); |
4610 | 0 | WriteIPDLParam(msg__, this, aRecursiveFlag); |
4611 | 0 | // Sentinel = 'aRecursiveFlag' |
4612 | 0 | (msg__)->WriteSentinel(3322465491); |
4613 | 0 |
|
4614 | 0 |
|
4615 | 0 |
|
4616 | 0 |
|
4617 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4618 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4619 | 0 | } |
4620 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetFilesRequest", OTHER); |
4621 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4622 | 0 | mozilla::ipc::LogicError("Transition error"); |
4623 | 0 | } |
4624 | 0 |
|
4625 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4626 | 0 | return sendok__; |
4627 | 0 | } |
4628 | | |
4629 | | auto PContentChild::SendDeleteGetFilesRequest(const nsID& aID) -> bool |
4630 | 0 | { |
4631 | 0 | IPC::Message* msg__ = PContent::Msg_DeleteGetFilesRequest(MSG_ROUTING_CONTROL); |
4632 | 0 |
|
4633 | 0 | WriteIPDLParam(msg__, this, aID); |
4634 | 0 | // Sentinel = 'aID' |
4635 | 0 | (msg__)->WriteSentinel(2735041849); |
4636 | 0 |
|
4637 | 0 |
|
4638 | 0 |
|
4639 | 0 |
|
4640 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4641 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4642 | 0 | } |
4643 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DeleteGetFilesRequest", OTHER); |
4644 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4645 | 0 | mozilla::ipc::LogicError("Transition error"); |
4646 | 0 | } |
4647 | 0 |
|
4648 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4649 | 0 | return sendok__; |
4650 | 0 | } |
4651 | | |
4652 | | auto PContentChild::SendFileCreationRequest( |
4653 | | const nsID& aID, |
4654 | | const nsString& aFullPath, |
4655 | | const nsString& aType, |
4656 | | const nsString& aName, |
4657 | | const bool& lastModifiedPassed, |
4658 | | const int64_t& lastModified, |
4659 | | const bool& aExistenceCheck, |
4660 | | const bool& aIsFromNsIFile) -> bool |
4661 | 0 | { |
4662 | 0 | IPC::Message* msg__ = PContent::Msg_FileCreationRequest(MSG_ROUTING_CONTROL); |
4663 | 0 |
|
4664 | 0 | WriteIPDLParam(msg__, this, aID); |
4665 | 0 | // Sentinel = 'aID' |
4666 | 0 | (msg__)->WriteSentinel(2735041849); |
4667 | 0 | WriteIPDLParam(msg__, this, aFullPath); |
4668 | 0 | // Sentinel = 'aFullPath' |
4669 | 0 | (msg__)->WriteSentinel(4067018590); |
4670 | 0 | WriteIPDLParam(msg__, this, aType); |
4671 | 0 | // Sentinel = 'aType' |
4672 | 0 | (msg__)->WriteSentinel(1819585676); |
4673 | 0 | WriteIPDLParam(msg__, this, aName); |
4674 | 0 | // Sentinel = 'aName' |
4675 | 0 | (msg__)->WriteSentinel(1450162941); |
4676 | 0 | WriteIPDLParam(msg__, this, lastModifiedPassed); |
4677 | 0 | // Sentinel = 'lastModifiedPassed' |
4678 | 0 | (msg__)->WriteSentinel(3066214163); |
4679 | 0 | WriteIPDLParam(msg__, this, lastModified); |
4680 | 0 | // Sentinel = 'lastModified' |
4681 | 0 | (msg__)->WriteSentinel(3456113257); |
4682 | 0 | WriteIPDLParam(msg__, this, aExistenceCheck); |
4683 | 0 | // Sentinel = 'aExistenceCheck' |
4684 | 0 | (msg__)->WriteSentinel(1222718518); |
4685 | 0 | WriteIPDLParam(msg__, this, aIsFromNsIFile); |
4686 | 0 | // Sentinel = 'aIsFromNsIFile' |
4687 | 0 | (msg__)->WriteSentinel(3315483341); |
4688 | 0 |
|
4689 | 0 |
|
4690 | 0 |
|
4691 | 0 |
|
4692 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4693 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4694 | 0 | } |
4695 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FileCreationRequest", OTHER); |
4696 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4697 | 0 | mozilla::ipc::LogicError("Transition error"); |
4698 | 0 | } |
4699 | 0 |
|
4700 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4701 | 0 | return sendok__; |
4702 | 0 | } |
4703 | | |
4704 | | auto PContentChild::SendStoreAndBroadcastBlobURLRegistration( |
4705 | | const nsCString& url, |
4706 | | const IPCBlob& blob, |
4707 | | const Principal& principal) -> bool |
4708 | 0 | { |
4709 | 0 | IPC::Message* msg__ = PContent::Msg_StoreAndBroadcastBlobURLRegistration(MSG_ROUTING_CONTROL); |
4710 | 0 |
|
4711 | 0 | WriteIPDLParam(msg__, this, url); |
4712 | 0 | // Sentinel = 'url' |
4713 | 0 | (msg__)->WriteSentinel(1453210600); |
4714 | 0 | WriteIPDLParam(msg__, this, blob); |
4715 | 0 | // Sentinel = 'blob' |
4716 | 0 | (msg__)->WriteSentinel(1963585077); |
4717 | 0 | WriteIPDLParam(msg__, this, principal); |
4718 | 0 | // Sentinel = 'principal' |
4719 | 0 | (msg__)->WriteSentinel(732240927); |
4720 | 0 |
|
4721 | 0 |
|
4722 | 0 |
|
4723 | 0 |
|
4724 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4725 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4726 | 0 | } |
4727 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_StoreAndBroadcastBlobURLRegistration", OTHER); |
4728 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4729 | 0 | mozilla::ipc::LogicError("Transition error"); |
4730 | 0 | } |
4731 | 0 |
|
4732 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4733 | 0 | return sendok__; |
4734 | 0 | } |
4735 | | |
4736 | | auto PContentChild::SendUnstoreAndBroadcastBlobURLUnregistration(const nsCString& url) -> bool |
4737 | 0 | { |
4738 | 0 | IPC::Message* msg__ = PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration(MSG_ROUTING_CONTROL); |
4739 | 0 |
|
4740 | 0 | WriteIPDLParam(msg__, this, url); |
4741 | 0 | // Sentinel = 'url' |
4742 | 0 | (msg__)->WriteSentinel(1453210600); |
4743 | 0 |
|
4744 | 0 |
|
4745 | 0 |
|
4746 | 0 |
|
4747 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4748 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4749 | 0 | } |
4750 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UnstoreAndBroadcastBlobURLUnregistration", OTHER); |
4751 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4752 | 0 | mozilla::ipc::LogicError("Transition error"); |
4753 | 0 | } |
4754 | 0 |
|
4755 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4756 | 0 | return sendok__; |
4757 | 0 | } |
4758 | | |
4759 | | auto PContentChild::SendAccumulateChildHistograms(const nsTArray<HistogramAccumulation>& accumulations) -> bool |
4760 | 0 | { |
4761 | 0 | IPC::Message* msg__ = PContent::Msg_AccumulateChildHistograms(MSG_ROUTING_CONTROL); |
4762 | 0 |
|
4763 | 0 | WriteIPDLParam(msg__, this, accumulations); |
4764 | 0 | // Sentinel = 'accumulations' |
4765 | 0 | (msg__)->WriteSentinel(2180708333); |
4766 | 0 |
|
4767 | 0 |
|
4768 | 0 |
|
4769 | 0 |
|
4770 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4771 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4772 | 0 | } |
4773 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildHistograms", OTHER); |
4774 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4775 | 0 | mozilla::ipc::LogicError("Transition error"); |
4776 | 0 | } |
4777 | 0 |
|
4778 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4779 | 0 | return sendok__; |
4780 | 0 | } |
4781 | | |
4782 | | auto PContentChild::SendAccumulateChildKeyedHistograms(const nsTArray<KeyedHistogramAccumulation>& accumulations) -> bool |
4783 | 0 | { |
4784 | 0 | IPC::Message* msg__ = PContent::Msg_AccumulateChildKeyedHistograms(MSG_ROUTING_CONTROL); |
4785 | 0 |
|
4786 | 0 | WriteIPDLParam(msg__, this, accumulations); |
4787 | 0 | // Sentinel = 'accumulations' |
4788 | 0 | (msg__)->WriteSentinel(2180708333); |
4789 | 0 |
|
4790 | 0 |
|
4791 | 0 |
|
4792 | 0 |
|
4793 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4794 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4795 | 0 | } |
4796 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AccumulateChildKeyedHistograms", OTHER); |
4797 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4798 | 0 | mozilla::ipc::LogicError("Transition error"); |
4799 | 0 | } |
4800 | 0 |
|
4801 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4802 | 0 | return sendok__; |
4803 | 0 | } |
4804 | | |
4805 | | auto PContentChild::SendUpdateChildScalars(const nsTArray<ScalarAction>& updates) -> bool |
4806 | 0 | { |
4807 | 0 | IPC::Message* msg__ = PContent::Msg_UpdateChildScalars(MSG_ROUTING_CONTROL); |
4808 | 0 |
|
4809 | 0 | WriteIPDLParam(msg__, this, updates); |
4810 | 0 | // Sentinel = 'updates' |
4811 | 0 | (msg__)->WriteSentinel(3737108565); |
4812 | 0 |
|
4813 | 0 |
|
4814 | 0 |
|
4815 | 0 |
|
4816 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4817 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4818 | 0 | } |
4819 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildScalars", OTHER); |
4820 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4821 | 0 | mozilla::ipc::LogicError("Transition error"); |
4822 | 0 | } |
4823 | 0 |
|
4824 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4825 | 0 | return sendok__; |
4826 | 0 | } |
4827 | | |
4828 | | auto PContentChild::SendUpdateChildKeyedScalars(const nsTArray<KeyedScalarAction>& updates) -> bool |
4829 | 0 | { |
4830 | 0 | IPC::Message* msg__ = PContent::Msg_UpdateChildKeyedScalars(MSG_ROUTING_CONTROL); |
4831 | 0 |
|
4832 | 0 | WriteIPDLParam(msg__, this, updates); |
4833 | 0 | // Sentinel = 'updates' |
4834 | 0 | (msg__)->WriteSentinel(3737108565); |
4835 | 0 |
|
4836 | 0 |
|
4837 | 0 |
|
4838 | 0 |
|
4839 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4840 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4841 | 0 | } |
4842 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateChildKeyedScalars", OTHER); |
4843 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4844 | 0 | mozilla::ipc::LogicError("Transition error"); |
4845 | 0 | } |
4846 | 0 |
|
4847 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4848 | 0 | return sendok__; |
4849 | 0 | } |
4850 | | |
4851 | | auto PContentChild::SendRecordChildEvents(const nsTArray<ChildEventData>& events) -> bool |
4852 | 0 | { |
4853 | 0 | IPC::Message* msg__ = PContent::Msg_RecordChildEvents(MSG_ROUTING_CONTROL); |
4854 | 0 |
|
4855 | 0 | WriteIPDLParam(msg__, this, events); |
4856 | 0 | // Sentinel = 'events' |
4857 | 0 | (msg__)->WriteSentinel(1921707453); |
4858 | 0 |
|
4859 | 0 |
|
4860 | 0 |
|
4861 | 0 |
|
4862 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4863 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4864 | 0 | } |
4865 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RecordChildEvents", OTHER); |
4866 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4867 | 0 | mozilla::ipc::LogicError("Transition error"); |
4868 | 0 | } |
4869 | 0 |
|
4870 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4871 | 0 | return sendok__; |
4872 | 0 | } |
4873 | | |
4874 | | auto PContentChild::SendRecordDiscardedData(const DiscardedData& data) -> bool |
4875 | 0 | { |
4876 | 0 | IPC::Message* msg__ = PContent::Msg_RecordDiscardedData(MSG_ROUTING_CONTROL); |
4877 | 0 |
|
4878 | 0 | WriteIPDLParam(msg__, this, data); |
4879 | 0 | // Sentinel = 'data' |
4880 | 0 | (msg__)->WriteSentinel(843352540); |
4881 | 0 |
|
4882 | 0 |
|
4883 | 0 |
|
4884 | 0 |
|
4885 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4886 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4887 | 0 | } |
4888 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RecordDiscardedData", OTHER); |
4889 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4890 | 0 | mozilla::ipc::LogicError("Transition error"); |
4891 | 0 | } |
4892 | 0 |
|
4893 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4894 | 0 | return sendok__; |
4895 | 0 | } |
4896 | | |
4897 | | auto PContentChild::SendGetA11yContentId(uint32_t* aContentId) -> bool |
4898 | 0 | { |
4899 | 0 | IPC::Message* msg__ = PContent::Msg_GetA11yContentId(MSG_ROUTING_CONTROL); |
4900 | 0 |
|
4901 | 0 |
|
4902 | 0 |
|
4903 | 0 |
|
4904 | 0 | Message reply__; |
4905 | 0 |
|
4906 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4907 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4908 | 0 | } |
4909 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetA11yContentId", OTHER); |
4910 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4911 | 0 | mozilla::ipc::LogicError("Transition error"); |
4912 | 0 | } |
4913 | 0 |
|
4914 | 0 | bool sendok__; |
4915 | 0 | { |
4916 | 0 | AUTO_PROFILER_TRACING("IPC", "PContent::Msg_GetA11yContentId"); |
4917 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
4918 | 0 | } |
4919 | 0 | if ((!(sendok__))) { |
4920 | 0 | return false; |
4921 | 0 | } |
4922 | 0 | |
4923 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4924 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
4925 | 0 | } |
4926 | 0 |
|
4927 | 0 | PickleIterator iter__(reply__); |
4928 | 0 |
|
4929 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, aContentId)))) { |
4930 | 0 | FatalError("Error deserializing 'uint32_t'"); |
4931 | 0 | return false; |
4932 | 0 | } |
4933 | 0 | // Sentinel = 'aContentId' |
4934 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2021670937)))) { |
4935 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
4936 | 0 | return false; |
4937 | 0 | } |
4938 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
4939 | 0 |
|
4940 | 0 | return true; |
4941 | 0 | } |
4942 | | |
4943 | | auto PContentChild::SendA11yHandlerControl( |
4944 | | const uint32_t& aPid, |
4945 | | const IHandlerControlHolder& aHandlerControl) -> bool |
4946 | 0 | { |
4947 | 0 | IPC::Message* msg__ = PContent::Msg_A11yHandlerControl(MSG_ROUTING_CONTROL); |
4948 | 0 |
|
4949 | 0 | WriteIPDLParam(msg__, this, aPid); |
4950 | 0 | // Sentinel = 'aPid' |
4951 | 0 | (msg__)->WriteSentinel(4120646000); |
4952 | 0 | WriteIPDLParam(msg__, this, aHandlerControl); |
4953 | 0 | // Sentinel = 'aHandlerControl' |
4954 | 0 | (msg__)->WriteSentinel(3719124325); |
4955 | 0 |
|
4956 | 0 |
|
4957 | 0 |
|
4958 | 0 |
|
4959 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4960 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4961 | 0 | } |
4962 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_A11yHandlerControl", OTHER); |
4963 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4964 | 0 | mozilla::ipc::LogicError("Transition error"); |
4965 | 0 | } |
4966 | 0 |
|
4967 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4968 | 0 | return sendok__; |
4969 | 0 | } |
4970 | | |
4971 | | auto PContentChild::SendAddMemoryReport(const MemoryReport& aReport) -> bool |
4972 | 0 | { |
4973 | 0 | IPC::Message* msg__ = PContent::Msg_AddMemoryReport(MSG_ROUTING_CONTROL); |
4974 | 0 |
|
4975 | 0 | WriteIPDLParam(msg__, this, aReport); |
4976 | 0 | // Sentinel = 'aReport' |
4977 | 0 | (msg__)->WriteSentinel(3792799576); |
4978 | 0 |
|
4979 | 0 |
|
4980 | 0 |
|
4981 | 0 |
|
4982 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
4983 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
4984 | 0 | } |
4985 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddMemoryReport", OTHER); |
4986 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
4987 | 0 | mozilla::ipc::LogicError("Transition error"); |
4988 | 0 | } |
4989 | 0 |
|
4990 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
4991 | 0 | return sendok__; |
4992 | 0 | } |
4993 | | |
4994 | | auto PContentChild::SendFinishMemoryReport(const uint32_t& aGeneration) -> bool |
4995 | 0 | { |
4996 | 0 | IPC::Message* msg__ = PContent::Msg_FinishMemoryReport(MSG_ROUTING_CONTROL); |
4997 | 0 |
|
4998 | 0 | WriteIPDLParam(msg__, this, aGeneration); |
4999 | 0 | // Sentinel = 'aGeneration' |
5000 | 0 | (msg__)->WriteSentinel(2329783584); |
5001 | 0 |
|
5002 | 0 |
|
5003 | 0 |
|
5004 | 0 |
|
5005 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5006 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5007 | 0 | } |
5008 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FinishMemoryReport", OTHER); |
5009 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5010 | 0 | mozilla::ipc::LogicError("Transition error"); |
5011 | 0 | } |
5012 | 0 |
|
5013 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5014 | 0 | return sendok__; |
5015 | 0 | } |
5016 | | |
5017 | | auto PContentChild::SendMaybeReloadPlugins() -> bool |
5018 | 0 | { |
5019 | 0 | IPC::Message* msg__ = PContent::Msg_MaybeReloadPlugins(MSG_ROUTING_CONTROL); |
5020 | 0 |
|
5021 | 0 |
|
5022 | 0 |
|
5023 | 0 |
|
5024 | 0 |
|
5025 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5026 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5027 | 0 | } |
5028 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_MaybeReloadPlugins", OTHER); |
5029 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5030 | 0 | mozilla::ipc::LogicError("Transition error"); |
5031 | 0 | } |
5032 | 0 |
|
5033 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5034 | 0 | return sendok__; |
5035 | 0 | } |
5036 | | |
5037 | | auto PContentChild::SendBHRThreadHang(const HangDetails& aHangDetails) -> bool |
5038 | 0 | { |
5039 | 0 | IPC::Message* msg__ = PContent::Msg_BHRThreadHang(MSG_ROUTING_CONTROL); |
5040 | 0 |
|
5041 | 0 | WriteIPDLParam(msg__, this, aHangDetails); |
5042 | 0 | // Sentinel = 'aHangDetails' |
5043 | 0 | (msg__)->WriteSentinel(2710776857); |
5044 | 0 |
|
5045 | 0 |
|
5046 | 0 |
|
5047 | 0 |
|
5048 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5049 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5050 | 0 | } |
5051 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BHRThreadHang", OTHER); |
5052 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5053 | 0 | mozilla::ipc::LogicError("Transition error"); |
5054 | 0 | } |
5055 | 0 |
|
5056 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5057 | 0 | return sendok__; |
5058 | 0 | } |
5059 | | |
5060 | | auto PContentChild::SendAddPerformanceMetrics( |
5061 | | const nsID& aID, |
5062 | | const nsTArray<PerformanceInfo>& aMetrics) -> bool |
5063 | 0 | { |
5064 | 0 | IPC::Message* msg__ = PContent::Msg_AddPerformanceMetrics(MSG_ROUTING_CONTROL); |
5065 | 0 |
|
5066 | 0 | WriteIPDLParam(msg__, this, aID); |
5067 | 0 | // Sentinel = 'aID' |
5068 | 0 | (msg__)->WriteSentinel(2735041849); |
5069 | 0 | WriteIPDLParam(msg__, this, aMetrics); |
5070 | 0 | // Sentinel = 'aMetrics' |
5071 | 0 | (msg__)->WriteSentinel(4116521140); |
5072 | 0 |
|
5073 | 0 |
|
5074 | 0 |
|
5075 | 0 |
|
5076 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5077 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5078 | 0 | } |
5079 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddPerformanceMetrics", OTHER); |
5080 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5081 | 0 | mozilla::ipc::LogicError("Transition error"); |
5082 | 0 | } |
5083 | 0 |
|
5084 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5085 | 0 | return sendok__; |
5086 | 0 | } |
5087 | | |
5088 | | auto PContentChild::SendFirstPartyStorageAccessGrantedForOrigin( |
5089 | | const Principal& aParentPrincipal, |
5090 | | const nsCString& aTrackingOrigin, |
5091 | | const nsCString& aGrantedOrigin, |
5092 | | mozilla::ipc::ResolveCallback<bool>&& aResolve, |
5093 | | mozilla::ipc::RejectCallback&& aReject) -> void |
5094 | 0 | { |
5095 | 0 | IPC::Message* msg__ = PContent::Msg_FirstPartyStorageAccessGrantedForOrigin(MSG_ROUTING_CONTROL); |
5096 | 0 |
|
5097 | 0 | WriteIPDLParam(msg__, this, aParentPrincipal); |
5098 | 0 | // Sentinel = 'aParentPrincipal' |
5099 | 0 | (msg__)->WriteSentinel(3187350213); |
5100 | 0 | WriteIPDLParam(msg__, this, aTrackingOrigin); |
5101 | 0 | // Sentinel = 'aTrackingOrigin' |
5102 | 0 | (msg__)->WriteSentinel(3446324311); |
5103 | 0 | WriteIPDLParam(msg__, this, aGrantedOrigin); |
5104 | 0 | // Sentinel = 'aGrantedOrigin' |
5105 | 0 | (msg__)->WriteSentinel(4223735530); |
5106 | 0 |
|
5107 | 0 |
|
5108 | 0 |
|
5109 | 0 |
|
5110 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5111 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5112 | 0 | } |
5113 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FirstPartyStorageAccessGrantedForOrigin", OTHER); |
5114 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5115 | 0 | mozilla::ipc::LogicError("Transition error"); |
5116 | 0 | } |
5117 | 0 |
|
5118 | 0 | (GetIPCChannel())->Send(msg__, this, std::move(aResolve), std::move(aReject)); |
5119 | 0 | return; |
5120 | 0 | } |
5121 | | |
5122 | | auto PContentChild::SendFirstPartyStorageAccessGrantedForOrigin( |
5123 | | const Principal& aParentPrincipal, |
5124 | | const nsCString& aTrackingOrigin, |
5125 | | const nsCString& aGrantedOrigin) -> RefPtr<FirstPartyStorageAccessGrantedForOriginPromise> |
5126 | 0 | { |
5127 | 0 |
|
5128 | 0 | RefPtr<MozPromise<bool, ResponseRejectReason, false>::Private> promise__ = new MozPromise<bool, ResponseRejectReason, false>::Private(__func__); |
5129 | 0 |
|
5130 | 0 | SendFirstPartyStorageAccessGrantedForOrigin(aParentPrincipal, aTrackingOrigin, aGrantedOrigin, [promise__](bool&& aValue) { |
5131 | 0 | (promise__)->Resolve(std::move(aValue), __func__); |
5132 | 0 | }, [promise__](ResponseRejectReason aReason) { |
5133 | 0 | (promise__)->Reject(aReason, __func__); |
5134 | 0 | }); |
5135 | 0 | return promise__; |
5136 | 0 | } |
5137 | | |
5138 | | auto PContentChild::SendStoreUserInteractionAsPermission(const Principal& aPrincipal) -> bool |
5139 | 0 | { |
5140 | 0 | IPC::Message* msg__ = PContent::Msg_StoreUserInteractionAsPermission(MSG_ROUTING_CONTROL); |
5141 | 0 |
|
5142 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
5143 | 0 | // Sentinel = 'aPrincipal' |
5144 | 0 | (msg__)->WriteSentinel(4097511); |
5145 | 0 |
|
5146 | 0 |
|
5147 | 0 |
|
5148 | 0 |
|
5149 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5150 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5151 | 0 | } |
5152 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_StoreUserInteractionAsPermission", OTHER); |
5153 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5154 | 0 | mozilla::ipc::LogicError("Transition error"); |
5155 | 0 | } |
5156 | 0 |
|
5157 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5158 | 0 | return sendok__; |
5159 | 0 | } |
5160 | | |
5161 | | auto PContentChild::SendAttachBrowsingContext( |
5162 | | const BrowsingContextId& aParentContextId, |
5163 | | const BrowsingContextId& aContextId, |
5164 | | const nsString& aName) -> bool |
5165 | 0 | { |
5166 | 0 | IPC::Message* msg__ = PContent::Msg_AttachBrowsingContext(MSG_ROUTING_CONTROL); |
5167 | 0 |
|
5168 | 0 | WriteIPDLParam(msg__, this, aParentContextId); |
5169 | 0 | // Sentinel = 'aParentContextId' |
5170 | 0 | (msg__)->WriteSentinel(1041596981); |
5171 | 0 | WriteIPDLParam(msg__, this, aContextId); |
5172 | 0 | // Sentinel = 'aContextId' |
5173 | 0 | (msg__)->WriteSentinel(1527674007); |
5174 | 0 | WriteIPDLParam(msg__, this, aName); |
5175 | 0 | // Sentinel = 'aName' |
5176 | 0 | (msg__)->WriteSentinel(1450162941); |
5177 | 0 |
|
5178 | 0 |
|
5179 | 0 |
|
5180 | 0 |
|
5181 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5182 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5183 | 0 | } |
5184 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AttachBrowsingContext", OTHER); |
5185 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5186 | 0 | mozilla::ipc::LogicError("Transition error"); |
5187 | 0 | } |
5188 | 0 |
|
5189 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5190 | 0 | return sendok__; |
5191 | 0 | } |
5192 | | |
5193 | | auto PContentChild::SendDetachBrowsingContext( |
5194 | | const BrowsingContextId& aContextId, |
5195 | | const bool& aMoveToBFCache) -> bool |
5196 | 0 | { |
5197 | 0 | IPC::Message* msg__ = PContent::Msg_DetachBrowsingContext(MSG_ROUTING_CONTROL); |
5198 | 0 |
|
5199 | 0 | WriteIPDLParam(msg__, this, aContextId); |
5200 | 0 | // Sentinel = 'aContextId' |
5201 | 0 | (msg__)->WriteSentinel(1527674007); |
5202 | 0 | WriteIPDLParam(msg__, this, aMoveToBFCache); |
5203 | 0 | // Sentinel = 'aMoveToBFCache' |
5204 | 0 | (msg__)->WriteSentinel(3958563075); |
5205 | 0 |
|
5206 | 0 |
|
5207 | 0 |
|
5208 | 0 |
|
5209 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5210 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5211 | 0 | } |
5212 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DetachBrowsingContext", OTHER); |
5213 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5214 | 0 | mozilla::ipc::LogicError("Transition error"); |
5215 | 0 | } |
5216 | 0 |
|
5217 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5218 | 0 | return sendok__; |
5219 | 0 | } |
5220 | | |
5221 | | auto PContentChild::SendAsyncMessage( |
5222 | | const nsString& aMessage, |
5223 | | const nsTArray<CpowEntry>& aCpows, |
5224 | | const Principal& aPrincipal, |
5225 | | const ClonedMessageData& aData) -> bool |
5226 | 0 | { |
5227 | 0 | IPC::Message* msg__ = PContent::Msg_AsyncMessage(MSG_ROUTING_CONTROL); |
5228 | 0 |
|
5229 | 0 | WriteIPDLParam(msg__, this, aMessage); |
5230 | 0 | // Sentinel = 'aMessage' |
5231 | 0 | (msg__)->WriteSentinel(3453110902); |
5232 | 0 | WriteIPDLParam(msg__, this, aCpows); |
5233 | 0 | // Sentinel = 'aCpows' |
5234 | 0 | (msg__)->WriteSentinel(2178221451); |
5235 | 0 | WriteIPDLParam(msg__, this, aPrincipal); |
5236 | 0 | // Sentinel = 'aPrincipal' |
5237 | 0 | (msg__)->WriteSentinel(4097511); |
5238 | 0 | WriteIPDLParam(msg__, this, aData); |
5239 | 0 | // Sentinel = 'aData' |
5240 | 0 | (msg__)->WriteSentinel(3285075324); |
5241 | 0 |
|
5242 | 0 |
|
5243 | 0 |
|
5244 | 0 |
|
5245 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5246 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5247 | 0 | } |
5248 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER); |
5249 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5250 | 0 | mozilla::ipc::LogicError("Transition error"); |
5251 | 0 | } |
5252 | 0 |
|
5253 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5254 | 0 | return sendok__; |
5255 | 0 | } |
5256 | | |
5257 | | auto PContentChild::SendNotifyPushSubscriptionModifiedObservers( |
5258 | | const nsCString& scope, |
5259 | | const Principal& principal) -> bool |
5260 | 0 | { |
5261 | 0 | IPC::Message* msg__ = PContent::Msg_NotifyPushSubscriptionModifiedObservers(MSG_ROUTING_CONTROL); |
5262 | 0 |
|
5263 | 0 | WriteIPDLParam(msg__, this, scope); |
5264 | 0 | // Sentinel = 'scope' |
5265 | 0 | (msg__)->WriteSentinel(2191984953); |
5266 | 0 | WriteIPDLParam(msg__, this, principal); |
5267 | 0 | // Sentinel = 'principal' |
5268 | 0 | (msg__)->WriteSentinel(732240927); |
5269 | 0 |
|
5270 | 0 |
|
5271 | 0 |
|
5272 | 0 |
|
5273 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5274 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
5275 | 0 | } |
5276 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER); |
5277 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5278 | 0 | mozilla::ipc::LogicError("Transition error"); |
5279 | 0 | } |
5280 | 0 |
|
5281 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
5282 | 0 | return sendok__; |
5283 | 0 | } |
5284 | | |
5285 | | auto PContentChild::RemoveManagee( |
5286 | | int32_t aProtocolId, |
5287 | | IProtocol* aListener) -> void |
5288 | 0 | { |
5289 | 0 | switch (aProtocolId) { |
5290 | 0 | case PBrowserMsgStart: |
5291 | 0 | { |
5292 | 0 | PBrowserChild* actor = static_cast<PBrowserChild*>(aListener); |
5293 | 0 | auto& container = mManagedPBrowserChild; |
5294 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5295 | 0 |
|
5296 | 0 | (container).RemoveEntry(actor); |
5297 | 0 | DeallocPBrowserChild(actor); |
5298 | 0 | return; |
5299 | 0 | } |
5300 | 0 | case PClientOpenWindowOpMsgStart: |
5301 | 0 | { |
5302 | 0 | PClientOpenWindowOpChild* actor = static_cast<PClientOpenWindowOpChild*>(aListener); |
5303 | 0 | auto& container = mManagedPClientOpenWindowOpChild; |
5304 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5305 | 0 |
|
5306 | 0 | (container).RemoveEntry(actor); |
5307 | 0 | DeallocPClientOpenWindowOpChild(actor); |
5308 | 0 | return; |
5309 | 0 | } |
5310 | 0 | case PContentPermissionRequestMsgStart: |
5311 | 0 | { |
5312 | 0 | PContentPermissionRequestChild* actor = static_cast<PContentPermissionRequestChild*>(aListener); |
5313 | 0 | auto& container = mManagedPContentPermissionRequestChild; |
5314 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5315 | 0 |
|
5316 | 0 | (container).RemoveEntry(actor); |
5317 | 0 | DeallocPContentPermissionRequestChild(actor); |
5318 | 0 | return; |
5319 | 0 | } |
5320 | 0 | case PCycleCollectWithLogsMsgStart: |
5321 | 0 | { |
5322 | 0 | PCycleCollectWithLogsChild* actor = static_cast<PCycleCollectWithLogsChild*>(aListener); |
5323 | 0 | auto& container = mManagedPCycleCollectWithLogsChild; |
5324 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5325 | 0 |
|
5326 | 0 | (container).RemoveEntry(actor); |
5327 | 0 | DeallocPCycleCollectWithLogsChild(actor); |
5328 | 0 | return; |
5329 | 0 | } |
5330 | 0 | case PPSMContentDownloaderMsgStart: |
5331 | 0 | { |
5332 | 0 | PPSMContentDownloaderChild* actor = static_cast<PPSMContentDownloaderChild*>(aListener); |
5333 | 0 | auto& container = mManagedPPSMContentDownloaderChild; |
5334 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5335 | 0 |
|
5336 | 0 | (container).RemoveEntry(actor); |
5337 | 0 | DeallocPPSMContentDownloaderChild(actor); |
5338 | 0 | return; |
5339 | 0 | } |
5340 | 0 | case PExternalHelperAppMsgStart: |
5341 | 0 | { |
5342 | 0 | PExternalHelperAppChild* actor = static_cast<PExternalHelperAppChild*>(aListener); |
5343 | 0 | auto& container = mManagedPExternalHelperAppChild; |
5344 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5345 | 0 |
|
5346 | 0 | (container).RemoveEntry(actor); |
5347 | 0 | DeallocPExternalHelperAppChild(actor); |
5348 | 0 | return; |
5349 | 0 | } |
5350 | 0 | case PFileDescriptorSetMsgStart: |
5351 | 0 | { |
5352 | 0 | PFileDescriptorSetChild* actor = static_cast<PFileDescriptorSetChild*>(aListener); |
5353 | 0 | auto& container = mManagedPFileDescriptorSetChild; |
5354 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5355 | 0 |
|
5356 | 0 | (container).RemoveEntry(actor); |
5357 | 0 | DeallocPFileDescriptorSetChild(actor); |
5358 | 0 | return; |
5359 | 0 | } |
5360 | 0 | case PHalMsgStart: |
5361 | 0 | { |
5362 | 0 | PHalChild* actor = static_cast<PHalChild*>(aListener); |
5363 | 0 | auto& container = mManagedPHalChild; |
5364 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5365 | 0 |
|
5366 | 0 | (container).RemoveEntry(actor); |
5367 | 0 | DeallocPHalChild(actor); |
5368 | 0 | return; |
5369 | 0 | } |
5370 | 0 | case PHandlerServiceMsgStart: |
5371 | 0 | { |
5372 | 0 | PHandlerServiceChild* actor = static_cast<PHandlerServiceChild*>(aListener); |
5373 | 0 | auto& container = mManagedPHandlerServiceChild; |
5374 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5375 | 0 |
|
5376 | 0 | (container).RemoveEntry(actor); |
5377 | 0 | DeallocPHandlerServiceChild(actor); |
5378 | 0 | return; |
5379 | 0 | } |
5380 | 0 | case PHeapSnapshotTempFileHelperMsgStart: |
5381 | 0 | { |
5382 | 0 | PHeapSnapshotTempFileHelperChild* actor = static_cast<PHeapSnapshotTempFileHelperChild*>(aListener); |
5383 | 0 | auto& container = mManagedPHeapSnapshotTempFileHelperChild; |
5384 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5385 | 0 |
|
5386 | 0 | (container).RemoveEntry(actor); |
5387 | 0 | DeallocPHeapSnapshotTempFileHelperChild(actor); |
5388 | 0 | return; |
5389 | 0 | } |
5390 | 0 | case PIPCBlobInputStreamMsgStart: |
5391 | 0 | { |
5392 | 0 | PIPCBlobInputStreamChild* actor = static_cast<PIPCBlobInputStreamChild*>(aListener); |
5393 | 0 | auto& container = mManagedPIPCBlobInputStreamChild; |
5394 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5395 | 0 |
|
5396 | 0 | (container).RemoveEntry(actor); |
5397 | 0 | DeallocPIPCBlobInputStreamChild(actor); |
5398 | 0 | return; |
5399 | 0 | } |
5400 | 0 | case PMediaMsgStart: |
5401 | 0 | { |
5402 | 0 | PMediaChild* actor = static_cast<PMediaChild*>(aListener); |
5403 | 0 | auto& container = mManagedPMediaChild; |
5404 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5405 | 0 |
|
5406 | 0 | (container).RemoveEntry(actor); |
5407 | 0 | DeallocPMediaChild(actor); |
5408 | 0 | return; |
5409 | 0 | } |
5410 | 0 | case PNeckoMsgStart: |
5411 | 0 | { |
5412 | 0 | PNeckoChild* actor = static_cast<PNeckoChild*>(aListener); |
5413 | 0 | auto& container = mManagedPNeckoChild; |
5414 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5415 | 0 |
|
5416 | 0 | (container).RemoveEntry(actor); |
5417 | 0 | DeallocPNeckoChild(actor); |
5418 | 0 | return; |
5419 | 0 | } |
5420 | 0 | case POfflineCacheUpdateMsgStart: |
5421 | 0 | { |
5422 | 0 | POfflineCacheUpdateChild* actor = static_cast<POfflineCacheUpdateChild*>(aListener); |
5423 | 0 | auto& container = mManagedPOfflineCacheUpdateChild; |
5424 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5425 | 0 |
|
5426 | 0 | (container).RemoveEntry(actor); |
5427 | 0 | DeallocPOfflineCacheUpdateChild(actor); |
5428 | 0 | return; |
5429 | 0 | } |
5430 | 0 | case PPrintingMsgStart: |
5431 | 0 | { |
5432 | 0 | PPrintingChild* actor = static_cast<PPrintingChild*>(aListener); |
5433 | 0 | auto& container = mManagedPPrintingChild; |
5434 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5435 | 0 |
|
5436 | 0 | (container).RemoveEntry(actor); |
5437 | 0 | DeallocPPrintingChild(actor); |
5438 | 0 | return; |
5439 | 0 | } |
5440 | 0 | case PChildToParentStreamMsgStart: |
5441 | 0 | { |
5442 | 0 | PChildToParentStreamChild* actor = static_cast<PChildToParentStreamChild*>(aListener); |
5443 | 0 | auto& container = mManagedPChildToParentStreamChild; |
5444 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5445 | 0 |
|
5446 | 0 | (container).RemoveEntry(actor); |
5447 | 0 | DeallocPChildToParentStreamChild(actor); |
5448 | 0 | return; |
5449 | 0 | } |
5450 | 0 | case PParentToChildStreamMsgStart: |
5451 | 0 | { |
5452 | 0 | PParentToChildStreamChild* actor = static_cast<PParentToChildStreamChild*>(aListener); |
5453 | 0 | auto& container = mManagedPParentToChildStreamChild; |
5454 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5455 | 0 |
|
5456 | 0 | (container).RemoveEntry(actor); |
5457 | 0 | DeallocPParentToChildStreamChild(actor); |
5458 | 0 | return; |
5459 | 0 | } |
5460 | 0 | case PSpeechSynthesisMsgStart: |
5461 | 0 | { |
5462 | 0 | PSpeechSynthesisChild* actor = static_cast<PSpeechSynthesisChild*>(aListener); |
5463 | 0 | auto& container = mManagedPSpeechSynthesisChild; |
5464 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5465 | 0 |
|
5466 | 0 | (container).RemoveEntry(actor); |
5467 | 0 | DeallocPSpeechSynthesisChild(actor); |
5468 | 0 | return; |
5469 | 0 | } |
5470 | 0 | case PTestShellMsgStart: |
5471 | 0 | { |
5472 | 0 | PTestShellChild* actor = static_cast<PTestShellChild*>(aListener); |
5473 | 0 | auto& container = mManagedPTestShellChild; |
5474 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5475 | 0 |
|
5476 | 0 | (container).RemoveEntry(actor); |
5477 | 0 | DeallocPTestShellChild(actor); |
5478 | 0 | return; |
5479 | 0 | } |
5480 | 0 | case PJavaScriptMsgStart: |
5481 | 0 | { |
5482 | 0 | PJavaScriptChild* actor = static_cast<PJavaScriptChild*>(aListener); |
5483 | 0 | auto& container = mManagedPJavaScriptChild; |
5484 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5485 | 0 |
|
5486 | 0 | (container).RemoveEntry(actor); |
5487 | 0 | DeallocPJavaScriptChild(actor); |
5488 | 0 | return; |
5489 | 0 | } |
5490 | 0 | case PRemoteSpellcheckEngineMsgStart: |
5491 | 0 | { |
5492 | 0 | PRemoteSpellcheckEngineChild* actor = static_cast<PRemoteSpellcheckEngineChild*>(aListener); |
5493 | 0 | auto& container = mManagedPRemoteSpellcheckEngineChild; |
5494 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5495 | 0 |
|
5496 | 0 | (container).RemoveEntry(actor); |
5497 | 0 | DeallocPRemoteSpellcheckEngineChild(actor); |
5498 | 0 | return; |
5499 | 0 | } |
5500 | 0 | case PWebBrowserPersistDocumentMsgStart: |
5501 | 0 | { |
5502 | 0 | PWebBrowserPersistDocumentChild* actor = static_cast<PWebBrowserPersistDocumentChild*>(aListener); |
5503 | 0 | auto& container = mManagedPWebBrowserPersistDocumentChild; |
5504 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5505 | 0 |
|
5506 | 0 | (container).RemoveEntry(actor); |
5507 | 0 | DeallocPWebBrowserPersistDocumentChild(actor); |
5508 | 0 | return; |
5509 | 0 | } |
5510 | 0 | case PWebrtcGlobalMsgStart: |
5511 | 0 | { |
5512 | 0 | PWebrtcGlobalChild* actor = static_cast<PWebrtcGlobalChild*>(aListener); |
5513 | 0 | auto& container = mManagedPWebrtcGlobalChild; |
5514 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5515 | 0 |
|
5516 | 0 | (container).RemoveEntry(actor); |
5517 | 0 | DeallocPWebrtcGlobalChild(actor); |
5518 | 0 | return; |
5519 | 0 | } |
5520 | 0 | case PPresentationMsgStart: |
5521 | 0 | { |
5522 | 0 | PPresentationChild* actor = static_cast<PPresentationChild*>(aListener); |
5523 | 0 | auto& container = mManagedPPresentationChild; |
5524 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5525 | 0 |
|
5526 | 0 | (container).RemoveEntry(actor); |
5527 | 0 | DeallocPPresentationChild(actor); |
5528 | 0 | return; |
5529 | 0 | } |
5530 | 0 | case PURLClassifierMsgStart: |
5531 | 0 | { |
5532 | 0 | PURLClassifierChild* actor = static_cast<PURLClassifierChild*>(aListener); |
5533 | 0 | auto& container = mManagedPURLClassifierChild; |
5534 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5535 | 0 |
|
5536 | 0 | (container).RemoveEntry(actor); |
5537 | 0 | DeallocPURLClassifierChild(actor); |
5538 | 0 | return; |
5539 | 0 | } |
5540 | 0 | case PURLClassifierLocalMsgStart: |
5541 | 0 | { |
5542 | 0 | PURLClassifierLocalChild* actor = static_cast<PURLClassifierLocalChild*>(aListener); |
5543 | 0 | auto& container = mManagedPURLClassifierLocalChild; |
5544 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5545 | 0 |
|
5546 | 0 | (container).RemoveEntry(actor); |
5547 | 0 | DeallocPURLClassifierLocalChild(actor); |
5548 | 0 | return; |
5549 | 0 | } |
5550 | 0 | case PScriptCacheMsgStart: |
5551 | 0 | { |
5552 | 0 | PScriptCacheChild* actor = static_cast<PScriptCacheChild*>(aListener); |
5553 | 0 | auto& container = mManagedPScriptCacheChild; |
5554 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5555 | 0 |
|
5556 | 0 | (container).RemoveEntry(actor); |
5557 | 0 | DeallocPScriptCacheChild(actor); |
5558 | 0 | return; |
5559 | 0 | } |
5560 | 0 | case PLoginReputationMsgStart: |
5561 | 0 | { |
5562 | 0 | PLoginReputationChild* actor = static_cast<PLoginReputationChild*>(aListener); |
5563 | 0 | auto& container = mManagedPLoginReputationChild; |
5564 | 0 | MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!"); |
5565 | 0 |
|
5566 | 0 | (container).RemoveEntry(actor); |
5567 | 0 | DeallocPLoginReputationChild(actor); |
5568 | 0 | return; |
5569 | 0 | } |
5570 | 0 | default: |
5571 | 0 | { |
5572 | 0 | FatalError("unreached"); |
5573 | 0 | return; |
5574 | 0 | } |
5575 | 0 | } |
5576 | 0 | } |
5577 | | |
5578 | | auto PContentChild::OnMessageReceived(const Message& msg__) -> PContentChild::Result |
5579 | 0 | { |
5580 | 0 | int32_t route__ = (msg__).routing_id(); |
5581 | 0 | if ((MSG_ROUTING_CONTROL) != (route__)) { |
5582 | 0 | IProtocol* routed__ = Lookup(route__); |
5583 | 0 | if ((!(routed__))) { |
5584 | 0 | return MsgRouteError; |
5585 | 0 | } |
5586 | 0 | return (routed__)->OnMessageReceived(msg__); |
5587 | 0 | } |
5588 | 0 | |
5589 | 0 | switch ((msg__).type()) { |
5590 | 0 | case PContent::Reply_PBrowserConstructor__ID: |
5591 | 0 | { |
5592 | 0 | return MsgProcessed; |
5593 | 0 | } |
5594 | 0 | case PContent::Msg_PBrowserConstructor__ID: |
5595 | 0 | { |
5596 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5597 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5598 | 0 | } |
5599 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PBrowserConstructor", OTHER); |
5600 | 0 |
|
5601 | 0 | PickleIterator iter__(msg__); |
5602 | 0 | ActorHandle handle__; |
5603 | 0 | PBrowserChild* actor; |
5604 | 0 | TabId tabId; |
5605 | 0 | TabId sameTabGroupAs; |
5606 | 0 | IPCTabContext context; |
5607 | 0 | uint32_t chromeFlags; |
5608 | 0 | ContentParentId cpId; |
5609 | 0 | bool isForBrowser; |
5610 | 0 |
|
5611 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
5612 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
5613 | 0 | return MsgValueError; |
5614 | 0 | } |
5615 | 0 | // Sentinel = 'actor' |
5616 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
5617 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
5618 | 0 | return MsgValueError; |
5619 | 0 | } |
5620 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(tabId)))))) { |
5621 | 0 | FatalError("Error deserializing 'TabId'"); |
5622 | 0 | return MsgValueError; |
5623 | 0 | } |
5624 | 0 | // Sentinel = 'tabId' |
5625 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3419081923)))) { |
5626 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TabId'"); |
5627 | 0 | return MsgValueError; |
5628 | 0 | } |
5629 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sameTabGroupAs)))))) { |
5630 | 0 | FatalError("Error deserializing 'TabId'"); |
5631 | 0 | return MsgValueError; |
5632 | 0 | } |
5633 | 0 | // Sentinel = 'sameTabGroupAs' |
5634 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3969365410)))) { |
5635 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'TabId'"); |
5636 | 0 | return MsgValueError; |
5637 | 0 | } |
5638 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(context)))))) { |
5639 | 0 | FatalError("Error deserializing 'IPCTabContext'"); |
5640 | 0 | return MsgValueError; |
5641 | 0 | } |
5642 | 0 | // Sentinel = 'context' |
5643 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3514529014)))) { |
5644 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IPCTabContext'"); |
5645 | 0 | return MsgValueError; |
5646 | 0 | } |
5647 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(chromeFlags)))))) { |
5648 | 0 | FatalError("Error deserializing 'uint32_t'"); |
5649 | 0 | return MsgValueError; |
5650 | 0 | } |
5651 | 0 | // Sentinel = 'chromeFlags' |
5652 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 299515804)))) { |
5653 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
5654 | 0 | return MsgValueError; |
5655 | 0 | } |
5656 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cpId)))))) { |
5657 | 0 | FatalError("Error deserializing 'ContentParentId'"); |
5658 | 0 | return MsgValueError; |
5659 | 0 | } |
5660 | 0 | // Sentinel = 'cpId' |
5661 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2452595622)))) { |
5662 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ContentParentId'"); |
5663 | 0 | return MsgValueError; |
5664 | 0 | } |
5665 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isForBrowser)))))) { |
5666 | 0 | FatalError("Error deserializing 'bool'"); |
5667 | 0 | return MsgValueError; |
5668 | 0 | } |
5669 | 0 | // Sentinel = 'isForBrowser' |
5670 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2051565587)))) { |
5671 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
5672 | 0 | return MsgValueError; |
5673 | 0 | } |
5674 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5675 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5676 | 0 | FatalError("Transition error"); |
5677 | 0 | return MsgValueError; |
5678 | 0 | } |
5679 | 0 | actor = AllocPBrowserChild(tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser); |
5680 | 0 | if ((!(actor))) { |
5681 | 0 | NS_WARNING("Error constructing actor PBrowserChild"); |
5682 | 0 | return MsgValueError; |
5683 | 0 | } |
5684 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
5685 | 0 | (mManagedPBrowserChild).PutEntry(actor); |
5686 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
5687 | 0 |
|
5688 | 0 | if ((!(RecvPBrowserConstructor(actor, tabId, sameTabGroupAs, context, chromeFlags, cpId, isForBrowser)))) { |
5689 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5690 | 0 | // Error handled in mozilla::ipc::IPCResult |
5691 | 0 | return MsgProcessingError; |
5692 | 0 | } |
5693 | 0 | |
5694 | 0 | return MsgProcessed; |
5695 | 0 | } |
5696 | 0 | case PContent::Reply_PFileDescriptorSetConstructor__ID: |
5697 | 0 | { |
5698 | 0 | return MsgProcessed; |
5699 | 0 | } |
5700 | 0 | case PContent::Msg_PFileDescriptorSetConstructor__ID: |
5701 | 0 | { |
5702 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5703 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5704 | 0 | } |
5705 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PFileDescriptorSetConstructor", OTHER); |
5706 | 0 |
|
5707 | 0 | PickleIterator iter__(msg__); |
5708 | 0 | ActorHandle handle__; |
5709 | 0 | PFileDescriptorSetChild* actor; |
5710 | 0 | FileDescriptor fd; |
5711 | 0 |
|
5712 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
5713 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
5714 | 0 | return MsgValueError; |
5715 | 0 | } |
5716 | 0 | // Sentinel = 'actor' |
5717 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
5718 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
5719 | 0 | return MsgValueError; |
5720 | 0 | } |
5721 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fd)))))) { |
5722 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
5723 | 0 | return MsgValueError; |
5724 | 0 | } |
5725 | 0 | // Sentinel = 'fd' |
5726 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) { |
5727 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
5728 | 0 | return MsgValueError; |
5729 | 0 | } |
5730 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5731 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5732 | 0 | FatalError("Transition error"); |
5733 | 0 | return MsgValueError; |
5734 | 0 | } |
5735 | 0 | actor = AllocPFileDescriptorSetChild(fd); |
5736 | 0 | if ((!(actor))) { |
5737 | 0 | NS_WARNING("Error constructing actor PFileDescriptorSetChild"); |
5738 | 0 | return MsgValueError; |
5739 | 0 | } |
5740 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
5741 | 0 | (mManagedPFileDescriptorSetChild).PutEntry(actor); |
5742 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
5743 | 0 |
|
5744 | 0 | if ((!(RecvPFileDescriptorSetConstructor(actor, fd)))) { |
5745 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5746 | 0 | // Error handled in mozilla::ipc::IPCResult |
5747 | 0 | return MsgProcessingError; |
5748 | 0 | } |
5749 | 0 | |
5750 | 0 | return MsgProcessed; |
5751 | 0 | } |
5752 | 0 | case PContent::Reply_PWebBrowserPersistDocumentConstructor__ID: |
5753 | 0 | { |
5754 | 0 | return MsgProcessed; |
5755 | 0 | } |
5756 | 0 | case PContent::Msg_PWebBrowserPersistDocumentConstructor__ID: |
5757 | 0 | { |
5758 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5759 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5760 | 0 | } |
5761 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PWebBrowserPersistDocumentConstructor", OTHER); |
5762 | 0 |
|
5763 | 0 | PickleIterator iter__(msg__); |
5764 | 0 | ActorHandle handle__; |
5765 | 0 | PWebBrowserPersistDocumentChild* actor; |
5766 | 0 | PBrowserChild* aBrowser; |
5767 | 0 | uint64_t aOuterWindowID; |
5768 | 0 |
|
5769 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
5770 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
5771 | 0 | return MsgValueError; |
5772 | 0 | } |
5773 | 0 | // Sentinel = 'actor' |
5774 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
5775 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
5776 | 0 | return MsgValueError; |
5777 | 0 | } |
5778 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBrowser)))))) { |
5779 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
5780 | 0 | return MsgValueError; |
5781 | 0 | } |
5782 | 0 | // Sentinel = 'aBrowser' |
5783 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3086016059)))) { |
5784 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserChild'"); |
5785 | 0 | return MsgValueError; |
5786 | 0 | } |
5787 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aOuterWindowID)))))) { |
5788 | 0 | FatalError("Error deserializing 'uint64_t'"); |
5789 | 0 | return MsgValueError; |
5790 | 0 | } |
5791 | 0 | // Sentinel = 'aOuterWindowID' |
5792 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3438169907)))) { |
5793 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
5794 | 0 | return MsgValueError; |
5795 | 0 | } |
5796 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5797 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5798 | 0 | FatalError("Transition error"); |
5799 | 0 | return MsgValueError; |
5800 | 0 | } |
5801 | 0 | actor = AllocPWebBrowserPersistDocumentChild(aBrowser, aOuterWindowID); |
5802 | 0 | if ((!(actor))) { |
5803 | 0 | NS_WARNING("Error constructing actor PWebBrowserPersistDocumentChild"); |
5804 | 0 | return MsgValueError; |
5805 | 0 | } |
5806 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
5807 | 0 | (mManagedPWebBrowserPersistDocumentChild).PutEntry(actor); |
5808 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
5809 | 0 |
|
5810 | 0 | if ((!(RecvPWebBrowserPersistDocumentConstructor(actor, aBrowser, aOuterWindowID)))) { |
5811 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5812 | 0 | // Error handled in mozilla::ipc::IPCResult |
5813 | 0 | return MsgProcessingError; |
5814 | 0 | } |
5815 | 0 | |
5816 | 0 | return MsgProcessed; |
5817 | 0 | } |
5818 | 0 | case PContent::Msg_InitGMPService__ID: |
5819 | 0 | { |
5820 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5821 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5822 | 0 | } |
5823 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitGMPService", OTHER); |
5824 | 0 |
|
5825 | 0 | PickleIterator iter__(msg__); |
5826 | 0 | Endpoint<mozilla::gmp::PGMPServiceChild> service; |
5827 | 0 |
|
5828 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(service)))))) { |
5829 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::gmp::PGMPServiceChild>'"); |
5830 | 0 | return MsgValueError; |
5831 | 0 | } |
5832 | 0 | // Sentinel = 'service' |
5833 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4064038)))) { |
5834 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gmp::PGMPServiceChild>'"); |
5835 | 0 | return MsgValueError; |
5836 | 0 | } |
5837 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5838 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5839 | 0 | FatalError("Transition error"); |
5840 | 0 | return MsgValueError; |
5841 | 0 | } |
5842 | 0 | if ((!(RecvInitGMPService(std::move(service))))) { |
5843 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5844 | 0 | // Error handled in mozilla::ipc::IPCResult |
5845 | 0 | return MsgProcessingError; |
5846 | 0 | } |
5847 | 0 | |
5848 | 0 | return MsgProcessed; |
5849 | 0 | } |
5850 | 0 | case PContent::Msg_InitProcessHangMonitor__ID: |
5851 | 0 | { |
5852 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5853 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5854 | 0 | } |
5855 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitProcessHangMonitor", OTHER); |
5856 | 0 |
|
5857 | 0 | PickleIterator iter__(msg__); |
5858 | 0 | Endpoint<mozilla::PProcessHangMonitorChild> hangMonitor; |
5859 | 0 |
|
5860 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(hangMonitor)))))) { |
5861 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::PProcessHangMonitorChild>'"); |
5862 | 0 | return MsgValueError; |
5863 | 0 | } |
5864 | 0 | // Sentinel = 'hangMonitor' |
5865 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1135728705)))) { |
5866 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::PProcessHangMonitorChild>'"); |
5867 | 0 | return MsgValueError; |
5868 | 0 | } |
5869 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5870 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5871 | 0 | FatalError("Transition error"); |
5872 | 0 | return MsgValueError; |
5873 | 0 | } |
5874 | 0 | if ((!(RecvInitProcessHangMonitor(std::move(hangMonitor))))) { |
5875 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5876 | 0 | // Error handled in mozilla::ipc::IPCResult |
5877 | 0 | return MsgProcessingError; |
5878 | 0 | } |
5879 | 0 | |
5880 | 0 | return MsgProcessed; |
5881 | 0 | } |
5882 | 0 | case PContent::Msg_InitContentBridgeChild__ID: |
5883 | 0 | { |
5884 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5885 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5886 | 0 | } |
5887 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitContentBridgeChild", OTHER); |
5888 | 0 |
|
5889 | 0 | PickleIterator iter__(msg__); |
5890 | 0 | Endpoint<mozilla::dom::PContentBridgeChild> endpoint; |
5891 | 0 |
|
5892 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(endpoint)))))) { |
5893 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::dom::PContentBridgeChild>'"); |
5894 | 0 | return MsgValueError; |
5895 | 0 | } |
5896 | 0 | // Sentinel = 'endpoint' |
5897 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) { |
5898 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::dom::PContentBridgeChild>'"); |
5899 | 0 | return MsgValueError; |
5900 | 0 | } |
5901 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5902 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5903 | 0 | FatalError("Transition error"); |
5904 | 0 | return MsgValueError; |
5905 | 0 | } |
5906 | 0 | if ((!(RecvInitContentBridgeChild(std::move(endpoint))))) { |
5907 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5908 | 0 | // Error handled in mozilla::ipc::IPCResult |
5909 | 0 | return MsgProcessingError; |
5910 | 0 | } |
5911 | 0 | |
5912 | 0 | return MsgProcessed; |
5913 | 0 | } |
5914 | 0 | case PContent::Msg_InitProfiler__ID: |
5915 | 0 | { |
5916 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5917 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5918 | 0 | } |
5919 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitProfiler", OTHER); |
5920 | 0 |
|
5921 | 0 | PickleIterator iter__(msg__); |
5922 | 0 | Endpoint<mozilla::PProfilerChild> aEndpoint; |
5923 | 0 |
|
5924 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEndpoint)))))) { |
5925 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'"); |
5926 | 0 | return MsgValueError; |
5927 | 0 | } |
5928 | 0 | // Sentinel = 'aEndpoint' |
5929 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2457438235)))) { |
5930 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'"); |
5931 | 0 | return MsgValueError; |
5932 | 0 | } |
5933 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
5934 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
5935 | 0 | FatalError("Transition error"); |
5936 | 0 | return MsgValueError; |
5937 | 0 | } |
5938 | 0 | if ((!(RecvInitProfiler(std::move(aEndpoint))))) { |
5939 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
5940 | 0 | // Error handled in mozilla::ipc::IPCResult |
5941 | 0 | return MsgProcessingError; |
5942 | 0 | } |
5943 | 0 | |
5944 | 0 | return MsgProcessed; |
5945 | 0 | } |
5946 | 0 | case PContent::Msg_InitRendering__ID: |
5947 | 0 | { |
5948 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
5949 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
5950 | 0 | } |
5951 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitRendering", OTHER); |
5952 | 0 |
|
5953 | 0 | PickleIterator iter__(msg__); |
5954 | 0 | Endpoint<mozilla::layers::PCompositorManagerChild> compositor; |
5955 | 0 | Endpoint<mozilla::layers::PImageBridgeChild> imageBridge; |
5956 | 0 | Endpoint<mozilla::gfx::PVRManagerChild> vr; |
5957 | 0 | Endpoint<mozilla::dom::PVideoDecoderManagerChild> video; |
5958 | 0 | nsTArray<uint32_t> namespaces; |
5959 | 0 |
|
5960 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(compositor)))))) { |
5961 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerChild>'"); |
5962 | 0 | return MsgValueError; |
5963 | 0 | } |
5964 | 0 | // Sentinel = 'compositor' |
5965 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2766138585)))) { |
5966 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerChild>'"); |
5967 | 0 | return MsgValueError; |
5968 | 0 | } |
5969 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(imageBridge)))))) { |
5970 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeChild>'"); |
5971 | 0 | return MsgValueError; |
5972 | 0 | } |
5973 | 0 | // Sentinel = 'imageBridge' |
5974 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 390565091)))) { |
5975 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeChild>'"); |
5976 | 0 | return MsgValueError; |
5977 | 0 | } |
5978 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(vr)))))) { |
5979 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerChild>'"); |
5980 | 0 | return MsgValueError; |
5981 | 0 | } |
5982 | 0 | // Sentinel = 'vr' |
5983 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 727129490)))) { |
5984 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerChild>'"); |
5985 | 0 | return MsgValueError; |
5986 | 0 | } |
5987 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(video)))))) { |
5988 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerChild>'"); |
5989 | 0 | return MsgValueError; |
5990 | 0 | } |
5991 | 0 | // Sentinel = 'video' |
5992 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1200625812)))) { |
5993 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerChild>'"); |
5994 | 0 | return MsgValueError; |
5995 | 0 | } |
5996 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(namespaces)))))) { |
5997 | 0 | FatalError("Error deserializing 'nsTArray'"); |
5998 | 0 | return MsgValueError; |
5999 | 0 | } |
6000 | 0 | // Sentinel = 'namespaces' |
6001 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 331300950)))) { |
6002 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6003 | 0 | return MsgValueError; |
6004 | 0 | } |
6005 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6006 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6007 | 0 | FatalError("Transition error"); |
6008 | 0 | return MsgValueError; |
6009 | 0 | } |
6010 | 0 | if ((!(RecvInitRendering(std::move(compositor), std::move(imageBridge), std::move(vr), std::move(video), std::move(namespaces))))) { |
6011 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6012 | 0 | // Error handled in mozilla::ipc::IPCResult |
6013 | 0 | return MsgProcessingError; |
6014 | 0 | } |
6015 | 0 | |
6016 | 0 | return MsgProcessed; |
6017 | 0 | } |
6018 | 0 | case PContent::Msg_ReinitRendering__ID: |
6019 | 0 | { |
6020 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6021 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6022 | 0 | } |
6023 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ReinitRendering", OTHER); |
6024 | 0 |
|
6025 | 0 | PickleIterator iter__(msg__); |
6026 | 0 | Endpoint<mozilla::layers::PCompositorManagerChild> compositor; |
6027 | 0 | Endpoint<mozilla::layers::PImageBridgeChild> bridge; |
6028 | 0 | Endpoint<mozilla::gfx::PVRManagerChild> vr; |
6029 | 0 | Endpoint<mozilla::dom::PVideoDecoderManagerChild> video; |
6030 | 0 | nsTArray<uint32_t> namespaces; |
6031 | 0 |
|
6032 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(compositor)))))) { |
6033 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerChild>'"); |
6034 | 0 | return MsgValueError; |
6035 | 0 | } |
6036 | 0 | // Sentinel = 'compositor' |
6037 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2766138585)))) { |
6038 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PCompositorManagerChild>'"); |
6039 | 0 | return MsgValueError; |
6040 | 0 | } |
6041 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(bridge)))))) { |
6042 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeChild>'"); |
6043 | 0 | return MsgValueError; |
6044 | 0 | } |
6045 | 0 | // Sentinel = 'bridge' |
6046 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1159488385)))) { |
6047 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::layers::PImageBridgeChild>'"); |
6048 | 0 | return MsgValueError; |
6049 | 0 | } |
6050 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(vr)))))) { |
6051 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerChild>'"); |
6052 | 0 | return MsgValueError; |
6053 | 0 | } |
6054 | 0 | // Sentinel = 'vr' |
6055 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 727129490)))) { |
6056 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::gfx::PVRManagerChild>'"); |
6057 | 0 | return MsgValueError; |
6058 | 0 | } |
6059 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(video)))))) { |
6060 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerChild>'"); |
6061 | 0 | return MsgValueError; |
6062 | 0 | } |
6063 | 0 | // Sentinel = 'video' |
6064 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1200625812)))) { |
6065 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::dom::PVideoDecoderManagerChild>'"); |
6066 | 0 | return MsgValueError; |
6067 | 0 | } |
6068 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(namespaces)))))) { |
6069 | 0 | FatalError("Error deserializing 'nsTArray'"); |
6070 | 0 | return MsgValueError; |
6071 | 0 | } |
6072 | 0 | // Sentinel = 'namespaces' |
6073 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 331300950)))) { |
6074 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6075 | 0 | return MsgValueError; |
6076 | 0 | } |
6077 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6078 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6079 | 0 | FatalError("Transition error"); |
6080 | 0 | return MsgValueError; |
6081 | 0 | } |
6082 | 0 | if ((!(RecvReinitRendering(std::move(compositor), std::move(bridge), std::move(vr), std::move(video), std::move(namespaces))))) { |
6083 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6084 | 0 | // Error handled in mozilla::ipc::IPCResult |
6085 | 0 | return MsgProcessingError; |
6086 | 0 | } |
6087 | 0 | |
6088 | 0 | return MsgProcessed; |
6089 | 0 | } |
6090 | 0 | case PContent::Msg_AudioDefaultDeviceChange__ID: |
6091 | 0 | { |
6092 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6093 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6094 | 0 | } |
6095 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AudioDefaultDeviceChange", OTHER); |
6096 | 0 |
|
6097 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6098 | 0 | FatalError("Transition error"); |
6099 | 0 | return MsgValueError; |
6100 | 0 | } |
6101 | 0 | if ((!(RecvAudioDefaultDeviceChange()))) { |
6102 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6103 | 0 | // Error handled in mozilla::ipc::IPCResult |
6104 | 0 | return MsgProcessingError; |
6105 | 0 | } |
6106 | 0 | |
6107 | 0 | return MsgProcessed; |
6108 | 0 | } |
6109 | 0 | case PContent::Msg_ReinitRenderingForDeviceReset__ID: |
6110 | 0 | { |
6111 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6112 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6113 | 0 | } |
6114 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ReinitRenderingForDeviceReset", OTHER); |
6115 | 0 |
|
6116 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6117 | 0 | FatalError("Transition error"); |
6118 | 0 | return MsgValueError; |
6119 | 0 | } |
6120 | 0 | if ((!(RecvReinitRenderingForDeviceReset()))) { |
6121 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6122 | 0 | // Error handled in mozilla::ipc::IPCResult |
6123 | 0 | return MsgProcessingError; |
6124 | 0 | } |
6125 | 0 | |
6126 | 0 | return MsgProcessed; |
6127 | 0 | } |
6128 | 0 | case PContent::Msg_SetProcessSandbox__ID: |
6129 | 0 | { |
6130 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6131 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6132 | 0 | } |
6133 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetProcessSandbox", OTHER); |
6134 | 0 |
|
6135 | 0 | PickleIterator iter__(msg__); |
6136 | 0 | MaybeFileDesc aBroker; |
6137 | 0 |
|
6138 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBroker)))))) { |
6139 | 0 | FatalError("Error deserializing 'MaybeFileDesc'"); |
6140 | 0 | return MsgValueError; |
6141 | 0 | } |
6142 | 0 | // Sentinel = 'aBroker' |
6143 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2424547965)))) { |
6144 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'MaybeFileDesc'"); |
6145 | 0 | return MsgValueError; |
6146 | 0 | } |
6147 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6148 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6149 | 0 | FatalError("Transition error"); |
6150 | 0 | return MsgValueError; |
6151 | 0 | } |
6152 | 0 | if ((!(RecvSetProcessSandbox(aBroker)))) { |
6153 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6154 | 0 | // Error handled in mozilla::ipc::IPCResult |
6155 | 0 | return MsgProcessingError; |
6156 | 0 | } |
6157 | 0 | |
6158 | 0 | return MsgProcessed; |
6159 | 0 | } |
6160 | 0 | case PContent::Msg_RequestMemoryReport__ID: |
6161 | 0 | { |
6162 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6163 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6164 | 0 | } |
6165 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RequestMemoryReport", OTHER); |
6166 | 0 |
|
6167 | 0 | PickleIterator iter__(msg__); |
6168 | 0 | uint32_t generation; |
6169 | 0 | bool anonymize; |
6170 | 0 | bool minimizeMemoryUsage; |
6171 | 0 | MaybeFileDesc DMDFile; |
6172 | 0 |
|
6173 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(generation)))))) { |
6174 | 0 | FatalError("Error deserializing 'uint32_t'"); |
6175 | 0 | return MsgValueError; |
6176 | 0 | } |
6177 | 0 | // Sentinel = 'generation' |
6178 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1396961928)))) { |
6179 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
6180 | 0 | return MsgValueError; |
6181 | 0 | } |
6182 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(anonymize)))))) { |
6183 | 0 | FatalError("Error deserializing 'bool'"); |
6184 | 0 | return MsgValueError; |
6185 | 0 | } |
6186 | 0 | // Sentinel = 'anonymize' |
6187 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3334711915)))) { |
6188 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6189 | 0 | return MsgValueError; |
6190 | 0 | } |
6191 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(minimizeMemoryUsage)))))) { |
6192 | 0 | FatalError("Error deserializing 'bool'"); |
6193 | 0 | return MsgValueError; |
6194 | 0 | } |
6195 | 0 | // Sentinel = 'minimizeMemoryUsage' |
6196 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3442464661)))) { |
6197 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6198 | 0 | return MsgValueError; |
6199 | 0 | } |
6200 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(DMDFile)))))) { |
6201 | 0 | FatalError("Error deserializing 'MaybeFileDesc'"); |
6202 | 0 | return MsgValueError; |
6203 | 0 | } |
6204 | 0 | // Sentinel = 'DMDFile' |
6205 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3739167222)))) { |
6206 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'MaybeFileDesc'"); |
6207 | 0 | return MsgValueError; |
6208 | 0 | } |
6209 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6210 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6211 | 0 | FatalError("Transition error"); |
6212 | 0 | return MsgValueError; |
6213 | 0 | } |
6214 | 0 | if ((!(RecvRequestMemoryReport(generation, anonymize, minimizeMemoryUsage, DMDFile)))) { |
6215 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6216 | 0 | // Error handled in mozilla::ipc::IPCResult |
6217 | 0 | return MsgProcessingError; |
6218 | 0 | } |
6219 | 0 | |
6220 | 0 | return MsgProcessed; |
6221 | 0 | } |
6222 | 0 | case PContent::Msg_RequestPerformanceMetrics__ID: |
6223 | 0 | { |
6224 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6225 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6226 | 0 | } |
6227 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RequestPerformanceMetrics", OTHER); |
6228 | 0 |
|
6229 | 0 | PickleIterator iter__(msg__); |
6230 | 0 | nsID aID; |
6231 | 0 |
|
6232 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
6233 | 0 | FatalError("Error deserializing 'nsID'"); |
6234 | 0 | return MsgValueError; |
6235 | 0 | } |
6236 | 0 | // Sentinel = 'aID' |
6237 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
6238 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsID'"); |
6239 | 0 | return MsgValueError; |
6240 | 0 | } |
6241 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6242 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6243 | 0 | FatalError("Transition error"); |
6244 | 0 | return MsgValueError; |
6245 | 0 | } |
6246 | 0 | if ((!(RecvRequestPerformanceMetrics(aID)))) { |
6247 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6248 | 0 | // Error handled in mozilla::ipc::IPCResult |
6249 | 0 | return MsgProcessingError; |
6250 | 0 | } |
6251 | 0 | |
6252 | 0 | return MsgProcessed; |
6253 | 0 | } |
6254 | 0 | case PContent::Msg_BidiKeyboardNotify__ID: |
6255 | 0 | { |
6256 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6257 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6258 | 0 | } |
6259 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BidiKeyboardNotify", OTHER); |
6260 | 0 |
|
6261 | 0 | PickleIterator iter__(msg__); |
6262 | 0 | bool isLangRTL; |
6263 | 0 | bool haveBidiKeyboards; |
6264 | 0 |
|
6265 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(isLangRTL)))))) { |
6266 | 0 | FatalError("Error deserializing 'bool'"); |
6267 | 0 | return MsgValueError; |
6268 | 0 | } |
6269 | 0 | // Sentinel = 'isLangRTL' |
6270 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1112035623)))) { |
6271 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6272 | 0 | return MsgValueError; |
6273 | 0 | } |
6274 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(haveBidiKeyboards)))))) { |
6275 | 0 | FatalError("Error deserializing 'bool'"); |
6276 | 0 | return MsgValueError; |
6277 | 0 | } |
6278 | 0 | // Sentinel = 'haveBidiKeyboards' |
6279 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4121278935)))) { |
6280 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6281 | 0 | return MsgValueError; |
6282 | 0 | } |
6283 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6284 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6285 | 0 | FatalError("Transition error"); |
6286 | 0 | return MsgValueError; |
6287 | 0 | } |
6288 | 0 | if ((!(RecvBidiKeyboardNotify(isLangRTL, haveBidiKeyboards)))) { |
6289 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6290 | 0 | // Error handled in mozilla::ipc::IPCResult |
6291 | 0 | return MsgProcessingError; |
6292 | 0 | } |
6293 | 0 | |
6294 | 0 | return MsgProcessed; |
6295 | 0 | } |
6296 | 0 | case PContent::Msg_PCycleCollectWithLogsConstructor__ID: |
6297 | 0 | { |
6298 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6299 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6300 | 0 | } |
6301 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PCycleCollectWithLogsConstructor", OTHER); |
6302 | 0 |
|
6303 | 0 | PickleIterator iter__(msg__); |
6304 | 0 | ActorHandle handle__; |
6305 | 0 | PCycleCollectWithLogsChild* actor; |
6306 | 0 | bool dumpAllTraces; |
6307 | 0 | FileDescriptor gcLog; |
6308 | 0 | FileDescriptor ccLog; |
6309 | 0 |
|
6310 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
6311 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
6312 | 0 | return MsgValueError; |
6313 | 0 | } |
6314 | 0 | // Sentinel = 'actor' |
6315 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
6316 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
6317 | 0 | return MsgValueError; |
6318 | 0 | } |
6319 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(dumpAllTraces)))))) { |
6320 | 0 | FatalError("Error deserializing 'bool'"); |
6321 | 0 | return MsgValueError; |
6322 | 0 | } |
6323 | 0 | // Sentinel = 'dumpAllTraces' |
6324 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1185678160)))) { |
6325 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6326 | 0 | return MsgValueError; |
6327 | 0 | } |
6328 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(gcLog)))))) { |
6329 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
6330 | 0 | return MsgValueError; |
6331 | 0 | } |
6332 | 0 | // Sentinel = 'gcLog' |
6333 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1153400941)))) { |
6334 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
6335 | 0 | return MsgValueError; |
6336 | 0 | } |
6337 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(ccLog)))))) { |
6338 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
6339 | 0 | return MsgValueError; |
6340 | 0 | } |
6341 | 0 | // Sentinel = 'ccLog' |
6342 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2494741865)))) { |
6343 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
6344 | 0 | return MsgValueError; |
6345 | 0 | } |
6346 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6347 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6348 | 0 | FatalError("Transition error"); |
6349 | 0 | return MsgValueError; |
6350 | 0 | } |
6351 | 0 | actor = AllocPCycleCollectWithLogsChild(dumpAllTraces, gcLog, ccLog); |
6352 | 0 | if ((!(actor))) { |
6353 | 0 | NS_WARNING("Error constructing actor PCycleCollectWithLogsChild"); |
6354 | 0 | return MsgValueError; |
6355 | 0 | } |
6356 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
6357 | 0 | (mManagedPCycleCollectWithLogsChild).PutEntry(actor); |
6358 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
6359 | 0 |
|
6360 | 0 | if ((!(RecvPCycleCollectWithLogsConstructor(actor, dumpAllTraces, gcLog, ccLog)))) { |
6361 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6362 | 0 | // Error handled in mozilla::ipc::IPCResult |
6363 | 0 | return MsgProcessingError; |
6364 | 0 | } |
6365 | 0 | |
6366 | 0 | return MsgProcessed; |
6367 | 0 | } |
6368 | 0 | case PContent::Msg_PTestShellConstructor__ID: |
6369 | 0 | { |
6370 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6371 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6372 | 0 | } |
6373 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PTestShellConstructor", OTHER); |
6374 | 0 |
|
6375 | 0 | PickleIterator iter__(msg__); |
6376 | 0 | ActorHandle handle__; |
6377 | 0 | PTestShellChild* actor; |
6378 | 0 |
|
6379 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
6380 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
6381 | 0 | return MsgValueError; |
6382 | 0 | } |
6383 | 0 | // Sentinel = 'actor' |
6384 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
6385 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
6386 | 0 | return MsgValueError; |
6387 | 0 | } |
6388 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6389 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6390 | 0 | FatalError("Transition error"); |
6391 | 0 | return MsgValueError; |
6392 | 0 | } |
6393 | 0 | actor = AllocPTestShellChild(); |
6394 | 0 | if ((!(actor))) { |
6395 | 0 | NS_WARNING("Error constructing actor PTestShellChild"); |
6396 | 0 | return MsgValueError; |
6397 | 0 | } |
6398 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
6399 | 0 | (mManagedPTestShellChild).PutEntry(actor); |
6400 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
6401 | 0 |
|
6402 | 0 | if ((!(RecvPTestShellConstructor(actor)))) { |
6403 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6404 | 0 | // Error handled in mozilla::ipc::IPCResult |
6405 | 0 | return MsgProcessingError; |
6406 | 0 | } |
6407 | 0 | |
6408 | 0 | return MsgProcessed; |
6409 | 0 | } |
6410 | 0 | case PContent::Msg_PScriptCacheConstructor__ID: |
6411 | 0 | { |
6412 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6413 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6414 | 0 | } |
6415 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PScriptCacheConstructor", OTHER); |
6416 | 0 |
|
6417 | 0 | PickleIterator iter__(msg__); |
6418 | 0 | ActorHandle handle__; |
6419 | 0 | PScriptCacheChild* actor; |
6420 | 0 | FileDescOrError cacheFile; |
6421 | 0 | bool wantCacheData; |
6422 | 0 |
|
6423 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
6424 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
6425 | 0 | return MsgValueError; |
6426 | 0 | } |
6427 | 0 | // Sentinel = 'actor' |
6428 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
6429 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
6430 | 0 | return MsgValueError; |
6431 | 0 | } |
6432 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(cacheFile)))))) { |
6433 | 0 | FatalError("Error deserializing 'FileDescOrError'"); |
6434 | 0 | return MsgValueError; |
6435 | 0 | } |
6436 | 0 | // Sentinel = 'cacheFile' |
6437 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1159637773)))) { |
6438 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescOrError'"); |
6439 | 0 | return MsgValueError; |
6440 | 0 | } |
6441 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(wantCacheData)))))) { |
6442 | 0 | FatalError("Error deserializing 'bool'"); |
6443 | 0 | return MsgValueError; |
6444 | 0 | } |
6445 | 0 | // Sentinel = 'wantCacheData' |
6446 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2349173833)))) { |
6447 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6448 | 0 | return MsgValueError; |
6449 | 0 | } |
6450 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6451 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6452 | 0 | FatalError("Transition error"); |
6453 | 0 | return MsgValueError; |
6454 | 0 | } |
6455 | 0 | actor = AllocPScriptCacheChild(cacheFile, wantCacheData); |
6456 | 0 | if ((!(actor))) { |
6457 | 0 | NS_WARNING("Error constructing actor PScriptCacheChild"); |
6458 | 0 | return MsgValueError; |
6459 | 0 | } |
6460 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
6461 | 0 | (mManagedPScriptCacheChild).PutEntry(actor); |
6462 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
6463 | 0 |
|
6464 | 0 | if ((!(RecvPScriptCacheConstructor(actor, cacheFile, wantCacheData)))) { |
6465 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6466 | 0 | // Error handled in mozilla::ipc::IPCResult |
6467 | 0 | return MsgProcessingError; |
6468 | 0 | } |
6469 | 0 | |
6470 | 0 | return MsgProcessed; |
6471 | 0 | } |
6472 | 0 | case PContent::Msg_RegisterChrome__ID: |
6473 | 0 | { |
6474 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6475 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6476 | 0 | } |
6477 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RegisterChrome", OTHER); |
6478 | 0 |
|
6479 | 0 | PickleIterator iter__(msg__); |
6480 | 0 | nsTArray<ChromePackage> packages; |
6481 | 0 | nsTArray<SubstitutionMapping> substitutions; |
6482 | 0 | nsTArray<OverrideMapping> overrides; |
6483 | 0 | nsCString locale; |
6484 | 0 | bool reset; |
6485 | 0 |
|
6486 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(packages)))))) { |
6487 | 0 | FatalError("Error deserializing 'nsTArray'"); |
6488 | 0 | return MsgValueError; |
6489 | 0 | } |
6490 | 0 | // Sentinel = 'packages' |
6491 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2544542939)))) { |
6492 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6493 | 0 | return MsgValueError; |
6494 | 0 | } |
6495 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(substitutions)))))) { |
6496 | 0 | FatalError("Error deserializing 'nsTArray'"); |
6497 | 0 | return MsgValueError; |
6498 | 0 | } |
6499 | 0 | // Sentinel = 'substitutions' |
6500 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1650827567)))) { |
6501 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6502 | 0 | return MsgValueError; |
6503 | 0 | } |
6504 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(overrides)))))) { |
6505 | 0 | FatalError("Error deserializing 'nsTArray'"); |
6506 | 0 | return MsgValueError; |
6507 | 0 | } |
6508 | 0 | // Sentinel = 'overrides' |
6509 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3491981546)))) { |
6510 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6511 | 0 | return MsgValueError; |
6512 | 0 | } |
6513 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(locale)))))) { |
6514 | 0 | FatalError("Error deserializing 'nsCString'"); |
6515 | 0 | return MsgValueError; |
6516 | 0 | } |
6517 | 0 | // Sentinel = 'locale' |
6518 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 779891848)))) { |
6519 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
6520 | 0 | return MsgValueError; |
6521 | 0 | } |
6522 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reset)))))) { |
6523 | 0 | FatalError("Error deserializing 'bool'"); |
6524 | 0 | return MsgValueError; |
6525 | 0 | } |
6526 | 0 | // Sentinel = 'reset' |
6527 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2509547360)))) { |
6528 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6529 | 0 | return MsgValueError; |
6530 | 0 | } |
6531 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6532 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6533 | 0 | FatalError("Transition error"); |
6534 | 0 | return MsgValueError; |
6535 | 0 | } |
6536 | 0 | if ((!(RecvRegisterChrome(std::move(packages), std::move(substitutions), std::move(overrides), locale, reset)))) { |
6537 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6538 | 0 | // Error handled in mozilla::ipc::IPCResult |
6539 | 0 | return MsgProcessingError; |
6540 | 0 | } |
6541 | 0 | |
6542 | 0 | return MsgProcessed; |
6543 | 0 | } |
6544 | 0 | case PContent::Msg_RegisterChromeItem__ID: |
6545 | 0 | { |
6546 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6547 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6548 | 0 | } |
6549 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RegisterChromeItem", OTHER); |
6550 | 0 |
|
6551 | 0 | PickleIterator iter__(msg__); |
6552 | 0 | ChromeRegistryItem item; |
6553 | 0 |
|
6554 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(item)))))) { |
6555 | 0 | FatalError("Error deserializing 'ChromeRegistryItem'"); |
6556 | 0 | return MsgValueError; |
6557 | 0 | } |
6558 | 0 | // Sentinel = 'item' |
6559 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3785181297)))) { |
6560 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ChromeRegistryItem'"); |
6561 | 0 | return MsgValueError; |
6562 | 0 | } |
6563 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6564 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6565 | 0 | FatalError("Transition error"); |
6566 | 0 | return MsgValueError; |
6567 | 0 | } |
6568 | 0 | if ((!(RecvRegisterChromeItem(item)))) { |
6569 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6570 | 0 | // Error handled in mozilla::ipc::IPCResult |
6571 | 0 | return MsgProcessingError; |
6572 | 0 | } |
6573 | 0 | |
6574 | 0 | return MsgProcessed; |
6575 | 0 | } |
6576 | 0 | case PContent::Msg_ClearImageCache__ID: |
6577 | 0 | { |
6578 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6579 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6580 | 0 | } |
6581 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ClearImageCache", OTHER); |
6582 | 0 |
|
6583 | 0 | PickleIterator iter__(msg__); |
6584 | 0 | bool privateLoader; |
6585 | 0 | bool chrome; |
6586 | 0 |
|
6587 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(privateLoader)))))) { |
6588 | 0 | FatalError("Error deserializing 'bool'"); |
6589 | 0 | return MsgValueError; |
6590 | 0 | } |
6591 | 0 | // Sentinel = 'privateLoader' |
6592 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3222654805)))) { |
6593 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6594 | 0 | return MsgValueError; |
6595 | 0 | } |
6596 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(chrome)))))) { |
6597 | 0 | FatalError("Error deserializing 'bool'"); |
6598 | 0 | return MsgValueError; |
6599 | 0 | } |
6600 | 0 | // Sentinel = 'chrome' |
6601 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2631435560)))) { |
6602 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6603 | 0 | return MsgValueError; |
6604 | 0 | } |
6605 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6606 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6607 | 0 | FatalError("Transition error"); |
6608 | 0 | return MsgValueError; |
6609 | 0 | } |
6610 | 0 | if ((!(RecvClearImageCache(privateLoader, chrome)))) { |
6611 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6612 | 0 | // Error handled in mozilla::ipc::IPCResult |
6613 | 0 | return MsgProcessingError; |
6614 | 0 | } |
6615 | 0 | |
6616 | 0 | return MsgProcessed; |
6617 | 0 | } |
6618 | 0 | case PContent::Msg_SetOffline__ID: |
6619 | 0 | { |
6620 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6621 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6622 | 0 | } |
6623 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetOffline", OTHER); |
6624 | 0 |
|
6625 | 0 | PickleIterator iter__(msg__); |
6626 | 0 | bool offline; |
6627 | 0 |
|
6628 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(offline)))))) { |
6629 | 0 | FatalError("Error deserializing 'bool'"); |
6630 | 0 | return MsgValueError; |
6631 | 0 | } |
6632 | 0 | // Sentinel = 'offline' |
6633 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3136819898)))) { |
6634 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6635 | 0 | return MsgValueError; |
6636 | 0 | } |
6637 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6638 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6639 | 0 | FatalError("Transition error"); |
6640 | 0 | return MsgValueError; |
6641 | 0 | } |
6642 | 0 | if ((!(RecvSetOffline(offline)))) { |
6643 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6644 | 0 | // Error handled in mozilla::ipc::IPCResult |
6645 | 0 | return MsgProcessingError; |
6646 | 0 | } |
6647 | 0 | |
6648 | 0 | return MsgProcessed; |
6649 | 0 | } |
6650 | 0 | case PContent::Msg_SetConnectivity__ID: |
6651 | 0 | { |
6652 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6653 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6654 | 0 | } |
6655 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetConnectivity", OTHER); |
6656 | 0 |
|
6657 | 0 | PickleIterator iter__(msg__); |
6658 | 0 | bool connectivity; |
6659 | 0 |
|
6660 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(connectivity)))))) { |
6661 | 0 | FatalError("Error deserializing 'bool'"); |
6662 | 0 | return MsgValueError; |
6663 | 0 | } |
6664 | 0 | // Sentinel = 'connectivity' |
6665 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3733639633)))) { |
6666 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
6667 | 0 | return MsgValueError; |
6668 | 0 | } |
6669 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6670 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6671 | 0 | FatalError("Transition error"); |
6672 | 0 | return MsgValueError; |
6673 | 0 | } |
6674 | 0 | if ((!(RecvSetConnectivity(connectivity)))) { |
6675 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6676 | 0 | // Error handled in mozilla::ipc::IPCResult |
6677 | 0 | return MsgProcessingError; |
6678 | 0 | } |
6679 | 0 | |
6680 | 0 | return MsgProcessed; |
6681 | 0 | } |
6682 | 0 | case PContent::Msg_SetCaptivePortalState__ID: |
6683 | 0 | { |
6684 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6685 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6686 | 0 | } |
6687 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetCaptivePortalState", OTHER); |
6688 | 0 |
|
6689 | 0 | PickleIterator iter__(msg__); |
6690 | 0 | int32_t aState; |
6691 | 0 |
|
6692 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aState)))))) { |
6693 | 0 | FatalError("Error deserializing 'int32_t'"); |
6694 | 0 | return MsgValueError; |
6695 | 0 | } |
6696 | 0 | // Sentinel = 'aState' |
6697 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3694751962)))) { |
6698 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'"); |
6699 | 0 | return MsgValueError; |
6700 | 0 | } |
6701 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6702 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6703 | 0 | FatalError("Transition error"); |
6704 | 0 | return MsgValueError; |
6705 | 0 | } |
6706 | 0 | if ((!(RecvSetCaptivePortalState(aState)))) { |
6707 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6708 | 0 | // Error handled in mozilla::ipc::IPCResult |
6709 | 0 | return MsgProcessingError; |
6710 | 0 | } |
6711 | 0 | |
6712 | 0 | return MsgProcessed; |
6713 | 0 | } |
6714 | 0 | case PContent::Msg_NotifyVisited__ID: |
6715 | 0 | { |
6716 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6717 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6718 | 0 | } |
6719 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyVisited", OTHER); |
6720 | 0 |
|
6721 | 0 | PickleIterator iter__(msg__); |
6722 | 0 | nsTArray<URIParams> uri; |
6723 | 0 |
|
6724 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) { |
6725 | 0 | FatalError("Error deserializing 'nsTArray'"); |
6726 | 0 | return MsgValueError; |
6727 | 0 | } |
6728 | 0 | // Sentinel = 'uri' |
6729 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) { |
6730 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
6731 | 0 | return MsgValueError; |
6732 | 0 | } |
6733 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6734 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6735 | 0 | FatalError("Transition error"); |
6736 | 0 | return MsgValueError; |
6737 | 0 | } |
6738 | 0 | if ((!(RecvNotifyVisited(std::move(uri))))) { |
6739 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6740 | 0 | // Error handled in mozilla::ipc::IPCResult |
6741 | 0 | return MsgProcessingError; |
6742 | 0 | } |
6743 | 0 | |
6744 | 0 | return MsgProcessed; |
6745 | 0 | } |
6746 | 0 | case PContent::Msg_PreferenceUpdate__ID: |
6747 | 0 | { |
6748 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6749 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6750 | 0 | } |
6751 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PreferenceUpdate", OTHER); |
6752 | 0 |
|
6753 | 0 | PickleIterator iter__(msg__); |
6754 | 0 | Pref pref; |
6755 | 0 |
|
6756 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(pref)))))) { |
6757 | 0 | FatalError("Error deserializing 'Pref'"); |
6758 | 0 | return MsgValueError; |
6759 | 0 | } |
6760 | 0 | // Sentinel = 'pref' |
6761 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3089393963)))) { |
6762 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Pref'"); |
6763 | 0 | return MsgValueError; |
6764 | 0 | } |
6765 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6766 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6767 | 0 | FatalError("Transition error"); |
6768 | 0 | return MsgValueError; |
6769 | 0 | } |
6770 | 0 | if ((!(RecvPreferenceUpdate(pref)))) { |
6771 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6772 | 0 | // Error handled in mozilla::ipc::IPCResult |
6773 | 0 | return MsgProcessingError; |
6774 | 0 | } |
6775 | 0 | |
6776 | 0 | return MsgProcessed; |
6777 | 0 | } |
6778 | 0 | case PContent::Msg_VarUpdate__ID: |
6779 | 0 | { |
6780 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6781 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6782 | 0 | } |
6783 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_VarUpdate", OTHER); |
6784 | 0 |
|
6785 | 0 | PickleIterator iter__(msg__); |
6786 | 0 | GfxVarUpdate var; |
6787 | 0 |
|
6788 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(var)))))) { |
6789 | 0 | FatalError("Error deserializing 'GfxVarUpdate'"); |
6790 | 0 | return MsgValueError; |
6791 | 0 | } |
6792 | 0 | // Sentinel = 'var' |
6793 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2283110200)))) { |
6794 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'GfxVarUpdate'"); |
6795 | 0 | return MsgValueError; |
6796 | 0 | } |
6797 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6798 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6799 | 0 | FatalError("Transition error"); |
6800 | 0 | return MsgValueError; |
6801 | 0 | } |
6802 | 0 | if ((!(RecvVarUpdate(var)))) { |
6803 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6804 | 0 | // Error handled in mozilla::ipc::IPCResult |
6805 | 0 | return MsgProcessingError; |
6806 | 0 | } |
6807 | 0 | |
6808 | 0 | return MsgProcessed; |
6809 | 0 | } |
6810 | 0 | case PContent::Msg_DataStoragePut__ID: |
6811 | 0 | { |
6812 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6813 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6814 | 0 | } |
6815 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DataStoragePut", OTHER); |
6816 | 0 |
|
6817 | 0 | PickleIterator iter__(msg__); |
6818 | 0 | nsString aFilename; |
6819 | 0 | DataStorageItem aItem; |
6820 | 0 |
|
6821 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFilename)))))) { |
6822 | 0 | FatalError("Error deserializing 'nsString'"); |
6823 | 0 | return MsgValueError; |
6824 | 0 | } |
6825 | 0 | // Sentinel = 'aFilename' |
6826 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2942409315)))) { |
6827 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
6828 | 0 | return MsgValueError; |
6829 | 0 | } |
6830 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aItem)))))) { |
6831 | 0 | FatalError("Error deserializing 'DataStorageItem'"); |
6832 | 0 | return MsgValueError; |
6833 | 0 | } |
6834 | 0 | // Sentinel = 'aItem' |
6835 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3914436313)))) { |
6836 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'DataStorageItem'"); |
6837 | 0 | return MsgValueError; |
6838 | 0 | } |
6839 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6840 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6841 | 0 | FatalError("Transition error"); |
6842 | 0 | return MsgValueError; |
6843 | 0 | } |
6844 | 0 | if ((!(RecvDataStoragePut(aFilename, aItem)))) { |
6845 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6846 | 0 | // Error handled in mozilla::ipc::IPCResult |
6847 | 0 | return MsgProcessingError; |
6848 | 0 | } |
6849 | 0 | |
6850 | 0 | return MsgProcessed; |
6851 | 0 | } |
6852 | 0 | case PContent::Msg_DataStorageRemove__ID: |
6853 | 0 | { |
6854 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6855 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6856 | 0 | } |
6857 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DataStorageRemove", OTHER); |
6858 | 0 |
|
6859 | 0 | PickleIterator iter__(msg__); |
6860 | 0 | nsString aFilename; |
6861 | 0 | nsCString aKey; |
6862 | 0 | DataStorageType aType; |
6863 | 0 |
|
6864 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFilename)))))) { |
6865 | 0 | FatalError("Error deserializing 'nsString'"); |
6866 | 0 | return MsgValueError; |
6867 | 0 | } |
6868 | 0 | // Sentinel = 'aFilename' |
6869 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2942409315)))) { |
6870 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
6871 | 0 | return MsgValueError; |
6872 | 0 | } |
6873 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aKey)))))) { |
6874 | 0 | FatalError("Error deserializing 'nsCString'"); |
6875 | 0 | return MsgValueError; |
6876 | 0 | } |
6877 | 0 | // Sentinel = 'aKey' |
6878 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3415890794)))) { |
6879 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
6880 | 0 | return MsgValueError; |
6881 | 0 | } |
6882 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aType)))))) { |
6883 | 0 | FatalError("Error deserializing 'DataStorageType'"); |
6884 | 0 | return MsgValueError; |
6885 | 0 | } |
6886 | 0 | // Sentinel = 'aType' |
6887 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819585676)))) { |
6888 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'DataStorageType'"); |
6889 | 0 | return MsgValueError; |
6890 | 0 | } |
6891 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6892 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6893 | 0 | FatalError("Transition error"); |
6894 | 0 | return MsgValueError; |
6895 | 0 | } |
6896 | 0 | if ((!(RecvDataStorageRemove(aFilename, aKey, aType)))) { |
6897 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6898 | 0 | // Error handled in mozilla::ipc::IPCResult |
6899 | 0 | return MsgProcessingError; |
6900 | 0 | } |
6901 | 0 | |
6902 | 0 | return MsgProcessed; |
6903 | 0 | } |
6904 | 0 | case PContent::Msg_DataStorageClear__ID: |
6905 | 0 | { |
6906 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6907 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6908 | 0 | } |
6909 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DataStorageClear", OTHER); |
6910 | 0 |
|
6911 | 0 | PickleIterator iter__(msg__); |
6912 | 0 | nsString aFilename; |
6913 | 0 |
|
6914 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFilename)))))) { |
6915 | 0 | FatalError("Error deserializing 'nsString'"); |
6916 | 0 | return MsgValueError; |
6917 | 0 | } |
6918 | 0 | // Sentinel = 'aFilename' |
6919 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2942409315)))) { |
6920 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
6921 | 0 | return MsgValueError; |
6922 | 0 | } |
6923 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6924 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6925 | 0 | FatalError("Transition error"); |
6926 | 0 | return MsgValueError; |
6927 | 0 | } |
6928 | 0 | if ((!(RecvDataStorageClear(aFilename)))) { |
6929 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6930 | 0 | // Error handled in mozilla::ipc::IPCResult |
6931 | 0 | return MsgProcessingError; |
6932 | 0 | } |
6933 | 0 | |
6934 | 0 | return MsgProcessed; |
6935 | 0 | } |
6936 | 0 | case PContent::Msg_NotifyAlertsObserver__ID: |
6937 | 0 | { |
6938 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6939 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6940 | 0 | } |
6941 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyAlertsObserver", OTHER); |
6942 | 0 |
|
6943 | 0 | PickleIterator iter__(msg__); |
6944 | 0 | nsCString topic; |
6945 | 0 | nsString data; |
6946 | 0 |
|
6947 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(topic)))))) { |
6948 | 0 | FatalError("Error deserializing 'nsCString'"); |
6949 | 0 | return MsgValueError; |
6950 | 0 | } |
6951 | 0 | // Sentinel = 'topic' |
6952 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261826960)))) { |
6953 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
6954 | 0 | return MsgValueError; |
6955 | 0 | } |
6956 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(data)))))) { |
6957 | 0 | FatalError("Error deserializing 'nsString'"); |
6958 | 0 | return MsgValueError; |
6959 | 0 | } |
6960 | 0 | // Sentinel = 'data' |
6961 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) { |
6962 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
6963 | 0 | return MsgValueError; |
6964 | 0 | } |
6965 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6966 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6967 | 0 | FatalError("Transition error"); |
6968 | 0 | return MsgValueError; |
6969 | 0 | } |
6970 | 0 | if ((!(RecvNotifyAlertsObserver(topic, data)))) { |
6971 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
6972 | 0 | // Error handled in mozilla::ipc::IPCResult |
6973 | 0 | return MsgProcessingError; |
6974 | 0 | } |
6975 | 0 | |
6976 | 0 | return MsgProcessed; |
6977 | 0 | } |
6978 | 0 | case PContent::Msg_GeolocationUpdate__ID: |
6979 | 0 | { |
6980 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
6981 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
6982 | 0 | } |
6983 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GeolocationUpdate", OTHER); |
6984 | 0 |
|
6985 | 0 | PickleIterator iter__(msg__); |
6986 | 0 | RefPtr<nsIDOMGeoPosition> aPosition; |
6987 | 0 |
|
6988 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPosition)))))) { |
6989 | 0 | FatalError("Error deserializing 'RefPtr'"); |
6990 | 0 | return MsgValueError; |
6991 | 0 | } |
6992 | 0 | // Sentinel = 'aPosition' |
6993 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2753958473)))) { |
6994 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'RefPtr'"); |
6995 | 0 | return MsgValueError; |
6996 | 0 | } |
6997 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
6998 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
6999 | 0 | FatalError("Transition error"); |
7000 | 0 | return MsgValueError; |
7001 | 0 | } |
7002 | 0 | if ((!(RecvGeolocationUpdate(aPosition)))) { |
7003 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7004 | 0 | // Error handled in mozilla::ipc::IPCResult |
7005 | 0 | return MsgProcessingError; |
7006 | 0 | } |
7007 | 0 | |
7008 | 0 | return MsgProcessed; |
7009 | 0 | } |
7010 | 0 | case PContent::Msg_GeolocationError__ID: |
7011 | 0 | { |
7012 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7013 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7014 | 0 | } |
7015 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GeolocationError", OTHER); |
7016 | 0 |
|
7017 | 0 | PickleIterator iter__(msg__); |
7018 | 0 | uint16_t errorCode; |
7019 | 0 |
|
7020 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(errorCode)))))) { |
7021 | 0 | FatalError("Error deserializing 'uint16_t'"); |
7022 | 0 | return MsgValueError; |
7023 | 0 | } |
7024 | 0 | // Sentinel = 'errorCode' |
7025 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 262143504)))) { |
7026 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint16_t'"); |
7027 | 0 | return MsgValueError; |
7028 | 0 | } |
7029 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7030 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7031 | 0 | FatalError("Transition error"); |
7032 | 0 | return MsgValueError; |
7033 | 0 | } |
7034 | 0 | if ((!(RecvGeolocationError(errorCode)))) { |
7035 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7036 | 0 | // Error handled in mozilla::ipc::IPCResult |
7037 | 0 | return MsgProcessingError; |
7038 | 0 | } |
7039 | 0 | |
7040 | 0 | return MsgProcessed; |
7041 | 0 | } |
7042 | 0 | case PContent::Msg_UpdateDictionaryList__ID: |
7043 | 0 | { |
7044 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7045 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7046 | 0 | } |
7047 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateDictionaryList", OTHER); |
7048 | 0 |
|
7049 | 0 | PickleIterator iter__(msg__); |
7050 | 0 | nsTArray<nsString> dictionaries; |
7051 | 0 |
|
7052 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(dictionaries)))))) { |
7053 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7054 | 0 | return MsgValueError; |
7055 | 0 | } |
7056 | 0 | // Sentinel = 'dictionaries' |
7057 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3810082412)))) { |
7058 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7059 | 0 | return MsgValueError; |
7060 | 0 | } |
7061 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7062 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7063 | 0 | FatalError("Transition error"); |
7064 | 0 | return MsgValueError; |
7065 | 0 | } |
7066 | 0 | if ((!(RecvUpdateDictionaryList(std::move(dictionaries))))) { |
7067 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7068 | 0 | // Error handled in mozilla::ipc::IPCResult |
7069 | 0 | return MsgProcessingError; |
7070 | 0 | } |
7071 | 0 | |
7072 | 0 | return MsgProcessed; |
7073 | 0 | } |
7074 | 0 | case PContent::Msg_UpdateFontList__ID: |
7075 | 0 | { |
7076 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7077 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7078 | 0 | } |
7079 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateFontList", OTHER); |
7080 | 0 |
|
7081 | 0 | PickleIterator iter__(msg__); |
7082 | 0 | nsTArray<SystemFontListEntry> fontList; |
7083 | 0 |
|
7084 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fontList)))))) { |
7085 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7086 | 0 | return MsgValueError; |
7087 | 0 | } |
7088 | 0 | // Sentinel = 'fontList' |
7089 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2258084427)))) { |
7090 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7091 | 0 | return MsgValueError; |
7092 | 0 | } |
7093 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7094 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7095 | 0 | FatalError("Transition error"); |
7096 | 0 | return MsgValueError; |
7097 | 0 | } |
7098 | 0 | if ((!(RecvUpdateFontList(std::move(fontList))))) { |
7099 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7100 | 0 | // Error handled in mozilla::ipc::IPCResult |
7101 | 0 | return MsgProcessingError; |
7102 | 0 | } |
7103 | 0 | |
7104 | 0 | return MsgProcessed; |
7105 | 0 | } |
7106 | 0 | case PContent::Msg_UpdateAppLocales__ID: |
7107 | 0 | { |
7108 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7109 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7110 | 0 | } |
7111 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateAppLocales", OTHER); |
7112 | 0 |
|
7113 | 0 | PickleIterator iter__(msg__); |
7114 | 0 | nsTArray<nsCString> appLocales; |
7115 | 0 |
|
7116 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(appLocales)))))) { |
7117 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7118 | 0 | return MsgValueError; |
7119 | 0 | } |
7120 | 0 | // Sentinel = 'appLocales' |
7121 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2758913044)))) { |
7122 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7123 | 0 | return MsgValueError; |
7124 | 0 | } |
7125 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7126 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7127 | 0 | FatalError("Transition error"); |
7128 | 0 | return MsgValueError; |
7129 | 0 | } |
7130 | 0 | if ((!(RecvUpdateAppLocales(std::move(appLocales))))) { |
7131 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7132 | 0 | // Error handled in mozilla::ipc::IPCResult |
7133 | 0 | return MsgProcessingError; |
7134 | 0 | } |
7135 | 0 | |
7136 | 0 | return MsgProcessed; |
7137 | 0 | } |
7138 | 0 | case PContent::Msg_UpdateRequestedLocales__ID: |
7139 | 0 | { |
7140 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7141 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7142 | 0 | } |
7143 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateRequestedLocales", OTHER); |
7144 | 0 |
|
7145 | 0 | PickleIterator iter__(msg__); |
7146 | 0 | nsTArray<nsCString> requestedLocales; |
7147 | 0 |
|
7148 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(requestedLocales)))))) { |
7149 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7150 | 0 | return MsgValueError; |
7151 | 0 | } |
7152 | 0 | // Sentinel = 'requestedLocales' |
7153 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2758015985)))) { |
7154 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7155 | 0 | return MsgValueError; |
7156 | 0 | } |
7157 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7158 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7159 | 0 | FatalError("Transition error"); |
7160 | 0 | return MsgValueError; |
7161 | 0 | } |
7162 | 0 | if ((!(RecvUpdateRequestedLocales(std::move(requestedLocales))))) { |
7163 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7164 | 0 | // Error handled in mozilla::ipc::IPCResult |
7165 | 0 | return MsgProcessingError; |
7166 | 0 | } |
7167 | 0 | |
7168 | 0 | return MsgProcessed; |
7169 | 0 | } |
7170 | 0 | case PContent::Msg_ClearSiteDataReloadNeeded__ID: |
7171 | 0 | { |
7172 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7173 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7174 | 0 | } |
7175 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ClearSiteDataReloadNeeded", OTHER); |
7176 | 0 |
|
7177 | 0 | PickleIterator iter__(msg__); |
7178 | 0 | nsString origin; |
7179 | 0 |
|
7180 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(origin)))))) { |
7181 | 0 | FatalError("Error deserializing 'nsString'"); |
7182 | 0 | return MsgValueError; |
7183 | 0 | } |
7184 | 0 | // Sentinel = 'origin' |
7185 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1429924608)))) { |
7186 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
7187 | 0 | return MsgValueError; |
7188 | 0 | } |
7189 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7190 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7191 | 0 | FatalError("Transition error"); |
7192 | 0 | return MsgValueError; |
7193 | 0 | } |
7194 | 0 | if ((!(RecvClearSiteDataReloadNeeded(origin)))) { |
7195 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7196 | 0 | // Error handled in mozilla::ipc::IPCResult |
7197 | 0 | return MsgProcessingError; |
7198 | 0 | } |
7199 | 0 | |
7200 | 0 | return MsgProcessed; |
7201 | 0 | } |
7202 | 0 | case PContent::Msg_RegisterStringBundles__ID: |
7203 | 0 | { |
7204 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7205 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7206 | 0 | } |
7207 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RegisterStringBundles", OTHER); |
7208 | 0 |
|
7209 | 0 | PickleIterator iter__(msg__); |
7210 | 0 | nsTArray<StringBundleDescriptor> stringBundles; |
7211 | 0 |
|
7212 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(stringBundles)))))) { |
7213 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7214 | 0 | return MsgValueError; |
7215 | 0 | } |
7216 | 0 | // Sentinel = 'stringBundles' |
7217 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4148729023)))) { |
7218 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7219 | 0 | return MsgValueError; |
7220 | 0 | } |
7221 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7222 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7223 | 0 | FatalError("Transition error"); |
7224 | 0 | return MsgValueError; |
7225 | 0 | } |
7226 | 0 | if ((!(RecvRegisterStringBundles(std::move(stringBundles))))) { |
7227 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7228 | 0 | // Error handled in mozilla::ipc::IPCResult |
7229 | 0 | return MsgProcessingError; |
7230 | 0 | } |
7231 | 0 | |
7232 | 0 | return MsgProcessed; |
7233 | 0 | } |
7234 | 0 | case PContent::Msg_UpdateSharedData__ID: |
7235 | 0 | { |
7236 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7237 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7238 | 0 | } |
7239 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateSharedData", OTHER); |
7240 | 0 |
|
7241 | 0 | PickleIterator iter__(msg__); |
7242 | 0 | FileDescriptor mapFile; |
7243 | 0 | uint32_t aSize; |
7244 | 0 | nsTArray<IPCBlob> blobs; |
7245 | 0 | nsTArray<nsCString> changedKeys; |
7246 | 0 |
|
7247 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(mapFile)))))) { |
7248 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
7249 | 0 | return MsgValueError; |
7250 | 0 | } |
7251 | 0 | // Sentinel = 'mapFile' |
7252 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 66221031)))) { |
7253 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
7254 | 0 | return MsgValueError; |
7255 | 0 | } |
7256 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSize)))))) { |
7257 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7258 | 0 | return MsgValueError; |
7259 | 0 | } |
7260 | 0 | // Sentinel = 'aSize' |
7261 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2556665555)))) { |
7262 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7263 | 0 | return MsgValueError; |
7264 | 0 | } |
7265 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(blobs)))))) { |
7266 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7267 | 0 | return MsgValueError; |
7268 | 0 | } |
7269 | 0 | // Sentinel = 'blobs' |
7270 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 635500709)))) { |
7271 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7272 | 0 | return MsgValueError; |
7273 | 0 | } |
7274 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(changedKeys)))))) { |
7275 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7276 | 0 | return MsgValueError; |
7277 | 0 | } |
7278 | 0 | // Sentinel = 'changedKeys' |
7279 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2842182427)))) { |
7280 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7281 | 0 | return MsgValueError; |
7282 | 0 | } |
7283 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7284 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7285 | 0 | FatalError("Transition error"); |
7286 | 0 | return MsgValueError; |
7287 | 0 | } |
7288 | 0 | if ((!(RecvUpdateSharedData(mapFile, aSize, std::move(blobs), std::move(changedKeys))))) { |
7289 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7290 | 0 | // Error handled in mozilla::ipc::IPCResult |
7291 | 0 | return MsgProcessingError; |
7292 | 0 | } |
7293 | 0 | |
7294 | 0 | return MsgProcessed; |
7295 | 0 | } |
7296 | 0 | case PContent::Msg_AddPermission__ID: |
7297 | 0 | { |
7298 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7299 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7300 | 0 | } |
7301 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddPermission", OTHER); |
7302 | 0 |
|
7303 | 0 | PickleIterator iter__(msg__); |
7304 | 0 | Permission permission; |
7305 | 0 |
|
7306 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(permission)))))) { |
7307 | 0 | FatalError("Error deserializing 'Permission'"); |
7308 | 0 | return MsgValueError; |
7309 | 0 | } |
7310 | 0 | // Sentinel = 'permission' |
7311 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 22860871)))) { |
7312 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Permission'"); |
7313 | 0 | return MsgValueError; |
7314 | 0 | } |
7315 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7316 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7317 | 0 | FatalError("Transition error"); |
7318 | 0 | return MsgValueError; |
7319 | 0 | } |
7320 | 0 | if ((!(RecvAddPermission(permission)))) { |
7321 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7322 | 0 | // Error handled in mozilla::ipc::IPCResult |
7323 | 0 | return MsgProcessingError; |
7324 | 0 | } |
7325 | 0 | |
7326 | 0 | return MsgProcessed; |
7327 | 0 | } |
7328 | 0 | case PContent::Msg_RemoveAllPermissions__ID: |
7329 | 0 | { |
7330 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7331 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7332 | 0 | } |
7333 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RemoveAllPermissions", OTHER); |
7334 | 0 |
|
7335 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7336 | 0 | FatalError("Transition error"); |
7337 | 0 | return MsgValueError; |
7338 | 0 | } |
7339 | 0 | if ((!(RecvRemoveAllPermissions()))) { |
7340 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7341 | 0 | // Error handled in mozilla::ipc::IPCResult |
7342 | 0 | return MsgProcessingError; |
7343 | 0 | } |
7344 | 0 | |
7345 | 0 | return MsgProcessed; |
7346 | 0 | } |
7347 | 0 | case PContent::Msg_FlushMemory__ID: |
7348 | 0 | { |
7349 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7350 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7351 | 0 | } |
7352 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FlushMemory", OTHER); |
7353 | 0 |
|
7354 | 0 | PickleIterator iter__(msg__); |
7355 | 0 | nsString reason; |
7356 | 0 |
|
7357 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason)))))) { |
7358 | 0 | FatalError("Error deserializing 'nsString'"); |
7359 | 0 | return MsgValueError; |
7360 | 0 | } |
7361 | 0 | // Sentinel = 'reason' |
7362 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4151390930)))) { |
7363 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
7364 | 0 | return MsgValueError; |
7365 | 0 | } |
7366 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7367 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7368 | 0 | FatalError("Transition error"); |
7369 | 0 | return MsgValueError; |
7370 | 0 | } |
7371 | 0 | if ((!(RecvFlushMemory(reason)))) { |
7372 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7373 | 0 | // Error handled in mozilla::ipc::IPCResult |
7374 | 0 | return MsgProcessingError; |
7375 | 0 | } |
7376 | 0 | |
7377 | 0 | return MsgProcessed; |
7378 | 0 | } |
7379 | 0 | case PContent::Msg_GarbageCollect__ID: |
7380 | 0 | { |
7381 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7382 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7383 | 0 | } |
7384 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GarbageCollect", OTHER); |
7385 | 0 |
|
7386 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7387 | 0 | FatalError("Transition error"); |
7388 | 0 | return MsgValueError; |
7389 | 0 | } |
7390 | 0 | if ((!(RecvGarbageCollect()))) { |
7391 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7392 | 0 | // Error handled in mozilla::ipc::IPCResult |
7393 | 0 | return MsgProcessingError; |
7394 | 0 | } |
7395 | 0 | |
7396 | 0 | return MsgProcessed; |
7397 | 0 | } |
7398 | 0 | case PContent::Msg_CycleCollect__ID: |
7399 | 0 | { |
7400 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7401 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7402 | 0 | } |
7403 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CycleCollect", OTHER); |
7404 | 0 |
|
7405 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7406 | 0 | FatalError("Transition error"); |
7407 | 0 | return MsgValueError; |
7408 | 0 | } |
7409 | 0 | if ((!(RecvCycleCollect()))) { |
7410 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7411 | 0 | // Error handled in mozilla::ipc::IPCResult |
7412 | 0 | return MsgProcessingError; |
7413 | 0 | } |
7414 | 0 | |
7415 | 0 | return MsgProcessed; |
7416 | 0 | } |
7417 | 0 | case PContent::Msg_UnlinkGhosts__ID: |
7418 | 0 | { |
7419 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7420 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7421 | 0 | } |
7422 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UnlinkGhosts", OTHER); |
7423 | 0 |
|
7424 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7425 | 0 | FatalError("Transition error"); |
7426 | 0 | return MsgValueError; |
7427 | 0 | } |
7428 | 0 | if ((!(RecvUnlinkGhosts()))) { |
7429 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7430 | 0 | // Error handled in mozilla::ipc::IPCResult |
7431 | 0 | return MsgProcessingError; |
7432 | 0 | } |
7433 | 0 | |
7434 | 0 | return MsgProcessed; |
7435 | 0 | } |
7436 | 0 | case PContent::Msg_ActivateA11y__ID: |
7437 | 0 | { |
7438 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7439 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7440 | 0 | } |
7441 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ActivateA11y", OTHER); |
7442 | 0 |
|
7443 | 0 | PickleIterator iter__(msg__); |
7444 | 0 | uint32_t aMainChromeTid; |
7445 | 0 | uint32_t aMsaaID; |
7446 | 0 |
|
7447 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMainChromeTid)))))) { |
7448 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7449 | 0 | return MsgValueError; |
7450 | 0 | } |
7451 | 0 | // Sentinel = 'aMainChromeTid' |
7452 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3575603341)))) { |
7453 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7454 | 0 | return MsgValueError; |
7455 | 0 | } |
7456 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMsaaID)))))) { |
7457 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7458 | 0 | return MsgValueError; |
7459 | 0 | } |
7460 | 0 | // Sentinel = 'aMsaaID' |
7461 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 645559775)))) { |
7462 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7463 | 0 | return MsgValueError; |
7464 | 0 | } |
7465 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7466 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7467 | 0 | FatalError("Transition error"); |
7468 | 0 | return MsgValueError; |
7469 | 0 | } |
7470 | 0 | if ((!(RecvActivateA11y(aMainChromeTid, aMsaaID)))) { |
7471 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7472 | 0 | // Error handled in mozilla::ipc::IPCResult |
7473 | 0 | return MsgProcessingError; |
7474 | 0 | } |
7475 | 0 | |
7476 | 0 | return MsgProcessed; |
7477 | 0 | } |
7478 | 0 | case PContent::Msg_ShutdownA11y__ID: |
7479 | 0 | { |
7480 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7481 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7482 | 0 | } |
7483 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ShutdownA11y", OTHER); |
7484 | 0 |
|
7485 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7486 | 0 | FatalError("Transition error"); |
7487 | 0 | return MsgValueError; |
7488 | 0 | } |
7489 | 0 | if ((!(RecvShutdownA11y()))) { |
7490 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7491 | 0 | // Error handled in mozilla::ipc::IPCResult |
7492 | 0 | return MsgProcessingError; |
7493 | 0 | } |
7494 | 0 | |
7495 | 0 | return MsgProcessed; |
7496 | 0 | } |
7497 | 0 | case PContent::Msg_AppInfo__ID: |
7498 | 0 | { |
7499 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7500 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7501 | 0 | } |
7502 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AppInfo", OTHER); |
7503 | 0 |
|
7504 | 0 | PickleIterator iter__(msg__); |
7505 | 0 | nsCString version; |
7506 | 0 | nsCString buildID; |
7507 | 0 | nsCString name; |
7508 | 0 | nsCString UAName; |
7509 | 0 | nsCString ID; |
7510 | 0 | nsCString vendor; |
7511 | 0 | nsCString sourceURL; |
7512 | 0 |
|
7513 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(version)))))) { |
7514 | 0 | FatalError("Error deserializing 'nsCString'"); |
7515 | 0 | return MsgValueError; |
7516 | 0 | } |
7517 | 0 | // Sentinel = 'version' |
7518 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4003360947)))) { |
7519 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7520 | 0 | return MsgValueError; |
7521 | 0 | } |
7522 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(buildID)))))) { |
7523 | 0 | FatalError("Error deserializing 'nsCString'"); |
7524 | 0 | return MsgValueError; |
7525 | 0 | } |
7526 | 0 | // Sentinel = 'buildID' |
7527 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1387208200)))) { |
7528 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7529 | 0 | return MsgValueError; |
7530 | 0 | } |
7531 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(name)))))) { |
7532 | 0 | FatalError("Error deserializing 'nsCString'"); |
7533 | 0 | return MsgValueError; |
7534 | 0 | } |
7535 | 0 | // Sentinel = 'name' |
7536 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 15034981)))) { |
7537 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7538 | 0 | return MsgValueError; |
7539 | 0 | } |
7540 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(UAName)))))) { |
7541 | 0 | FatalError("Error deserializing 'nsCString'"); |
7542 | 0 | return MsgValueError; |
7543 | 0 | } |
7544 | 0 | // Sentinel = 'UAName' |
7545 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1769178349)))) { |
7546 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7547 | 0 | return MsgValueError; |
7548 | 0 | } |
7549 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(ID)))))) { |
7550 | 0 | FatalError("Error deserializing 'nsCString'"); |
7551 | 0 | return MsgValueError; |
7552 | 0 | } |
7553 | 0 | // Sentinel = 'ID' |
7554 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2597318109)))) { |
7555 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7556 | 0 | return MsgValueError; |
7557 | 0 | } |
7558 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(vendor)))))) { |
7559 | 0 | FatalError("Error deserializing 'nsCString'"); |
7560 | 0 | return MsgValueError; |
7561 | 0 | } |
7562 | 0 | // Sentinel = 'vendor' |
7563 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 461600324)))) { |
7564 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7565 | 0 | return MsgValueError; |
7566 | 0 | } |
7567 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(sourceURL)))))) { |
7568 | 0 | FatalError("Error deserializing 'nsCString'"); |
7569 | 0 | return MsgValueError; |
7570 | 0 | } |
7571 | 0 | // Sentinel = 'sourceURL' |
7572 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3017222275)))) { |
7573 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7574 | 0 | return MsgValueError; |
7575 | 0 | } |
7576 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7577 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7578 | 0 | FatalError("Transition error"); |
7579 | 0 | return MsgValueError; |
7580 | 0 | } |
7581 | 0 | if ((!(RecvAppInfo(version, buildID, name, UAName, ID, vendor, sourceURL)))) { |
7582 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7583 | 0 | // Error handled in mozilla::ipc::IPCResult |
7584 | 0 | return MsgProcessingError; |
7585 | 0 | } |
7586 | 0 | |
7587 | 0 | return MsgProcessed; |
7588 | 0 | } |
7589 | 0 | case PContent::Msg_RemoteType__ID: |
7590 | 0 | { |
7591 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7592 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7593 | 0 | } |
7594 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RemoteType", OTHER); |
7595 | 0 |
|
7596 | 0 | PickleIterator iter__(msg__); |
7597 | 0 | nsString aRemoteType; |
7598 | 0 |
|
7599 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aRemoteType)))))) { |
7600 | 0 | FatalError("Error deserializing 'nsString'"); |
7601 | 0 | return MsgValueError; |
7602 | 0 | } |
7603 | 0 | // Sentinel = 'aRemoteType' |
7604 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4113166544)))) { |
7605 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
7606 | 0 | return MsgValueError; |
7607 | 0 | } |
7608 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7609 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7610 | 0 | FatalError("Transition error"); |
7611 | 0 | return MsgValueError; |
7612 | 0 | } |
7613 | 0 | if ((!(RecvRemoteType(aRemoteType)))) { |
7614 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7615 | 0 | // Error handled in mozilla::ipc::IPCResult |
7616 | 0 | return MsgProcessingError; |
7617 | 0 | } |
7618 | 0 | |
7619 | 0 | return MsgProcessed; |
7620 | 0 | } |
7621 | 0 | case PContent::Msg_InitServiceWorkers__ID: |
7622 | 0 | { |
7623 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7624 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7625 | 0 | } |
7626 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitServiceWorkers", OTHER); |
7627 | 0 |
|
7628 | 0 | PickleIterator iter__(msg__); |
7629 | 0 | ServiceWorkerConfiguration aConfig; |
7630 | 0 |
|
7631 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aConfig)))))) { |
7632 | 0 | FatalError("Error deserializing 'ServiceWorkerConfiguration'"); |
7633 | 0 | return MsgValueError; |
7634 | 0 | } |
7635 | 0 | // Sentinel = 'aConfig' |
7636 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3808514188)))) { |
7637 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ServiceWorkerConfiguration'"); |
7638 | 0 | return MsgValueError; |
7639 | 0 | } |
7640 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7641 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7642 | 0 | FatalError("Transition error"); |
7643 | 0 | return MsgValueError; |
7644 | 0 | } |
7645 | 0 | if ((!(RecvInitServiceWorkers(aConfig)))) { |
7646 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7647 | 0 | // Error handled in mozilla::ipc::IPCResult |
7648 | 0 | return MsgProcessingError; |
7649 | 0 | } |
7650 | 0 | |
7651 | 0 | return MsgProcessed; |
7652 | 0 | } |
7653 | 0 | case PContent::Msg_InitBlobURLs__ID: |
7654 | 0 | { |
7655 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7656 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7657 | 0 | } |
7658 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitBlobURLs", OTHER); |
7659 | 0 |
|
7660 | 0 | PickleIterator iter__(msg__); |
7661 | 0 | nsTArray<BlobURLRegistrationData> registrations; |
7662 | 0 |
|
7663 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(registrations)))))) { |
7664 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7665 | 0 | return MsgValueError; |
7666 | 0 | } |
7667 | 0 | // Sentinel = 'registrations' |
7668 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2559949423)))) { |
7669 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7670 | 0 | return MsgValueError; |
7671 | 0 | } |
7672 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7673 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7674 | 0 | FatalError("Transition error"); |
7675 | 0 | return MsgValueError; |
7676 | 0 | } |
7677 | 0 | if ((!(RecvInitBlobURLs(std::move(registrations))))) { |
7678 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7679 | 0 | // Error handled in mozilla::ipc::IPCResult |
7680 | 0 | return MsgProcessingError; |
7681 | 0 | } |
7682 | 0 | |
7683 | 0 | return MsgProcessed; |
7684 | 0 | } |
7685 | 0 | case PContent::Msg_SetXPCOMProcessAttributes__ID: |
7686 | 0 | { |
7687 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7688 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7689 | 0 | } |
7690 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetXPCOMProcessAttributes", OTHER); |
7691 | 0 |
|
7692 | 0 | PickleIterator iter__(msg__); |
7693 | 0 | XPCOMInitData xpcomInit; |
7694 | 0 | StructuredCloneData initialData; |
7695 | 0 | nsTArray<LookAndFeelInt> lookAndFeelIntCache; |
7696 | 0 | nsTArray<SystemFontListEntry> systemFontList; |
7697 | 0 |
|
7698 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(xpcomInit)))))) { |
7699 | 0 | FatalError("Error deserializing 'XPCOMInitData'"); |
7700 | 0 | return MsgValueError; |
7701 | 0 | } |
7702 | 0 | // Sentinel = 'xpcomInit' |
7703 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1191505416)))) { |
7704 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'XPCOMInitData'"); |
7705 | 0 | return MsgValueError; |
7706 | 0 | } |
7707 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(initialData)))))) { |
7708 | 0 | FatalError("Error deserializing 'StructuredCloneData'"); |
7709 | 0 | return MsgValueError; |
7710 | 0 | } |
7711 | 0 | // Sentinel = 'initialData' |
7712 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3214224943)))) { |
7713 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'StructuredCloneData'"); |
7714 | 0 | return MsgValueError; |
7715 | 0 | } |
7716 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(lookAndFeelIntCache)))))) { |
7717 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7718 | 0 | return MsgValueError; |
7719 | 0 | } |
7720 | 0 | // Sentinel = 'lookAndFeelIntCache' |
7721 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4279224656)))) { |
7722 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7723 | 0 | return MsgValueError; |
7724 | 0 | } |
7725 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(systemFontList)))))) { |
7726 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7727 | 0 | return MsgValueError; |
7728 | 0 | } |
7729 | 0 | // Sentinel = 'systemFontList' |
7730 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3715584146)))) { |
7731 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7732 | 0 | return MsgValueError; |
7733 | 0 | } |
7734 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7735 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7736 | 0 | FatalError("Transition error"); |
7737 | 0 | return MsgValueError; |
7738 | 0 | } |
7739 | 0 | if ((!(RecvSetXPCOMProcessAttributes(xpcomInit, initialData, std::move(lookAndFeelIntCache), std::move(systemFontList))))) { |
7740 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7741 | 0 | // Error handled in mozilla::ipc::IPCResult |
7742 | 0 | return MsgProcessingError; |
7743 | 0 | } |
7744 | 0 | |
7745 | 0 | return MsgProcessed; |
7746 | 0 | } |
7747 | 0 | case PContent::Msg_LastPrivateDocShellDestroyed__ID: |
7748 | 0 | { |
7749 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7750 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7751 | 0 | } |
7752 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_LastPrivateDocShellDestroyed", OTHER); |
7753 | 0 |
|
7754 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7755 | 0 | FatalError("Transition error"); |
7756 | 0 | return MsgValueError; |
7757 | 0 | } |
7758 | 0 | if ((!(RecvLastPrivateDocShellDestroyed()))) { |
7759 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7760 | 0 | // Error handled in mozilla::ipc::IPCResult |
7761 | 0 | return MsgProcessingError; |
7762 | 0 | } |
7763 | 0 | |
7764 | 0 | return MsgProcessed; |
7765 | 0 | } |
7766 | 0 | case PContent::Msg_NotifyProcessPriorityChanged__ID: |
7767 | 0 | { |
7768 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7769 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7770 | 0 | } |
7771 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyProcessPriorityChanged", OTHER); |
7772 | 0 |
|
7773 | 0 | PickleIterator iter__(msg__); |
7774 | 0 | ProcessPriority priority; |
7775 | 0 |
|
7776 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(priority)))))) { |
7777 | 0 | FatalError("Error deserializing 'ProcessPriority'"); |
7778 | 0 | return MsgValueError; |
7779 | 0 | } |
7780 | 0 | // Sentinel = 'priority' |
7781 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 558136112)))) { |
7782 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ProcessPriority'"); |
7783 | 0 | return MsgValueError; |
7784 | 0 | } |
7785 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7786 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7787 | 0 | FatalError("Transition error"); |
7788 | 0 | return MsgValueError; |
7789 | 0 | } |
7790 | 0 | if ((!(RecvNotifyProcessPriorityChanged(priority)))) { |
7791 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7792 | 0 | // Error handled in mozilla::ipc::IPCResult |
7793 | 0 | return MsgProcessingError; |
7794 | 0 | } |
7795 | 0 | |
7796 | 0 | return MsgProcessed; |
7797 | 0 | } |
7798 | 0 | case PContent::Msg_MinimizeMemoryUsage__ID: |
7799 | 0 | { |
7800 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7801 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7802 | 0 | } |
7803 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_MinimizeMemoryUsage", OTHER); |
7804 | 0 |
|
7805 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7806 | 0 | FatalError("Transition error"); |
7807 | 0 | return MsgValueError; |
7808 | 0 | } |
7809 | 0 | if ((!(RecvMinimizeMemoryUsage()))) { |
7810 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7811 | 0 | // Error handled in mozilla::ipc::IPCResult |
7812 | 0 | return MsgProcessingError; |
7813 | 0 | } |
7814 | 0 | |
7815 | 0 | return MsgProcessed; |
7816 | 0 | } |
7817 | 0 | case PContent::Msg_LoadAndRegisterSheet__ID: |
7818 | 0 | { |
7819 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7820 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7821 | 0 | } |
7822 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_LoadAndRegisterSheet", OTHER); |
7823 | 0 |
|
7824 | 0 | PickleIterator iter__(msg__); |
7825 | 0 | URIParams uri; |
7826 | 0 | uint32_t type; |
7827 | 0 |
|
7828 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) { |
7829 | 0 | FatalError("Error deserializing 'URIParams'"); |
7830 | 0 | return MsgValueError; |
7831 | 0 | } |
7832 | 0 | // Sentinel = 'uri' |
7833 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) { |
7834 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'"); |
7835 | 0 | return MsgValueError; |
7836 | 0 | } |
7837 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(type)))))) { |
7838 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7839 | 0 | return MsgValueError; |
7840 | 0 | } |
7841 | 0 | // Sentinel = 'type' |
7842 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2982068540)))) { |
7843 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7844 | 0 | return MsgValueError; |
7845 | 0 | } |
7846 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7847 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7848 | 0 | FatalError("Transition error"); |
7849 | 0 | return MsgValueError; |
7850 | 0 | } |
7851 | 0 | if ((!(RecvLoadAndRegisterSheet(uri, type)))) { |
7852 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7853 | 0 | // Error handled in mozilla::ipc::IPCResult |
7854 | 0 | return MsgProcessingError; |
7855 | 0 | } |
7856 | 0 | |
7857 | 0 | return MsgProcessed; |
7858 | 0 | } |
7859 | 0 | case PContent::Msg_UnregisterSheet__ID: |
7860 | 0 | { |
7861 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7862 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7863 | 0 | } |
7864 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UnregisterSheet", OTHER); |
7865 | 0 |
|
7866 | 0 | PickleIterator iter__(msg__); |
7867 | 0 | URIParams uri; |
7868 | 0 | uint32_t type; |
7869 | 0 |
|
7870 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(uri)))))) { |
7871 | 0 | FatalError("Error deserializing 'URIParams'"); |
7872 | 0 | return MsgValueError; |
7873 | 0 | } |
7874 | 0 | // Sentinel = 'uri' |
7875 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210605)))) { |
7876 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'URIParams'"); |
7877 | 0 | return MsgValueError; |
7878 | 0 | } |
7879 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(type)))))) { |
7880 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7881 | 0 | return MsgValueError; |
7882 | 0 | } |
7883 | 0 | // Sentinel = 'type' |
7884 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2982068540)))) { |
7885 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7886 | 0 | return MsgValueError; |
7887 | 0 | } |
7888 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7889 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7890 | 0 | FatalError("Transition error"); |
7891 | 0 | return MsgValueError; |
7892 | 0 | } |
7893 | 0 | if ((!(RecvUnregisterSheet(uri, type)))) { |
7894 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7895 | 0 | // Error handled in mozilla::ipc::IPCResult |
7896 | 0 | return MsgProcessingError; |
7897 | 0 | } |
7898 | 0 | |
7899 | 0 | return MsgProcessed; |
7900 | 0 | } |
7901 | 0 | case PContent::Msg_NotifyIdleObserver__ID: |
7902 | 0 | { |
7903 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7904 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7905 | 0 | } |
7906 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyIdleObserver", OTHER); |
7907 | 0 |
|
7908 | 0 | PickleIterator iter__(msg__); |
7909 | 0 | uint64_t observerId; |
7910 | 0 | nsCString topic; |
7911 | 0 | nsString str; |
7912 | 0 |
|
7913 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(observerId)))))) { |
7914 | 0 | FatalError("Error deserializing 'uint64_t'"); |
7915 | 0 | return MsgValueError; |
7916 | 0 | } |
7917 | 0 | // Sentinel = 'observerId' |
7918 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2815026823)))) { |
7919 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
7920 | 0 | return MsgValueError; |
7921 | 0 | } |
7922 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(topic)))))) { |
7923 | 0 | FatalError("Error deserializing 'nsCString'"); |
7924 | 0 | return MsgValueError; |
7925 | 0 | } |
7926 | 0 | // Sentinel = 'topic' |
7927 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 261826960)))) { |
7928 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
7929 | 0 | return MsgValueError; |
7930 | 0 | } |
7931 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(str)))))) { |
7932 | 0 | FatalError("Error deserializing 'nsString'"); |
7933 | 0 | return MsgValueError; |
7934 | 0 | } |
7935 | 0 | // Sentinel = 'str' |
7936 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3748377462)))) { |
7937 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
7938 | 0 | return MsgValueError; |
7939 | 0 | } |
7940 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7941 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7942 | 0 | FatalError("Transition error"); |
7943 | 0 | return MsgValueError; |
7944 | 0 | } |
7945 | 0 | if ((!(RecvNotifyIdleObserver(observerId, topic, str)))) { |
7946 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7947 | 0 | // Error handled in mozilla::ipc::IPCResult |
7948 | 0 | return MsgProcessingError; |
7949 | 0 | } |
7950 | 0 | |
7951 | 0 | return MsgProcessed; |
7952 | 0 | } |
7953 | 0 | case PContent::Msg_InvokeDragSession__ID: |
7954 | 0 | { |
7955 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7956 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7957 | 0 | } |
7958 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InvokeDragSession", OTHER); |
7959 | 0 |
|
7960 | 0 | PickleIterator iter__(msg__); |
7961 | 0 | nsTArray<IPCDataTransfer> transfers; |
7962 | 0 | uint32_t action; |
7963 | 0 |
|
7964 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(transfers)))))) { |
7965 | 0 | FatalError("Error deserializing 'nsTArray'"); |
7966 | 0 | return MsgValueError; |
7967 | 0 | } |
7968 | 0 | // Sentinel = 'transfers' |
7969 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3048523737)))) { |
7970 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
7971 | 0 | return MsgValueError; |
7972 | 0 | } |
7973 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(action)))))) { |
7974 | 0 | FatalError("Error deserializing 'uint32_t'"); |
7975 | 0 | return MsgValueError; |
7976 | 0 | } |
7977 | 0 | // Sentinel = 'action' |
7978 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 991072504)))) { |
7979 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
7980 | 0 | return MsgValueError; |
7981 | 0 | } |
7982 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
7983 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
7984 | 0 | FatalError("Transition error"); |
7985 | 0 | return MsgValueError; |
7986 | 0 | } |
7987 | 0 | if ((!(RecvInvokeDragSession(std::move(transfers), action)))) { |
7988 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
7989 | 0 | // Error handled in mozilla::ipc::IPCResult |
7990 | 0 | return MsgProcessingError; |
7991 | 0 | } |
7992 | 0 | |
7993 | 0 | return MsgProcessed; |
7994 | 0 | } |
7995 | 0 | case PContent::Msg_EndDragSession__ID: |
7996 | 0 | { |
7997 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
7998 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
7999 | 0 | } |
8000 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_EndDragSession", OTHER); |
8001 | 0 |
|
8002 | 0 | PickleIterator iter__(msg__); |
8003 | 0 | bool aDoneDrag; |
8004 | 0 | bool aUserCancelled; |
8005 | 0 | LayoutDeviceIntPoint aDragEndPoint; |
8006 | 0 | uint32_t aKeyModifiers; |
8007 | 0 |
|
8008 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDoneDrag)))))) { |
8009 | 0 | FatalError("Error deserializing 'bool'"); |
8010 | 0 | return MsgValueError; |
8011 | 0 | } |
8012 | 0 | // Sentinel = 'aDoneDrag' |
8013 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3406977382)))) { |
8014 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
8015 | 0 | return MsgValueError; |
8016 | 0 | } |
8017 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aUserCancelled)))))) { |
8018 | 0 | FatalError("Error deserializing 'bool'"); |
8019 | 0 | return MsgValueError; |
8020 | 0 | } |
8021 | 0 | // Sentinel = 'aUserCancelled' |
8022 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3762723247)))) { |
8023 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
8024 | 0 | return MsgValueError; |
8025 | 0 | } |
8026 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDragEndPoint)))))) { |
8027 | 0 | FatalError("Error deserializing 'LayoutDeviceIntPoint'"); |
8028 | 0 | return MsgValueError; |
8029 | 0 | } |
8030 | 0 | // Sentinel = 'aDragEndPoint' |
8031 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2254135269)))) { |
8032 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'LayoutDeviceIntPoint'"); |
8033 | 0 | return MsgValueError; |
8034 | 0 | } |
8035 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aKeyModifiers)))))) { |
8036 | 0 | FatalError("Error deserializing 'uint32_t'"); |
8037 | 0 | return MsgValueError; |
8038 | 0 | } |
8039 | 0 | // Sentinel = 'aKeyModifiers' |
8040 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 838210057)))) { |
8041 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
8042 | 0 | return MsgValueError; |
8043 | 0 | } |
8044 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8045 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8046 | 0 | FatalError("Transition error"); |
8047 | 0 | return MsgValueError; |
8048 | 0 | } |
8049 | 0 | if ((!(RecvEndDragSession(aDoneDrag, aUserCancelled, aDragEndPoint, aKeyModifiers)))) { |
8050 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8051 | 0 | // Error handled in mozilla::ipc::IPCResult |
8052 | 0 | return MsgProcessingError; |
8053 | 0 | } |
8054 | 0 | |
8055 | 0 | return MsgProcessed; |
8056 | 0 | } |
8057 | 0 | case PContent::Msg_DomainSetChanged__ID: |
8058 | 0 | { |
8059 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8060 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8061 | 0 | } |
8062 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DomainSetChanged", OTHER); |
8063 | 0 |
|
8064 | 0 | PickleIterator iter__(msg__); |
8065 | 0 | uint32_t aSetType; |
8066 | 0 | uint32_t aChangeType; |
8067 | 0 | OptionalURIParams aDomain; |
8068 | 0 |
|
8069 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSetType)))))) { |
8070 | 0 | FatalError("Error deserializing 'uint32_t'"); |
8071 | 0 | return MsgValueError; |
8072 | 0 | } |
8073 | 0 | // Sentinel = 'aSetType' |
8074 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3577437707)))) { |
8075 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
8076 | 0 | return MsgValueError; |
8077 | 0 | } |
8078 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aChangeType)))))) { |
8079 | 0 | FatalError("Error deserializing 'uint32_t'"); |
8080 | 0 | return MsgValueError; |
8081 | 0 | } |
8082 | 0 | // Sentinel = 'aChangeType' |
8083 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3383103566)))) { |
8084 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
8085 | 0 | return MsgValueError; |
8086 | 0 | } |
8087 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDomain)))))) { |
8088 | 0 | FatalError("Error deserializing 'OptionalURIParams'"); |
8089 | 0 | return MsgValueError; |
8090 | 0 | } |
8091 | 0 | // Sentinel = 'aDomain' |
8092 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 115381882)))) { |
8093 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'OptionalURIParams'"); |
8094 | 0 | return MsgValueError; |
8095 | 0 | } |
8096 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8097 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8098 | 0 | FatalError("Transition error"); |
8099 | 0 | return MsgValueError; |
8100 | 0 | } |
8101 | 0 | if ((!(RecvDomainSetChanged(aSetType, aChangeType, aDomain)))) { |
8102 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8103 | 0 | // Error handled in mozilla::ipc::IPCResult |
8104 | 0 | return MsgProcessingError; |
8105 | 0 | } |
8106 | 0 | |
8107 | 0 | return MsgProcessed; |
8108 | 0 | } |
8109 | 0 | case PContent::Msg_Shutdown__ID: |
8110 | 0 | { |
8111 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8112 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8113 | 0 | } |
8114 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_Shutdown", OTHER); |
8115 | 0 |
|
8116 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8117 | 0 | FatalError("Transition error"); |
8118 | 0 | return MsgValueError; |
8119 | 0 | } |
8120 | 0 | if ((!(RecvShutdown()))) { |
8121 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8122 | 0 | // Error handled in mozilla::ipc::IPCResult |
8123 | 0 | return MsgProcessingError; |
8124 | 0 | } |
8125 | 0 | |
8126 | 0 | return MsgProcessed; |
8127 | 0 | } |
8128 | 0 | case PContent::Msg_LoadProcessScript__ID: |
8129 | 0 | { |
8130 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8131 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8132 | 0 | } |
8133 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_LoadProcessScript", OTHER); |
8134 | 0 |
|
8135 | 0 | PickleIterator iter__(msg__); |
8136 | 0 | nsString url; |
8137 | 0 |
|
8138 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(url)))))) { |
8139 | 0 | FatalError("Error deserializing 'nsString'"); |
8140 | 0 | return MsgValueError; |
8141 | 0 | } |
8142 | 0 | // Sentinel = 'url' |
8143 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) { |
8144 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8145 | 0 | return MsgValueError; |
8146 | 0 | } |
8147 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8148 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8149 | 0 | FatalError("Transition error"); |
8150 | 0 | return MsgValueError; |
8151 | 0 | } |
8152 | 0 | if ((!(RecvLoadProcessScript(url)))) { |
8153 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8154 | 0 | // Error handled in mozilla::ipc::IPCResult |
8155 | 0 | return MsgProcessingError; |
8156 | 0 | } |
8157 | 0 | |
8158 | 0 | return MsgProcessed; |
8159 | 0 | } |
8160 | 0 | case PContent::Msg_UpdateWindow__ID: |
8161 | 0 | { |
8162 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8163 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8164 | 0 | } |
8165 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_UpdateWindow", OTHER); |
8166 | 0 |
|
8167 | 0 | PickleIterator iter__(msg__); |
8168 | 0 | uintptr_t aChildId; |
8169 | 0 |
|
8170 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aChildId)))))) { |
8171 | 0 | FatalError("Error deserializing 'uintptr_t'"); |
8172 | 0 | return MsgValueError; |
8173 | 0 | } |
8174 | 0 | // Sentinel = 'aChildId' |
8175 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 328267498)))) { |
8176 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uintptr_t'"); |
8177 | 0 | return MsgValueError; |
8178 | 0 | } |
8179 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8180 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8181 | 0 | FatalError("Transition error"); |
8182 | 0 | return MsgValueError; |
8183 | 0 | } |
8184 | 0 | if ((!(RecvUpdateWindow(aChildId)))) { |
8185 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8186 | 0 | // Error handled in mozilla::ipc::IPCResult |
8187 | 0 | return MsgProcessingError; |
8188 | 0 | } |
8189 | 0 | |
8190 | 0 | return MsgProcessed; |
8191 | 0 | } |
8192 | 0 | case PContent::Msg_NotifyPresentationReceiverLaunched__ID: |
8193 | 0 | { |
8194 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8195 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8196 | 0 | } |
8197 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverLaunched", OTHER); |
8198 | 0 |
|
8199 | 0 | PickleIterator iter__(msg__); |
8200 | 0 | PBrowserChild* aIframe; |
8201 | 0 | nsString aSessionId; |
8202 | 0 |
|
8203 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIframe)))))) { |
8204 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8205 | 0 | return MsgValueError; |
8206 | 0 | } |
8207 | 0 | if ((!((*((&(aIframe))))))) { |
8208 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8209 | 0 | return MsgValueError; |
8210 | 0 | } |
8211 | 0 | // Sentinel = 'aIframe' |
8212 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 161927714)))) { |
8213 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserChild'"); |
8214 | 0 | return MsgValueError; |
8215 | 0 | } |
8216 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSessionId)))))) { |
8217 | 0 | FatalError("Error deserializing 'nsString'"); |
8218 | 0 | return MsgValueError; |
8219 | 0 | } |
8220 | 0 | // Sentinel = 'aSessionId' |
8221 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) { |
8222 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8223 | 0 | return MsgValueError; |
8224 | 0 | } |
8225 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8226 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8227 | 0 | FatalError("Transition error"); |
8228 | 0 | return MsgValueError; |
8229 | 0 | } |
8230 | 0 | if ((!(RecvNotifyPresentationReceiverLaunched(aIframe, aSessionId)))) { |
8231 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8232 | 0 | // Error handled in mozilla::ipc::IPCResult |
8233 | 0 | return MsgProcessingError; |
8234 | 0 | } |
8235 | 0 | |
8236 | 0 | return MsgProcessed; |
8237 | 0 | } |
8238 | 0 | case PContent::Msg_NotifyPresentationReceiverCleanUp__ID: |
8239 | 0 | { |
8240 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8241 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8242 | 0 | } |
8243 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPresentationReceiverCleanUp", OTHER); |
8244 | 0 |
|
8245 | 0 | PickleIterator iter__(msg__); |
8246 | 0 | nsString aSessionId; |
8247 | 0 |
|
8248 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSessionId)))))) { |
8249 | 0 | FatalError("Error deserializing 'nsString'"); |
8250 | 0 | return MsgValueError; |
8251 | 0 | } |
8252 | 0 | // Sentinel = 'aSessionId' |
8253 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 725794242)))) { |
8254 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8255 | 0 | return MsgValueError; |
8256 | 0 | } |
8257 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8258 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8259 | 0 | FatalError("Transition error"); |
8260 | 0 | return MsgValueError; |
8261 | 0 | } |
8262 | 0 | if ((!(RecvNotifyPresentationReceiverCleanUp(aSessionId)))) { |
8263 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8264 | 0 | // Error handled in mozilla::ipc::IPCResult |
8265 | 0 | return MsgProcessingError; |
8266 | 0 | } |
8267 | 0 | |
8268 | 0 | return MsgProcessed; |
8269 | 0 | } |
8270 | 0 | case PContent::Msg_NotifyEmptyHTTPCache__ID: |
8271 | 0 | { |
8272 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8273 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8274 | 0 | } |
8275 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyEmptyHTTPCache", OTHER); |
8276 | 0 |
|
8277 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8278 | 0 | FatalError("Transition error"); |
8279 | 0 | return MsgValueError; |
8280 | 0 | } |
8281 | 0 | if ((!(RecvNotifyEmptyHTTPCache()))) { |
8282 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8283 | 0 | // Error handled in mozilla::ipc::IPCResult |
8284 | 0 | return MsgProcessingError; |
8285 | 0 | } |
8286 | 0 | |
8287 | 0 | return MsgProcessed; |
8288 | 0 | } |
8289 | 0 | case PContent::Msg_Push__ID: |
8290 | 0 | { |
8291 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8292 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8293 | 0 | } |
8294 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_Push", OTHER); |
8295 | 0 |
|
8296 | 0 | PickleIterator iter__(msg__); |
8297 | 0 | nsCString scope; |
8298 | 0 | Principal principal; |
8299 | 0 | nsString messageId; |
8300 | 0 |
|
8301 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) { |
8302 | 0 | FatalError("Error deserializing 'nsCString'"); |
8303 | 0 | return MsgValueError; |
8304 | 0 | } |
8305 | 0 | // Sentinel = 'scope' |
8306 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) { |
8307 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8308 | 0 | return MsgValueError; |
8309 | 0 | } |
8310 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
8311 | 0 | FatalError("Error deserializing 'Principal'"); |
8312 | 0 | return MsgValueError; |
8313 | 0 | } |
8314 | 0 | // Sentinel = 'principal' |
8315 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
8316 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
8317 | 0 | return MsgValueError; |
8318 | 0 | } |
8319 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageId)))))) { |
8320 | 0 | FatalError("Error deserializing 'nsString'"); |
8321 | 0 | return MsgValueError; |
8322 | 0 | } |
8323 | 0 | // Sentinel = 'messageId' |
8324 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) { |
8325 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8326 | 0 | return MsgValueError; |
8327 | 0 | } |
8328 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8329 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8330 | 0 | FatalError("Transition error"); |
8331 | 0 | return MsgValueError; |
8332 | 0 | } |
8333 | 0 | if ((!(RecvPush(scope, principal, messageId)))) { |
8334 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8335 | 0 | // Error handled in mozilla::ipc::IPCResult |
8336 | 0 | return MsgProcessingError; |
8337 | 0 | } |
8338 | 0 | |
8339 | 0 | return MsgProcessed; |
8340 | 0 | } |
8341 | 0 | case PContent::Msg_PushWithData__ID: |
8342 | 0 | { |
8343 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8344 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8345 | 0 | } |
8346 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PushWithData", OTHER); |
8347 | 0 |
|
8348 | 0 | PickleIterator iter__(msg__); |
8349 | 0 | nsCString scope; |
8350 | 0 | Principal principal; |
8351 | 0 | nsString messageId; |
8352 | 0 | nsTArray<uint8_t> data; |
8353 | 0 |
|
8354 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) { |
8355 | 0 | FatalError("Error deserializing 'nsCString'"); |
8356 | 0 | return MsgValueError; |
8357 | 0 | } |
8358 | 0 | // Sentinel = 'scope' |
8359 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) { |
8360 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8361 | 0 | return MsgValueError; |
8362 | 0 | } |
8363 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
8364 | 0 | FatalError("Error deserializing 'Principal'"); |
8365 | 0 | return MsgValueError; |
8366 | 0 | } |
8367 | 0 | // Sentinel = 'principal' |
8368 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
8369 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
8370 | 0 | return MsgValueError; |
8371 | 0 | } |
8372 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(messageId)))))) { |
8373 | 0 | FatalError("Error deserializing 'nsString'"); |
8374 | 0 | return MsgValueError; |
8375 | 0 | } |
8376 | 0 | // Sentinel = 'messageId' |
8377 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2887269495)))) { |
8378 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8379 | 0 | return MsgValueError; |
8380 | 0 | } |
8381 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(data)))))) { |
8382 | 0 | FatalError("Error deserializing 'nsTArray'"); |
8383 | 0 | return MsgValueError; |
8384 | 0 | } |
8385 | 0 | // Sentinel = 'data' |
8386 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 843352540)))) { |
8387 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
8388 | 0 | return MsgValueError; |
8389 | 0 | } |
8390 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8391 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8392 | 0 | FatalError("Transition error"); |
8393 | 0 | return MsgValueError; |
8394 | 0 | } |
8395 | 0 | if ((!(RecvPushWithData(scope, principal, messageId, std::move(data))))) { |
8396 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8397 | 0 | // Error handled in mozilla::ipc::IPCResult |
8398 | 0 | return MsgProcessingError; |
8399 | 0 | } |
8400 | 0 | |
8401 | 0 | return MsgProcessed; |
8402 | 0 | } |
8403 | 0 | case PContent::Msg_PushSubscriptionChange__ID: |
8404 | 0 | { |
8405 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8406 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8407 | 0 | } |
8408 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PushSubscriptionChange", OTHER); |
8409 | 0 |
|
8410 | 0 | PickleIterator iter__(msg__); |
8411 | 0 | nsCString scope; |
8412 | 0 | Principal principal; |
8413 | 0 |
|
8414 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) { |
8415 | 0 | FatalError("Error deserializing 'nsCString'"); |
8416 | 0 | return MsgValueError; |
8417 | 0 | } |
8418 | 0 | // Sentinel = 'scope' |
8419 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) { |
8420 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8421 | 0 | return MsgValueError; |
8422 | 0 | } |
8423 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
8424 | 0 | FatalError("Error deserializing 'Principal'"); |
8425 | 0 | return MsgValueError; |
8426 | 0 | } |
8427 | 0 | // Sentinel = 'principal' |
8428 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
8429 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
8430 | 0 | return MsgValueError; |
8431 | 0 | } |
8432 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8433 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8434 | 0 | FatalError("Transition error"); |
8435 | 0 | return MsgValueError; |
8436 | 0 | } |
8437 | 0 | if ((!(RecvPushSubscriptionChange(scope, principal)))) { |
8438 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8439 | 0 | // Error handled in mozilla::ipc::IPCResult |
8440 | 0 | return MsgProcessingError; |
8441 | 0 | } |
8442 | 0 | |
8443 | 0 | return MsgProcessed; |
8444 | 0 | } |
8445 | 0 | case PContent::Msg_PushError__ID: |
8446 | 0 | { |
8447 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8448 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8449 | 0 | } |
8450 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PushError", OTHER); |
8451 | 0 |
|
8452 | 0 | PickleIterator iter__(msg__); |
8453 | 0 | nsCString scope; |
8454 | 0 | Principal principal; |
8455 | 0 | nsString message; |
8456 | 0 | uint32_t flags; |
8457 | 0 |
|
8458 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) { |
8459 | 0 | FatalError("Error deserializing 'nsCString'"); |
8460 | 0 | return MsgValueError; |
8461 | 0 | } |
8462 | 0 | // Sentinel = 'scope' |
8463 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) { |
8464 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8465 | 0 | return MsgValueError; |
8466 | 0 | } |
8467 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
8468 | 0 | FatalError("Error deserializing 'Principal'"); |
8469 | 0 | return MsgValueError; |
8470 | 0 | } |
8471 | 0 | // Sentinel = 'principal' |
8472 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
8473 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
8474 | 0 | return MsgValueError; |
8475 | 0 | } |
8476 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(message)))))) { |
8477 | 0 | FatalError("Error deserializing 'nsString'"); |
8478 | 0 | return MsgValueError; |
8479 | 0 | } |
8480 | 0 | // Sentinel = 'message' |
8481 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1366108954)))) { |
8482 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8483 | 0 | return MsgValueError; |
8484 | 0 | } |
8485 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) { |
8486 | 0 | FatalError("Error deserializing 'uint32_t'"); |
8487 | 0 | return MsgValueError; |
8488 | 0 | } |
8489 | 0 | // Sentinel = 'flags' |
8490 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) { |
8491 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
8492 | 0 | return MsgValueError; |
8493 | 0 | } |
8494 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8495 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8496 | 0 | FatalError("Transition error"); |
8497 | 0 | return MsgValueError; |
8498 | 0 | } |
8499 | 0 | if ((!(RecvPushError(scope, principal, message, flags)))) { |
8500 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8501 | 0 | // Error handled in mozilla::ipc::IPCResult |
8502 | 0 | return MsgProcessingError; |
8503 | 0 | } |
8504 | 0 | |
8505 | 0 | return MsgProcessed; |
8506 | 0 | } |
8507 | 0 | case PContent::Msg_SetAudioSessionData__ID: |
8508 | 0 | { |
8509 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8510 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8511 | 0 | } |
8512 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetAudioSessionData", OTHER); |
8513 | 0 |
|
8514 | 0 | PickleIterator iter__(msg__); |
8515 | 0 | nsID aID; |
8516 | 0 | nsString aDisplayName; |
8517 | 0 | nsString aIconPath; |
8518 | 0 |
|
8519 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
8520 | 0 | FatalError("Error deserializing 'nsID'"); |
8521 | 0 | return MsgValueError; |
8522 | 0 | } |
8523 | 0 | // Sentinel = 'aID' |
8524 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
8525 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsID'"); |
8526 | 0 | return MsgValueError; |
8527 | 0 | } |
8528 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aDisplayName)))))) { |
8529 | 0 | FatalError("Error deserializing 'nsString'"); |
8530 | 0 | return MsgValueError; |
8531 | 0 | } |
8532 | 0 | // Sentinel = 'aDisplayName' |
8533 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 531102644)))) { |
8534 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8535 | 0 | return MsgValueError; |
8536 | 0 | } |
8537 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aIconPath)))))) { |
8538 | 0 | FatalError("Error deserializing 'nsString'"); |
8539 | 0 | return MsgValueError; |
8540 | 0 | } |
8541 | 0 | // Sentinel = 'aIconPath' |
8542 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2359874914)))) { |
8543 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
8544 | 0 | return MsgValueError; |
8545 | 0 | } |
8546 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8547 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8548 | 0 | FatalError("Transition error"); |
8549 | 0 | return MsgValueError; |
8550 | 0 | } |
8551 | 0 | if ((!(RecvSetAudioSessionData(aID, aDisplayName, aIconPath)))) { |
8552 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8553 | 0 | // Error handled in mozilla::ipc::IPCResult |
8554 | 0 | return MsgProcessingError; |
8555 | 0 | } |
8556 | 0 | |
8557 | 0 | return MsgProcessed; |
8558 | 0 | } |
8559 | 0 | case PContent::Msg_GetFilesResponse__ID: |
8560 | 0 | { |
8561 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8562 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8563 | 0 | } |
8564 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GetFilesResponse", OTHER); |
8565 | 0 |
|
8566 | 0 | PickleIterator iter__(msg__); |
8567 | 0 | nsID aID; |
8568 | 0 | GetFilesResponseResult aResult; |
8569 | 0 |
|
8570 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
8571 | 0 | FatalError("Error deserializing 'nsID'"); |
8572 | 0 | return MsgValueError; |
8573 | 0 | } |
8574 | 0 | // Sentinel = 'aID' |
8575 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
8576 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsID'"); |
8577 | 0 | return MsgValueError; |
8578 | 0 | } |
8579 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aResult)))))) { |
8580 | 0 | FatalError("Error deserializing 'GetFilesResponseResult'"); |
8581 | 0 | return MsgValueError; |
8582 | 0 | } |
8583 | 0 | // Sentinel = 'aResult' |
8584 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3888726089)))) { |
8585 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'GetFilesResponseResult'"); |
8586 | 0 | return MsgValueError; |
8587 | 0 | } |
8588 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8589 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8590 | 0 | FatalError("Transition error"); |
8591 | 0 | return MsgValueError; |
8592 | 0 | } |
8593 | 0 | if ((!(RecvGetFilesResponse(aID, aResult)))) { |
8594 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8595 | 0 | // Error handled in mozilla::ipc::IPCResult |
8596 | 0 | return MsgProcessingError; |
8597 | 0 | } |
8598 | 0 | |
8599 | 0 | return MsgProcessed; |
8600 | 0 | } |
8601 | 0 | case PContent::Msg_BlobURLRegistration__ID: |
8602 | 0 | { |
8603 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8604 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8605 | 0 | } |
8606 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BlobURLRegistration", OTHER); |
8607 | 0 |
|
8608 | 0 | PickleIterator iter__(msg__); |
8609 | 0 | nsCString aURI; |
8610 | 0 | IPCBlob aBlob; |
8611 | 0 | Principal aPrincipal; |
8612 | 0 |
|
8613 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURI)))))) { |
8614 | 0 | FatalError("Error deserializing 'nsCString'"); |
8615 | 0 | return MsgValueError; |
8616 | 0 | } |
8617 | 0 | // Sentinel = 'aURI' |
8618 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) { |
8619 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8620 | 0 | return MsgValueError; |
8621 | 0 | } |
8622 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aBlob)))))) { |
8623 | 0 | FatalError("Error deserializing 'IPCBlob'"); |
8624 | 0 | return MsgValueError; |
8625 | 0 | } |
8626 | 0 | // Sentinel = 'aBlob' |
8627 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3425660321)))) { |
8628 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'IPCBlob'"); |
8629 | 0 | return MsgValueError; |
8630 | 0 | } |
8631 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) { |
8632 | 0 | FatalError("Error deserializing 'Principal'"); |
8633 | 0 | return MsgValueError; |
8634 | 0 | } |
8635 | 0 | // Sentinel = 'aPrincipal' |
8636 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) { |
8637 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
8638 | 0 | return MsgValueError; |
8639 | 0 | } |
8640 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8641 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8642 | 0 | FatalError("Transition error"); |
8643 | 0 | return MsgValueError; |
8644 | 0 | } |
8645 | 0 | if ((!(RecvBlobURLRegistration(aURI, aBlob, aPrincipal)))) { |
8646 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8647 | 0 | // Error handled in mozilla::ipc::IPCResult |
8648 | 0 | return MsgProcessingError; |
8649 | 0 | } |
8650 | 0 | |
8651 | 0 | return MsgProcessed; |
8652 | 0 | } |
8653 | 0 | case PContent::Msg_BlobURLUnregistration__ID: |
8654 | 0 | { |
8655 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8656 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8657 | 0 | } |
8658 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_BlobURLUnregistration", OTHER); |
8659 | 0 |
|
8660 | 0 | PickleIterator iter__(msg__); |
8661 | 0 | nsCString aURI; |
8662 | 0 |
|
8663 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aURI)))))) { |
8664 | 0 | FatalError("Error deserializing 'nsCString'"); |
8665 | 0 | return MsgValueError; |
8666 | 0 | } |
8667 | 0 | // Sentinel = 'aURI' |
8668 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2075506333)))) { |
8669 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8670 | 0 | return MsgValueError; |
8671 | 0 | } |
8672 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8673 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8674 | 0 | FatalError("Transition error"); |
8675 | 0 | return MsgValueError; |
8676 | 0 | } |
8677 | 0 | if ((!(RecvBlobURLUnregistration(aURI)))) { |
8678 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8679 | 0 | // Error handled in mozilla::ipc::IPCResult |
8680 | 0 | return MsgProcessingError; |
8681 | 0 | } |
8682 | 0 | |
8683 | 0 | return MsgProcessed; |
8684 | 0 | } |
8685 | 0 | case PContent::Msg_GMPsChanged__ID: |
8686 | 0 | { |
8687 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8688 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8689 | 0 | } |
8690 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_GMPsChanged", OTHER); |
8691 | 0 |
|
8692 | 0 | PickleIterator iter__(msg__); |
8693 | 0 | nsTArray<GMPCapabilityData> capabilities; |
8694 | 0 |
|
8695 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(capabilities)))))) { |
8696 | 0 | FatalError("Error deserializing 'nsTArray'"); |
8697 | 0 | return MsgValueError; |
8698 | 0 | } |
8699 | 0 | // Sentinel = 'capabilities' |
8700 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4197121582)))) { |
8701 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
8702 | 0 | return MsgValueError; |
8703 | 0 | } |
8704 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8705 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8706 | 0 | FatalError("Transition error"); |
8707 | 0 | return MsgValueError; |
8708 | 0 | } |
8709 | 0 | if ((!(RecvGMPsChanged(std::move(capabilities))))) { |
8710 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8711 | 0 | // Error handled in mozilla::ipc::IPCResult |
8712 | 0 | return MsgProcessingError; |
8713 | 0 | } |
8714 | 0 | |
8715 | 0 | return MsgProcessed; |
8716 | 0 | } |
8717 | 0 | case PContent::Msg_FileCreationResponse__ID: |
8718 | 0 | { |
8719 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8720 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8721 | 0 | } |
8722 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FileCreationResponse", OTHER); |
8723 | 0 |
|
8724 | 0 | PickleIterator iter__(msg__); |
8725 | 0 | nsID aID; |
8726 | 0 | FileCreationResult aResult; |
8727 | 0 |
|
8728 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
8729 | 0 | FatalError("Error deserializing 'nsID'"); |
8730 | 0 | return MsgValueError; |
8731 | 0 | } |
8732 | 0 | // Sentinel = 'aID' |
8733 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
8734 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsID'"); |
8735 | 0 | return MsgValueError; |
8736 | 0 | } |
8737 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aResult)))))) { |
8738 | 0 | FatalError("Error deserializing 'FileCreationResult'"); |
8739 | 0 | return MsgValueError; |
8740 | 0 | } |
8741 | 0 | // Sentinel = 'aResult' |
8742 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3888726089)))) { |
8743 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileCreationResult'"); |
8744 | 0 | return MsgValueError; |
8745 | 0 | } |
8746 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8747 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8748 | 0 | FatalError("Transition error"); |
8749 | 0 | return MsgValueError; |
8750 | 0 | } |
8751 | 0 | if ((!(RecvFileCreationResponse(aID, aResult)))) { |
8752 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8753 | 0 | // Error handled in mozilla::ipc::IPCResult |
8754 | 0 | return MsgProcessingError; |
8755 | 0 | } |
8756 | 0 | |
8757 | 0 | return MsgProcessed; |
8758 | 0 | } |
8759 | 0 | case PContent::Msg_Activate__ID: |
8760 | 0 | { |
8761 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8762 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8763 | 0 | } |
8764 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_Activate", OTHER); |
8765 | 0 |
|
8766 | 0 | PickleIterator iter__(msg__); |
8767 | 0 | PBrowserChild* aTab; |
8768 | 0 |
|
8769 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTab)))))) { |
8770 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8771 | 0 | return MsgValueError; |
8772 | 0 | } |
8773 | 0 | if ((!((*((&(aTab))))))) { |
8774 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8775 | 0 | return MsgValueError; |
8776 | 0 | } |
8777 | 0 | // Sentinel = 'aTab' |
8778 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1179125994)))) { |
8779 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserChild'"); |
8780 | 0 | return MsgValueError; |
8781 | 0 | } |
8782 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8783 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8784 | 0 | FatalError("Transition error"); |
8785 | 0 | return MsgValueError; |
8786 | 0 | } |
8787 | 0 | if ((!(RecvActivate(aTab)))) { |
8788 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8789 | 0 | // Error handled in mozilla::ipc::IPCResult |
8790 | 0 | return MsgProcessingError; |
8791 | 0 | } |
8792 | 0 | |
8793 | 0 | return MsgProcessed; |
8794 | 0 | } |
8795 | 0 | case PContent::Msg_Deactivate__ID: |
8796 | 0 | { |
8797 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8798 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8799 | 0 | } |
8800 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_Deactivate", OTHER); |
8801 | 0 |
|
8802 | 0 | PickleIterator iter__(msg__); |
8803 | 0 | PBrowserChild* aTab; |
8804 | 0 |
|
8805 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aTab)))))) { |
8806 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8807 | 0 | return MsgValueError; |
8808 | 0 | } |
8809 | 0 | if ((!((*((&(aTab))))))) { |
8810 | 0 | FatalError("Error deserializing 'PBrowserChild'"); |
8811 | 0 | return MsgValueError; |
8812 | 0 | } |
8813 | 0 | // Sentinel = 'aTab' |
8814 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1179125994)))) { |
8815 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserChild'"); |
8816 | 0 | return MsgValueError; |
8817 | 0 | } |
8818 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8819 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8820 | 0 | FatalError("Transition error"); |
8821 | 0 | return MsgValueError; |
8822 | 0 | } |
8823 | 0 | if ((!(RecvDeactivate(aTab)))) { |
8824 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8825 | 0 | // Error handled in mozilla::ipc::IPCResult |
8826 | 0 | return MsgProcessingError; |
8827 | 0 | } |
8828 | 0 | |
8829 | 0 | return MsgProcessed; |
8830 | 0 | } |
8831 | 0 | case PContent::Msg_PParentToChildStreamConstructor__ID: |
8832 | 0 | { |
8833 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8834 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8835 | 0 | } |
8836 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PParentToChildStreamConstructor", OTHER); |
8837 | 0 |
|
8838 | 0 | PickleIterator iter__(msg__); |
8839 | 0 | ActorHandle handle__; |
8840 | 0 | PParentToChildStreamChild* actor; |
8841 | 0 |
|
8842 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
8843 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
8844 | 0 | return MsgValueError; |
8845 | 0 | } |
8846 | 0 | // Sentinel = 'actor' |
8847 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
8848 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
8849 | 0 | return MsgValueError; |
8850 | 0 | } |
8851 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8852 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8853 | 0 | FatalError("Transition error"); |
8854 | 0 | return MsgValueError; |
8855 | 0 | } |
8856 | 0 | actor = AllocPParentToChildStreamChild(); |
8857 | 0 | if ((!(actor))) { |
8858 | 0 | NS_WARNING("Error constructing actor PParentToChildStreamChild"); |
8859 | 0 | return MsgValueError; |
8860 | 0 | } |
8861 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
8862 | 0 | (mManagedPParentToChildStreamChild).PutEntry(actor); |
8863 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
8864 | 0 |
|
8865 | 0 | if ((!(RecvPParentToChildStreamConstructor(actor)))) { |
8866 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8867 | 0 | // Error handled in mozilla::ipc::IPCResult |
8868 | 0 | return MsgProcessingError; |
8869 | 0 | } |
8870 | 0 | |
8871 | 0 | return MsgProcessed; |
8872 | 0 | } |
8873 | 0 | case PContent::Msg_ProvideAnonymousTemporaryFile__ID: |
8874 | 0 | { |
8875 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8876 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8877 | 0 | } |
8878 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ProvideAnonymousTemporaryFile", OTHER); |
8879 | 0 |
|
8880 | 0 | PickleIterator iter__(msg__); |
8881 | 0 | uint64_t aID; |
8882 | 0 | FileDescOrError aFD; |
8883 | 0 |
|
8884 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
8885 | 0 | FatalError("Error deserializing 'uint64_t'"); |
8886 | 0 | return MsgValueError; |
8887 | 0 | } |
8888 | 0 | // Sentinel = 'aID' |
8889 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
8890 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
8891 | 0 | return MsgValueError; |
8892 | 0 | } |
8893 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aFD)))))) { |
8894 | 0 | FatalError("Error deserializing 'FileDescOrError'"); |
8895 | 0 | return MsgValueError; |
8896 | 0 | } |
8897 | 0 | // Sentinel = 'aFD' |
8898 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2730041960)))) { |
8899 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescOrError'"); |
8900 | 0 | return MsgValueError; |
8901 | 0 | } |
8902 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8903 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8904 | 0 | FatalError("Transition error"); |
8905 | 0 | return MsgValueError; |
8906 | 0 | } |
8907 | 0 | if ((!(RecvProvideAnonymousTemporaryFile(aID, aFD)))) { |
8908 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8909 | 0 | // Error handled in mozilla::ipc::IPCResult |
8910 | 0 | return MsgProcessingError; |
8911 | 0 | } |
8912 | 0 | |
8913 | 0 | return MsgProcessed; |
8914 | 0 | } |
8915 | 0 | case PContent::Msg_SetPermissionsWithKey__ID: |
8916 | 0 | { |
8917 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8918 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8919 | 0 | } |
8920 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetPermissionsWithKey", OTHER); |
8921 | 0 |
|
8922 | 0 | PickleIterator iter__(msg__); |
8923 | 0 | nsCString aPermissionKey; |
8924 | 0 | nsTArray<Permission> aPermissions; |
8925 | 0 |
|
8926 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPermissionKey)))))) { |
8927 | 0 | FatalError("Error deserializing 'nsCString'"); |
8928 | 0 | return MsgValueError; |
8929 | 0 | } |
8930 | 0 | // Sentinel = 'aPermissionKey' |
8931 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1655133647)))) { |
8932 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
8933 | 0 | return MsgValueError; |
8934 | 0 | } |
8935 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPermissions)))))) { |
8936 | 0 | FatalError("Error deserializing 'nsTArray'"); |
8937 | 0 | return MsgValueError; |
8938 | 0 | } |
8939 | 0 | // Sentinel = 'aPermissions' |
8940 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1882836443)))) { |
8941 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
8942 | 0 | return MsgValueError; |
8943 | 0 | } |
8944 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8945 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8946 | 0 | FatalError("Transition error"); |
8947 | 0 | return MsgValueError; |
8948 | 0 | } |
8949 | 0 | if ((!(RecvSetPermissionsWithKey(aPermissionKey, std::move(aPermissions))))) { |
8950 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8951 | 0 | // Error handled in mozilla::ipc::IPCResult |
8952 | 0 | return MsgProcessingError; |
8953 | 0 | } |
8954 | 0 | |
8955 | 0 | return MsgProcessed; |
8956 | 0 | } |
8957 | 0 | case PContent::Msg_RefreshScreens__ID: |
8958 | 0 | { |
8959 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8960 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8961 | 0 | } |
8962 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_RefreshScreens", OTHER); |
8963 | 0 |
|
8964 | 0 | PickleIterator iter__(msg__); |
8965 | 0 | nsTArray<ScreenDetails> aScreens; |
8966 | 0 |
|
8967 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aScreens)))))) { |
8968 | 0 | FatalError("Error deserializing 'nsTArray'"); |
8969 | 0 | return MsgValueError; |
8970 | 0 | } |
8971 | 0 | // Sentinel = 'aScreens' |
8972 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2322625764)))) { |
8973 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
8974 | 0 | return MsgValueError; |
8975 | 0 | } |
8976 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
8977 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
8978 | 0 | FatalError("Transition error"); |
8979 | 0 | return MsgValueError; |
8980 | 0 | } |
8981 | 0 | if ((!(RecvRefreshScreens(std::move(aScreens))))) { |
8982 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
8983 | 0 | // Error handled in mozilla::ipc::IPCResult |
8984 | 0 | return MsgProcessingError; |
8985 | 0 | } |
8986 | 0 | |
8987 | 0 | return MsgProcessed; |
8988 | 0 | } |
8989 | 0 | case PContent::Msg_PIPCBlobInputStreamConstructor__ID: |
8990 | 0 | { |
8991 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
8992 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
8993 | 0 | } |
8994 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PIPCBlobInputStreamConstructor", OTHER); |
8995 | 0 |
|
8996 | 0 | PickleIterator iter__(msg__); |
8997 | 0 | ActorHandle handle__; |
8998 | 0 | PIPCBlobInputStreamChild* actor; |
8999 | 0 | nsID aID; |
9000 | 0 | uint64_t aSize; |
9001 | 0 |
|
9002 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
9003 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
9004 | 0 | return MsgValueError; |
9005 | 0 | } |
9006 | 0 | // Sentinel = 'actor' |
9007 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
9008 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
9009 | 0 | return MsgValueError; |
9010 | 0 | } |
9011 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aID)))))) { |
9012 | 0 | FatalError("Error deserializing 'nsID'"); |
9013 | 0 | return MsgValueError; |
9014 | 0 | } |
9015 | 0 | // Sentinel = 'aID' |
9016 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) { |
9017 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsID'"); |
9018 | 0 | return MsgValueError; |
9019 | 0 | } |
9020 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aSize)))))) { |
9021 | 0 | FatalError("Error deserializing 'uint64_t'"); |
9022 | 0 | return MsgValueError; |
9023 | 0 | } |
9024 | 0 | // Sentinel = 'aSize' |
9025 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2556665555)))) { |
9026 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
9027 | 0 | return MsgValueError; |
9028 | 0 | } |
9029 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9030 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9031 | 0 | FatalError("Transition error"); |
9032 | 0 | return MsgValueError; |
9033 | 0 | } |
9034 | 0 | actor = AllocPIPCBlobInputStreamChild(aID, aSize); |
9035 | 0 | if ((!(actor))) { |
9036 | 0 | NS_WARNING("Error constructing actor PIPCBlobInputStreamChild"); |
9037 | 0 | return MsgValueError; |
9038 | 0 | } |
9039 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
9040 | 0 | (mManagedPIPCBlobInputStreamChild).PutEntry(actor); |
9041 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
9042 | 0 |
|
9043 | 0 | if ((!(RecvPIPCBlobInputStreamConstructor(actor, aID, aSize)))) { |
9044 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9045 | 0 | // Error handled in mozilla::ipc::IPCResult |
9046 | 0 | return MsgProcessingError; |
9047 | 0 | } |
9048 | 0 | |
9049 | 0 | return MsgProcessed; |
9050 | 0 | } |
9051 | 0 | case PContent::Msg_SetPluginList__ID: |
9052 | 0 | { |
9053 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9054 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9055 | 0 | } |
9056 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetPluginList", OTHER); |
9057 | 0 |
|
9058 | 0 | PickleIterator iter__(msg__); |
9059 | 0 | uint32_t pluginEpoch; |
9060 | 0 | nsTArray<PluginTag> plugins; |
9061 | 0 | nsTArray<FakePluginTag> fakePlugins; |
9062 | 0 |
|
9063 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(pluginEpoch)))))) { |
9064 | 0 | FatalError("Error deserializing 'uint32_t'"); |
9065 | 0 | return MsgValueError; |
9066 | 0 | } |
9067 | 0 | // Sentinel = 'pluginEpoch' |
9068 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2162950827)))) { |
9069 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
9070 | 0 | return MsgValueError; |
9071 | 0 | } |
9072 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(plugins)))))) { |
9073 | 0 | FatalError("Error deserializing 'nsTArray'"); |
9074 | 0 | return MsgValueError; |
9075 | 0 | } |
9076 | 0 | // Sentinel = 'plugins' |
9077 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2745061527)))) { |
9078 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
9079 | 0 | return MsgValueError; |
9080 | 0 | } |
9081 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fakePlugins)))))) { |
9082 | 0 | FatalError("Error deserializing 'nsTArray'"); |
9083 | 0 | return MsgValueError; |
9084 | 0 | } |
9085 | 0 | // Sentinel = 'fakePlugins' |
9086 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3769647974)))) { |
9087 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
9088 | 0 | return MsgValueError; |
9089 | 0 | } |
9090 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9091 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9092 | 0 | FatalError("Transition error"); |
9093 | 0 | return MsgValueError; |
9094 | 0 | } |
9095 | 0 | if ((!(RecvSetPluginList(pluginEpoch, std::move(plugins), std::move(fakePlugins))))) { |
9096 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9097 | 0 | // Error handled in mozilla::ipc::IPCResult |
9098 | 0 | return MsgProcessingError; |
9099 | 0 | } |
9100 | 0 | |
9101 | 0 | return MsgProcessed; |
9102 | 0 | } |
9103 | 0 | case PContent::Msg_ShareCodeCoverageMutex__ID: |
9104 | 0 | { |
9105 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9106 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9107 | 0 | } |
9108 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ShareCodeCoverageMutex", OTHER); |
9109 | 0 |
|
9110 | 0 | PickleIterator iter__(msg__); |
9111 | 0 | CrossProcessMutexHandle handle; |
9112 | 0 |
|
9113 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle)))))) { |
9114 | 0 | FatalError("Error deserializing 'CrossProcessMutexHandle'"); |
9115 | 0 | return MsgValueError; |
9116 | 0 | } |
9117 | 0 | // Sentinel = 'handle' |
9118 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 453975108)))) { |
9119 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CrossProcessMutexHandle'"); |
9120 | 0 | return MsgValueError; |
9121 | 0 | } |
9122 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9123 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9124 | 0 | FatalError("Transition error"); |
9125 | 0 | return MsgValueError; |
9126 | 0 | } |
9127 | 0 | if ((!(RecvShareCodeCoverageMutex(handle)))) { |
9128 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9129 | 0 | // Error handled in mozilla::ipc::IPCResult |
9130 | 0 | return MsgProcessingError; |
9131 | 0 | } |
9132 | 0 | |
9133 | 0 | return MsgProcessed; |
9134 | 0 | } |
9135 | 0 | case PContent::Msg_DumpCodeCoverageCounters__ID: |
9136 | 0 | { |
9137 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9138 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9139 | 0 | } |
9140 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_DumpCodeCoverageCounters", OTHER); |
9141 | 0 |
|
9142 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9143 | 0 | FatalError("Transition error"); |
9144 | 0 | return MsgValueError; |
9145 | 0 | } |
9146 | 0 | int32_t id__ = MSG_ROUTING_CONTROL; |
9147 | 0 |
|
9148 | 0 | int32_t seqno__ = (msg__).seqno(); |
9149 | 0 | WeakPtr<PContentChild> self__ = this; |
9150 | 0 | DumpCodeCoverageCountersResolver resolver = [this, self__, id__, seqno__](const bool& aParam) { |
9151 | 0 | if ((!(self__))) { |
9152 | 0 | NS_WARNING("Not resolving response because actor is dead."); |
9153 | 0 | return; |
9154 | 0 | } |
9155 | 0 | if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) { |
9156 | 0 | NS_WARNING("Not resolving response because actor is destroyed."); |
9157 | 0 | return; |
9158 | 0 | } |
9159 | 0 | bool resolve__ = true; |
9160 | 0 | bool unused; |
9161 | 0 | unused = std::move(aParam); |
9162 | 0 | IPC::Message* reply__ = PContent::Reply_DumpCodeCoverageCounters(id__); |
9163 | 0 | WriteIPDLParam(reply__, self__, resolve__); |
9164 | 0 | // Sentinel = 'resolve__' |
9165 | 0 | (reply__)->WriteSentinel(3997392463); |
9166 | 0 | WriteIPDLParam(reply__, self__, unused); |
9167 | 0 | // Sentinel = 'unused' |
9168 | 0 | (reply__)->WriteSentinel(1885311952); |
9169 | 0 | (reply__)->set_seqno(seqno__); |
9170 | 0 |
|
9171 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9172 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
9173 | 0 | } |
9174 | 0 | bool sendok__ = (GetIPCChannel())->Send(reply__); |
9175 | 0 | if ((!(sendok__))) { |
9176 | 0 | NS_WARNING("Error sending reply"); |
9177 | 0 | } |
9178 | 0 | }; |
9179 | 0 | if ((!(RecvDumpCodeCoverageCounters(std::move(resolver))))) { |
9180 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9181 | 0 | // Error handled in mozilla::ipc::IPCResult |
9182 | 0 | return MsgProcessingError; |
9183 | 0 | } |
9184 | 0 | |
9185 | 0 | return MsgProcessed; |
9186 | 0 | } |
9187 | 0 | case PContent::Msg_ResetCodeCoverageCounters__ID: |
9188 | 0 | { |
9189 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9190 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9191 | 0 | } |
9192 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ResetCodeCoverageCounters", OTHER); |
9193 | 0 |
|
9194 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9195 | 0 | FatalError("Transition error"); |
9196 | 0 | return MsgValueError; |
9197 | 0 | } |
9198 | 0 | int32_t id__ = MSG_ROUTING_CONTROL; |
9199 | 0 |
|
9200 | 0 | int32_t seqno__ = (msg__).seqno(); |
9201 | 0 | WeakPtr<PContentChild> self__ = this; |
9202 | 0 | ResetCodeCoverageCountersResolver resolver = [this, self__, id__, seqno__](const bool& aParam) { |
9203 | 0 | if ((!(self__))) { |
9204 | 0 | NS_WARNING("Not resolving response because actor is dead."); |
9205 | 0 | return; |
9206 | 0 | } |
9207 | 0 | if ((mLivenessState) == (mozilla::ipc::LivenessState::Dead)) { |
9208 | 0 | NS_WARNING("Not resolving response because actor is destroyed."); |
9209 | 0 | return; |
9210 | 0 | } |
9211 | 0 | bool resolve__ = true; |
9212 | 0 | bool unused; |
9213 | 0 | unused = std::move(aParam); |
9214 | 0 | IPC::Message* reply__ = PContent::Reply_ResetCodeCoverageCounters(id__); |
9215 | 0 | WriteIPDLParam(reply__, self__, resolve__); |
9216 | 0 | // Sentinel = 'resolve__' |
9217 | 0 | (reply__)->WriteSentinel(3997392463); |
9218 | 0 | WriteIPDLParam(reply__, self__, unused); |
9219 | 0 | // Sentinel = 'unused' |
9220 | 0 | (reply__)->WriteSentinel(1885311952); |
9221 | 0 | (reply__)->set_seqno(seqno__); |
9222 | 0 |
|
9223 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9224 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
9225 | 0 | } |
9226 | 0 | bool sendok__ = (GetIPCChannel())->Send(reply__); |
9227 | 0 | if ((!(sendok__))) { |
9228 | 0 | NS_WARNING("Error sending reply"); |
9229 | 0 | } |
9230 | 0 | }; |
9231 | 0 | if ((!(RecvResetCodeCoverageCounters(std::move(resolver))))) { |
9232 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9233 | 0 | // Error handled in mozilla::ipc::IPCResult |
9234 | 0 | return MsgProcessingError; |
9235 | 0 | } |
9236 | 0 | |
9237 | 0 | return MsgProcessed; |
9238 | 0 | } |
9239 | 0 | case PContent::Msg_SetInputEventQueueEnabled__ID: |
9240 | 0 | { |
9241 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9242 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9243 | 0 | } |
9244 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SetInputEventQueueEnabled", OTHER); |
9245 | 0 |
|
9246 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9247 | 0 | FatalError("Transition error"); |
9248 | 0 | return MsgValueError; |
9249 | 0 | } |
9250 | 0 | if ((!(RecvSetInputEventQueueEnabled()))) { |
9251 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9252 | 0 | // Error handled in mozilla::ipc::IPCResult |
9253 | 0 | return MsgProcessingError; |
9254 | 0 | } |
9255 | 0 | |
9256 | 0 | return MsgProcessed; |
9257 | 0 | } |
9258 | 0 | case PContent::Msg_FlushInputEventQueue__ID: |
9259 | 0 | { |
9260 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9261 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9262 | 0 | } |
9263 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FlushInputEventQueue", OTHER); |
9264 | 0 |
|
9265 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9266 | 0 | FatalError("Transition error"); |
9267 | 0 | return MsgValueError; |
9268 | 0 | } |
9269 | 0 | if ((!(RecvFlushInputEventQueue()))) { |
9270 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9271 | 0 | // Error handled in mozilla::ipc::IPCResult |
9272 | 0 | return MsgProcessingError; |
9273 | 0 | } |
9274 | 0 | |
9275 | 0 | return MsgProcessed; |
9276 | 0 | } |
9277 | 0 | case PContent::Msg_ResumeInputEventQueue__ID: |
9278 | 0 | { |
9279 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9280 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9281 | 0 | } |
9282 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_ResumeInputEventQueue", OTHER); |
9283 | 0 |
|
9284 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9285 | 0 | FatalError("Transition error"); |
9286 | 0 | return MsgValueError; |
9287 | 0 | } |
9288 | 0 | if ((!(RecvResumeInputEventQueue()))) { |
9289 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9290 | 0 | // Error handled in mozilla::ipc::IPCResult |
9291 | 0 | return MsgProcessingError; |
9292 | 0 | } |
9293 | 0 | |
9294 | 0 | return MsgProcessed; |
9295 | 0 | } |
9296 | 0 | case PContent::Msg_SuspendInputEventQueue__ID: |
9297 | 0 | { |
9298 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9299 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9300 | 0 | } |
9301 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SuspendInputEventQueue", OTHER); |
9302 | 0 |
|
9303 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9304 | 0 | FatalError("Transition error"); |
9305 | 0 | return MsgValueError; |
9306 | 0 | } |
9307 | 0 | if ((!(RecvSuspendInputEventQueue()))) { |
9308 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9309 | 0 | // Error handled in mozilla::ipc::IPCResult |
9310 | 0 | return MsgProcessingError; |
9311 | 0 | } |
9312 | 0 | |
9313 | 0 | return MsgProcessed; |
9314 | 0 | } |
9315 | 0 | case PContent::Msg_AddDynamicScalars__ID: |
9316 | 0 | { |
9317 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9318 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9319 | 0 | } |
9320 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AddDynamicScalars", OTHER); |
9321 | 0 |
|
9322 | 0 | PickleIterator iter__(msg__); |
9323 | 0 | nsTArray<DynamicScalarDefinition> definitions; |
9324 | 0 |
|
9325 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(definitions)))))) { |
9326 | 0 | FatalError("Error deserializing 'nsTArray'"); |
9327 | 0 | return MsgValueError; |
9328 | 0 | } |
9329 | 0 | // Sentinel = 'definitions' |
9330 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1873316345)))) { |
9331 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
9332 | 0 | return MsgValueError; |
9333 | 0 | } |
9334 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9335 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9336 | 0 | FatalError("Transition error"); |
9337 | 0 | return MsgValueError; |
9338 | 0 | } |
9339 | 0 | if ((!(RecvAddDynamicScalars(std::move(definitions))))) { |
9340 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9341 | 0 | // Error handled in mozilla::ipc::IPCResult |
9342 | 0 | return MsgProcessingError; |
9343 | 0 | } |
9344 | 0 | |
9345 | 0 | return MsgProcessed; |
9346 | 0 | } |
9347 | 0 | case PContent::Msg_PClientOpenWindowOpConstructor__ID: |
9348 | 0 | { |
9349 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9350 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9351 | 0 | } |
9352 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_PClientOpenWindowOpConstructor", OTHER); |
9353 | 0 |
|
9354 | 0 | PickleIterator iter__(msg__); |
9355 | 0 | ActorHandle handle__; |
9356 | 0 | PClientOpenWindowOpChild* actor; |
9357 | 0 | ClientOpenWindowArgs aArgs; |
9358 | 0 |
|
9359 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(handle__)))))) { |
9360 | 0 | FatalError("Error deserializing 'ActorHandle'"); |
9361 | 0 | return MsgValueError; |
9362 | 0 | } |
9363 | 0 | // Sentinel = 'actor' |
9364 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
9365 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'"); |
9366 | 0 | return MsgValueError; |
9367 | 0 | } |
9368 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aArgs)))))) { |
9369 | 0 | FatalError("Error deserializing 'ClientOpenWindowArgs'"); |
9370 | 0 | return MsgValueError; |
9371 | 0 | } |
9372 | 0 | // Sentinel = 'aArgs' |
9373 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) { |
9374 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ClientOpenWindowArgs'"); |
9375 | 0 | return MsgValueError; |
9376 | 0 | } |
9377 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9378 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9379 | 0 | FatalError("Transition error"); |
9380 | 0 | return MsgValueError; |
9381 | 0 | } |
9382 | 0 | actor = AllocPClientOpenWindowOpChild(aArgs); |
9383 | 0 | if ((!(actor))) { |
9384 | 0 | NS_WARNING("Error constructing actor PClientOpenWindowOpChild"); |
9385 | 0 | return MsgValueError; |
9386 | 0 | } |
9387 | 0 | (actor)->SetManagerAndRegister(this, (handle__).mId); |
9388 | 0 | (mManagedPClientOpenWindowOpChild).PutEntry(actor); |
9389 | 0 | (actor)->mLivenessState = mozilla::ipc::LivenessState::Start; |
9390 | 0 |
|
9391 | 0 | if ((!(RecvPClientOpenWindowOpConstructor(actor, aArgs)))) { |
9392 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9393 | 0 | // Error handled in mozilla::ipc::IPCResult |
9394 | 0 | return MsgProcessingError; |
9395 | 0 | } |
9396 | 0 | |
9397 | 0 | return MsgProcessed; |
9398 | 0 | } |
9399 | 0 | case PContent::Msg_SaveRecording__ID: |
9400 | 0 | { |
9401 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9402 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9403 | 0 | } |
9404 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_SaveRecording", OTHER); |
9405 | 0 |
|
9406 | 0 | PickleIterator iter__(msg__); |
9407 | 0 | FileDescriptor file; |
9408 | 0 |
|
9409 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(file)))))) { |
9410 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
9411 | 0 | return MsgValueError; |
9412 | 0 | } |
9413 | 0 | // Sentinel = 'file' |
9414 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 224874390)))) { |
9415 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
9416 | 0 | return MsgValueError; |
9417 | 0 | } |
9418 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9419 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9420 | 0 | FatalError("Transition error"); |
9421 | 0 | return MsgValueError; |
9422 | 0 | } |
9423 | 0 | if ((!(RecvSaveRecording(file)))) { |
9424 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9425 | 0 | // Error handled in mozilla::ipc::IPCResult |
9426 | 0 | return MsgProcessingError; |
9427 | 0 | } |
9428 | 0 | |
9429 | 0 | return MsgProcessed; |
9430 | 0 | } |
9431 | 0 | case PContent::Reply_InitStreamFilter__ID: |
9432 | 0 | { |
9433 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9434 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9435 | 0 | } |
9436 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_InitStreamFilter", OTHER); |
9437 | 0 |
|
9438 | 0 | PickleIterator iter__(msg__); |
9439 | 0 | bool resolve__; |
9440 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) { |
9441 | 0 | FatalError("Error deserializing 'resolve__'"); |
9442 | 0 | return MsgValueError; |
9443 | 0 | } |
9444 | 0 | // Sentinel = 'resolve__' |
9445 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) { |
9446 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'"); |
9447 | 0 | return MsgValueError; |
9448 | 0 | } |
9449 | 0 | |
9450 | 0 | UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__); |
9451 | 0 | MessageChannel::CallbackHolder<Endpoint<mozilla::extensions::PStreamFilterChild>>* callback = static_cast<MessageChannel::CallbackHolder<Endpoint<mozilla::extensions::PStreamFilterChild>>*>((untypedCallback).get()); |
9452 | 0 | if ((!(callback))) { |
9453 | 0 | FatalError("Error unknown callback"); |
9454 | 0 | return MsgProcessingError; |
9455 | 0 | } |
9456 | 0 | if (resolve__) { |
9457 | 0 | Endpoint<mozilla::extensions::PStreamFilterChild> aEndpoint; |
9458 | 0 |
|
9459 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aEndpoint)))))) { |
9460 | 0 | FatalError("Error deserializing 'Endpoint<mozilla::extensions::PStreamFilterChild>'"); |
9461 | 0 | return MsgValueError; |
9462 | 0 | } |
9463 | 0 | // Sentinel = 'aEndpoint' |
9464 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2457438235)))) { |
9465 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::extensions::PStreamFilterChild>'"); |
9466 | 0 | return MsgValueError; |
9467 | 0 | } |
9468 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9469 | 0 | (callback)->Resolve(std::move(aEndpoint)); |
9470 | 0 | } |
9471 | 0 | else { |
9472 | 0 | ResponseRejectReason reason__; |
9473 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) { |
9474 | 0 | FatalError("Error deserializing 'reason__'"); |
9475 | 0 | return MsgValueError; |
9476 | 0 | } |
9477 | 0 | // Sentinel = 'reason__' |
9478 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) { |
9479 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'reason__'"); |
9480 | 0 | return MsgValueError; |
9481 | 0 | } |
9482 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9483 | 0 | (callback)->Reject(reason__); |
9484 | 0 | } |
9485 | 0 | return MsgProcessed; |
9486 | 0 | } |
9487 | 0 | case PContent::Reply_PJavaScriptConstructor__ID: |
9488 | 0 | { |
9489 | 0 | return MsgProcessed; |
9490 | 0 | } |
9491 | 0 | case PContent::Reply_PRemoteSpellcheckEngineConstructor__ID: |
9492 | 0 | { |
9493 | 0 | return MsgProcessed; |
9494 | 0 | } |
9495 | 0 | case PContent::Reply_PHalConstructor__ID: |
9496 | 0 | { |
9497 | 0 | return MsgProcessed; |
9498 | 0 | } |
9499 | 0 | case PContent::Reply_PHeapSnapshotTempFileHelperConstructor__ID: |
9500 | 0 | { |
9501 | 0 | return MsgProcessed; |
9502 | 0 | } |
9503 | 0 | case PContent::Reply_PNeckoConstructor__ID: |
9504 | 0 | { |
9505 | 0 | return MsgProcessed; |
9506 | 0 | } |
9507 | 0 | case PContent::Reply_PPrintingConstructor__ID: |
9508 | 0 | { |
9509 | 0 | return MsgProcessed; |
9510 | 0 | } |
9511 | 0 | case PContent::Reply_PChildToParentStreamConstructor__ID: |
9512 | 0 | { |
9513 | 0 | return MsgProcessed; |
9514 | 0 | } |
9515 | 0 | case PContent::Reply_PSpeechSynthesisConstructor__ID: |
9516 | 0 | { |
9517 | 0 | return MsgProcessed; |
9518 | 0 | } |
9519 | 0 | case PContent::Reply_PMediaConstructor__ID: |
9520 | 0 | { |
9521 | 0 | return MsgProcessed; |
9522 | 0 | } |
9523 | 0 | case PContent::Reply_PWebrtcGlobalConstructor__ID: |
9524 | 0 | { |
9525 | 0 | return MsgProcessed; |
9526 | 0 | } |
9527 | 0 | case PContent::Reply_PPresentationConstructor__ID: |
9528 | 0 | { |
9529 | 0 | return MsgProcessed; |
9530 | 0 | } |
9531 | 0 | case PContent::Reply_CreateAudioIPCConnection__ID: |
9532 | 0 | { |
9533 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9534 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9535 | 0 | } |
9536 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateAudioIPCConnection", OTHER); |
9537 | 0 |
|
9538 | 0 | PickleIterator iter__(msg__); |
9539 | 0 | bool resolve__; |
9540 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) { |
9541 | 0 | FatalError("Error deserializing 'resolve__'"); |
9542 | 0 | return MsgValueError; |
9543 | 0 | } |
9544 | 0 | // Sentinel = 'resolve__' |
9545 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) { |
9546 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'"); |
9547 | 0 | return MsgValueError; |
9548 | 0 | } |
9549 | 0 | |
9550 | 0 | UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__); |
9551 | 0 | MessageChannel::CallbackHolder<FileDescriptor>* callback = static_cast<MessageChannel::CallbackHolder<FileDescriptor>*>((untypedCallback).get()); |
9552 | 0 | if ((!(callback))) { |
9553 | 0 | FatalError("Error unknown callback"); |
9554 | 0 | return MsgProcessingError; |
9555 | 0 | } |
9556 | 0 | if (resolve__) { |
9557 | 0 | FileDescriptor fd; |
9558 | 0 |
|
9559 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(fd)))))) { |
9560 | 0 | FatalError("Error deserializing 'FileDescriptor'"); |
9561 | 0 | return MsgValueError; |
9562 | 0 | } |
9563 | 0 | // Sentinel = 'fd' |
9564 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 628535764)))) { |
9565 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor'"); |
9566 | 0 | return MsgValueError; |
9567 | 0 | } |
9568 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9569 | 0 | (callback)->Resolve(std::move(fd)); |
9570 | 0 | } |
9571 | 0 | else { |
9572 | 0 | ResponseRejectReason reason__; |
9573 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) { |
9574 | 0 | FatalError("Error deserializing 'reason__'"); |
9575 | 0 | return MsgValueError; |
9576 | 0 | } |
9577 | 0 | // Sentinel = 'reason__' |
9578 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) { |
9579 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'reason__'"); |
9580 | 0 | return MsgValueError; |
9581 | 0 | } |
9582 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9583 | 0 | (callback)->Reject(reason__); |
9584 | 0 | } |
9585 | 0 | return MsgProcessed; |
9586 | 0 | } |
9587 | 0 | case PContent::Reply_PURLClassifierLocalConstructor__ID: |
9588 | 0 | { |
9589 | 0 | return MsgProcessed; |
9590 | 0 | } |
9591 | 0 | case PContent::Reply_PLoginReputationConstructor__ID: |
9592 | 0 | { |
9593 | 0 | return MsgProcessed; |
9594 | 0 | } |
9595 | 0 | case PContent::Reply_PPSMContentDownloaderConstructor__ID: |
9596 | 0 | { |
9597 | 0 | return MsgProcessed; |
9598 | 0 | } |
9599 | 0 | case PContent::Reply_PExternalHelperAppConstructor__ID: |
9600 | 0 | { |
9601 | 0 | return MsgProcessed; |
9602 | 0 | } |
9603 | 0 | case PContent::Reply_PHandlerServiceConstructor__ID: |
9604 | 0 | { |
9605 | 0 | return MsgProcessed; |
9606 | 0 | } |
9607 | 0 | case PContent::Reply_POfflineCacheUpdateConstructor__ID: |
9608 | 0 | { |
9609 | 0 | return MsgProcessed; |
9610 | 0 | } |
9611 | 0 | case PContent::Reply_PContentPermissionRequestConstructor__ID: |
9612 | 0 | { |
9613 | 0 | return MsgProcessed; |
9614 | 0 | } |
9615 | 0 | case PContent::Reply_CreateWindow__ID: |
9616 | 0 | { |
9617 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9618 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9619 | 0 | } |
9620 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_CreateWindow", OTHER); |
9621 | 0 |
|
9622 | 0 | PickleIterator iter__(msg__); |
9623 | 0 | bool resolve__; |
9624 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) { |
9625 | 0 | FatalError("Error deserializing 'resolve__'"); |
9626 | 0 | return MsgValueError; |
9627 | 0 | } |
9628 | 0 | // Sentinel = 'resolve__' |
9629 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) { |
9630 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'"); |
9631 | 0 | return MsgValueError; |
9632 | 0 | } |
9633 | 0 | |
9634 | 0 | UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__); |
9635 | 0 | MessageChannel::CallbackHolder<CreatedWindowInfo>* callback = static_cast<MessageChannel::CallbackHolder<CreatedWindowInfo>*>((untypedCallback).get()); |
9636 | 0 | if ((!(callback))) { |
9637 | 0 | FatalError("Error unknown callback"); |
9638 | 0 | return MsgProcessingError; |
9639 | 0 | } |
9640 | 0 | if (resolve__) { |
9641 | 0 | CreatedWindowInfo window; |
9642 | 0 |
|
9643 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(window)))))) { |
9644 | 0 | FatalError("Error deserializing 'CreatedWindowInfo'"); |
9645 | 0 | return MsgValueError; |
9646 | 0 | } |
9647 | 0 | // Sentinel = 'window' |
9648 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3032525362)))) { |
9649 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'CreatedWindowInfo'"); |
9650 | 0 | return MsgValueError; |
9651 | 0 | } |
9652 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9653 | 0 | (callback)->Resolve(std::move(window)); |
9654 | 0 | } |
9655 | 0 | else { |
9656 | 0 | ResponseRejectReason reason__; |
9657 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) { |
9658 | 0 | FatalError("Error deserializing 'reason__'"); |
9659 | 0 | return MsgValueError; |
9660 | 0 | } |
9661 | 0 | // Sentinel = 'reason__' |
9662 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) { |
9663 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'reason__'"); |
9664 | 0 | return MsgValueError; |
9665 | 0 | } |
9666 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9667 | 0 | (callback)->Reject(reason__); |
9668 | 0 | } |
9669 | 0 | return MsgProcessed; |
9670 | 0 | } |
9671 | 0 | case PContent::Reply_FirstPartyStorageAccessGrantedForOrigin__ID: |
9672 | 0 | { |
9673 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9674 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9675 | 0 | } |
9676 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_FirstPartyStorageAccessGrantedForOrigin", OTHER); |
9677 | 0 |
|
9678 | 0 | PickleIterator iter__(msg__); |
9679 | 0 | bool resolve__; |
9680 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(resolve__)))))) { |
9681 | 0 | FatalError("Error deserializing 'resolve__'"); |
9682 | 0 | return MsgValueError; |
9683 | 0 | } |
9684 | 0 | // Sentinel = 'resolve__' |
9685 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3997392463)))) { |
9686 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'resolve__'"); |
9687 | 0 | return MsgValueError; |
9688 | 0 | } |
9689 | 0 | |
9690 | 0 | UniquePtr<MessageChannel::UntypedCallbackHolder> untypedCallback = (GetIPCChannel())->PopCallback(msg__); |
9691 | 0 | MessageChannel::CallbackHolder<bool>* callback = static_cast<MessageChannel::CallbackHolder<bool>*>((untypedCallback).get()); |
9692 | 0 | if ((!(callback))) { |
9693 | 0 | FatalError("Error unknown callback"); |
9694 | 0 | return MsgProcessingError; |
9695 | 0 | } |
9696 | 0 | if (resolve__) { |
9697 | 0 | bool unused; |
9698 | 0 |
|
9699 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(unused)))))) { |
9700 | 0 | FatalError("Error deserializing 'bool'"); |
9701 | 0 | return MsgValueError; |
9702 | 0 | } |
9703 | 0 | // Sentinel = 'unused' |
9704 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1885311952)))) { |
9705 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
9706 | 0 | return MsgValueError; |
9707 | 0 | } |
9708 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9709 | 0 | (callback)->Resolve(std::move(unused)); |
9710 | 0 | } |
9711 | 0 | else { |
9712 | 0 | ResponseRejectReason reason__; |
9713 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(reason__)))))) { |
9714 | 0 | FatalError("Error deserializing 'reason__'"); |
9715 | 0 | return MsgValueError; |
9716 | 0 | } |
9717 | 0 | // Sentinel = 'reason__' |
9718 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 913452670)))) { |
9719 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'reason__'"); |
9720 | 0 | return MsgValueError; |
9721 | 0 | } |
9722 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9723 | 0 | (callback)->Reject(reason__); |
9724 | 0 | } |
9725 | 0 | return MsgProcessed; |
9726 | 0 | } |
9727 | 0 | case PContent::Msg_AsyncMessage__ID: |
9728 | 0 | { |
9729 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9730 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9731 | 0 | } |
9732 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_AsyncMessage", OTHER); |
9733 | 0 |
|
9734 | 0 | PickleIterator iter__(msg__); |
9735 | 0 | nsString aMessage; |
9736 | 0 | nsTArray<CpowEntry> aCpows; |
9737 | 0 | Principal aPrincipal; |
9738 | 0 | ClonedMessageData aData; |
9739 | 0 |
|
9740 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aMessage)))))) { |
9741 | 0 | FatalError("Error deserializing 'nsString'"); |
9742 | 0 | return MsgValueError; |
9743 | 0 | } |
9744 | 0 | // Sentinel = 'aMessage' |
9745 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3453110902)))) { |
9746 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
9747 | 0 | return MsgValueError; |
9748 | 0 | } |
9749 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aCpows)))))) { |
9750 | 0 | FatalError("Error deserializing 'nsTArray'"); |
9751 | 0 | return MsgValueError; |
9752 | 0 | } |
9753 | 0 | // Sentinel = 'aCpows' |
9754 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2178221451)))) { |
9755 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
9756 | 0 | return MsgValueError; |
9757 | 0 | } |
9758 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aPrincipal)))))) { |
9759 | 0 | FatalError("Error deserializing 'Principal'"); |
9760 | 0 | return MsgValueError; |
9761 | 0 | } |
9762 | 0 | // Sentinel = 'aPrincipal' |
9763 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4097511)))) { |
9764 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
9765 | 0 | return MsgValueError; |
9766 | 0 | } |
9767 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(aData)))))) { |
9768 | 0 | FatalError("Error deserializing 'ClonedMessageData'"); |
9769 | 0 | return MsgValueError; |
9770 | 0 | } |
9771 | 0 | // Sentinel = 'aData' |
9772 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3285075324)))) { |
9773 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ClonedMessageData'"); |
9774 | 0 | return MsgValueError; |
9775 | 0 | } |
9776 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9777 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9778 | 0 | FatalError("Transition error"); |
9779 | 0 | return MsgValueError; |
9780 | 0 | } |
9781 | 0 | if ((!(RecvAsyncMessage(aMessage, std::move(aCpows), aPrincipal, aData)))) { |
9782 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9783 | 0 | // Error handled in mozilla::ipc::IPCResult |
9784 | 0 | return MsgProcessingError; |
9785 | 0 | } |
9786 | 0 | |
9787 | 0 | return MsgProcessed; |
9788 | 0 | } |
9789 | 0 | case PContent::Msg_NotifyPushSubscriptionModifiedObservers__ID: |
9790 | 0 | { |
9791 | 0 | if (mozilla::ipc::LoggingEnabledFor("PContentChild")) { |
9792 | 0 | mozilla::ipc::LogMessageForProtocol("PContentChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
9793 | 0 | } |
9794 | 0 | AUTO_PROFILER_LABEL("PContent::Msg_NotifyPushSubscriptionModifiedObservers", OTHER); |
9795 | 0 |
|
9796 | 0 | PickleIterator iter__(msg__); |
9797 | 0 | nsCString scope; |
9798 | 0 | Principal principal; |
9799 | 0 |
|
9800 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(scope)))))) { |
9801 | 0 | FatalError("Error deserializing 'nsCString'"); |
9802 | 0 | return MsgValueError; |
9803 | 0 | } |
9804 | 0 | // Sentinel = 'scope' |
9805 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2191984953)))) { |
9806 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
9807 | 0 | return MsgValueError; |
9808 | 0 | } |
9809 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(principal)))))) { |
9810 | 0 | FatalError("Error deserializing 'Principal'"); |
9811 | 0 | return MsgValueError; |
9812 | 0 | } |
9813 | 0 | // Sentinel = 'principal' |
9814 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 732240927)))) { |
9815 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'Principal'"); |
9816 | 0 | return MsgValueError; |
9817 | 0 | } |
9818 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
9819 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
9820 | 0 | FatalError("Transition error"); |
9821 | 0 | return MsgValueError; |
9822 | 0 | } |
9823 | 0 | if ((!(RecvNotifyPushSubscriptionModifiedObservers(scope, principal)))) { |
9824 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
9825 | 0 | // Error handled in mozilla::ipc::IPCResult |
9826 | 0 | return MsgProcessingError; |
9827 | 0 | } |
9828 | 0 | |
9829 | 0 | return MsgProcessed; |
9830 | 0 | } |
9831 | 0 | default: |
9832 | 0 | { |
9833 | 0 | return MsgNotKnown; |
9834 | 0 | } |
9835 | 0 | case SHMEM_CREATED_MESSAGE_TYPE: |
9836 | 0 | { |
9837 | 0 | if ((!(ShmemCreated(msg__)))) { |
9838 | 0 | return MsgPayloadError; |
9839 | 0 | } |
9840 | 0 | return MsgProcessed; |
9841 | 0 | } |
9842 | 0 | case SHMEM_DESTROYED_MESSAGE_TYPE: |
9843 | 0 | { |
9844 | 0 | if ((!(ShmemDestroyed(msg__)))) { |
9845 | 0 | return MsgPayloadError; |
9846 | 0 | } |
9847 | 0 | return MsgProcessed; |
9848 | 0 | } |
9849 | 0 | } |
9850 | 0 | } |
9851 | | |
9852 | | auto PContentChild::OnMessageReceived( |
9853 | | const Message& msg__, |
9854 | | Message*& reply__) -> PContentChild::Result |
9855 | 0 | { |
9856 | 0 | int32_t route__ = (msg__).routing_id(); |
9857 | 0 | if ((MSG_ROUTING_CONTROL) != (route__)) { |
9858 | 0 | IProtocol* routed__ = Lookup(route__); |
9859 | 0 | if ((!(routed__))) { |
9860 | 0 | return MsgRouteError; |
9861 | 0 | } |
9862 | 0 | return (routed__)->OnMessageReceived(msg__, reply__); |
9863 | 0 | } |
9864 | 0 | |
9865 | 0 | return MsgNotKnown; |
9866 | 0 | } |
9867 | | |
9868 | | auto PContentChild::OnCallReceived( |
9869 | | const Message& msg__, |
9870 | | Message*& reply__) -> PContentChild::Result |
9871 | 0 | { |
9872 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
9873 | 0 | return MsgNotKnown; |
9874 | 0 | } |
9875 | | |
9876 | | auto PContentChild::GetProtocolTypeId() -> int32_t |
9877 | 0 | { |
9878 | 0 | return PContentMsgStart; |
9879 | 0 | } |
9880 | | |
9881 | | auto PContentChild::OnChannelClose() -> void |
9882 | 0 | { |
9883 | 0 | DestroySubtree(NormalShutdown); |
9884 | 0 | DeallocSubtree(); |
9885 | 0 | DeallocShmems(); |
9886 | 0 | DeallocPContentChild(); |
9887 | 0 | } |
9888 | | |
9889 | | auto PContentChild::OnChannelError() -> void |
9890 | 0 | { |
9891 | 0 | DestroySubtree(AbnormalShutdown); |
9892 | 0 | DeallocSubtree(); |
9893 | 0 | DeallocShmems(); |
9894 | 0 | DeallocPContentChild(); |
9895 | 0 | } |
9896 | | |
9897 | | auto PContentChild::DestroySubtree(ActorDestroyReason why) -> void |
9898 | 0 | { |
9899 | 0 | ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why); |
9900 | 0 |
|
9901 | 0 | { |
9902 | 0 | // Recursively shutting down PBrowser kids |
9903 | 0 | nsTArray<PBrowserChild*> kids; |
9904 | 0 | // Accumulate kids into a stable structure to iterate over |
9905 | 0 | ManagedPBrowserChild(kids); |
9906 | 0 | for (auto& kid : kids) { |
9907 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9908 | 0 | if ((mManagedPBrowserChild).Contains(kid)) { |
9909 | 0 | (kid)->DestroySubtree(subtreewhy); |
9910 | 0 | } |
9911 | 0 | } |
9912 | 0 | } |
9913 | 0 | { |
9914 | 0 | // Recursively shutting down PClientOpenWindowOp kids |
9915 | 0 | nsTArray<PClientOpenWindowOpChild*> kids; |
9916 | 0 | // Accumulate kids into a stable structure to iterate over |
9917 | 0 | ManagedPClientOpenWindowOpChild(kids); |
9918 | 0 | for (auto& kid : kids) { |
9919 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9920 | 0 | if ((mManagedPClientOpenWindowOpChild).Contains(kid)) { |
9921 | 0 | (kid)->DestroySubtree(subtreewhy); |
9922 | 0 | } |
9923 | 0 | } |
9924 | 0 | } |
9925 | 0 | { |
9926 | 0 | // Recursively shutting down PContentPermissionRequest kids |
9927 | 0 | nsTArray<PContentPermissionRequestChild*> kids; |
9928 | 0 | // Accumulate kids into a stable structure to iterate over |
9929 | 0 | ManagedPContentPermissionRequestChild(kids); |
9930 | 0 | for (auto& kid : kids) { |
9931 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9932 | 0 | if ((mManagedPContentPermissionRequestChild).Contains(kid)) { |
9933 | 0 | (kid)->DestroySubtree(subtreewhy); |
9934 | 0 | } |
9935 | 0 | } |
9936 | 0 | } |
9937 | 0 | { |
9938 | 0 | // Recursively shutting down PCycleCollectWithLogs kids |
9939 | 0 | nsTArray<PCycleCollectWithLogsChild*> kids; |
9940 | 0 | // Accumulate kids into a stable structure to iterate over |
9941 | 0 | ManagedPCycleCollectWithLogsChild(kids); |
9942 | 0 | for (auto& kid : kids) { |
9943 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9944 | 0 | if ((mManagedPCycleCollectWithLogsChild).Contains(kid)) { |
9945 | 0 | (kid)->DestroySubtree(subtreewhy); |
9946 | 0 | } |
9947 | 0 | } |
9948 | 0 | } |
9949 | 0 | { |
9950 | 0 | // Recursively shutting down PPSMContentDownloader kids |
9951 | 0 | nsTArray<PPSMContentDownloaderChild*> kids; |
9952 | 0 | // Accumulate kids into a stable structure to iterate over |
9953 | 0 | ManagedPPSMContentDownloaderChild(kids); |
9954 | 0 | for (auto& kid : kids) { |
9955 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9956 | 0 | if ((mManagedPPSMContentDownloaderChild).Contains(kid)) { |
9957 | 0 | (kid)->DestroySubtree(subtreewhy); |
9958 | 0 | } |
9959 | 0 | } |
9960 | 0 | } |
9961 | 0 | { |
9962 | 0 | // Recursively shutting down PExternalHelperApp kids |
9963 | 0 | nsTArray<PExternalHelperAppChild*> kids; |
9964 | 0 | // Accumulate kids into a stable structure to iterate over |
9965 | 0 | ManagedPExternalHelperAppChild(kids); |
9966 | 0 | for (auto& kid : kids) { |
9967 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9968 | 0 | if ((mManagedPExternalHelperAppChild).Contains(kid)) { |
9969 | 0 | (kid)->DestroySubtree(subtreewhy); |
9970 | 0 | } |
9971 | 0 | } |
9972 | 0 | } |
9973 | 0 | { |
9974 | 0 | // Recursively shutting down PFileDescriptorSet kids |
9975 | 0 | nsTArray<PFileDescriptorSetChild*> kids; |
9976 | 0 | // Accumulate kids into a stable structure to iterate over |
9977 | 0 | ManagedPFileDescriptorSetChild(kids); |
9978 | 0 | for (auto& kid : kids) { |
9979 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9980 | 0 | if ((mManagedPFileDescriptorSetChild).Contains(kid)) { |
9981 | 0 | (kid)->DestroySubtree(subtreewhy); |
9982 | 0 | } |
9983 | 0 | } |
9984 | 0 | } |
9985 | 0 | { |
9986 | 0 | // Recursively shutting down PHal kids |
9987 | 0 | nsTArray<PHalChild*> kids; |
9988 | 0 | // Accumulate kids into a stable structure to iterate over |
9989 | 0 | ManagedPHalChild(kids); |
9990 | 0 | for (auto& kid : kids) { |
9991 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
9992 | 0 | if ((mManagedPHalChild).Contains(kid)) { |
9993 | 0 | (kid)->DestroySubtree(subtreewhy); |
9994 | 0 | } |
9995 | 0 | } |
9996 | 0 | } |
9997 | 0 | { |
9998 | 0 | // Recursively shutting down PHandlerService kids |
9999 | 0 | nsTArray<PHandlerServiceChild*> kids; |
10000 | 0 | // Accumulate kids into a stable structure to iterate over |
10001 | 0 | ManagedPHandlerServiceChild(kids); |
10002 | 0 | for (auto& kid : kids) { |
10003 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10004 | 0 | if ((mManagedPHandlerServiceChild).Contains(kid)) { |
10005 | 0 | (kid)->DestroySubtree(subtreewhy); |
10006 | 0 | } |
10007 | 0 | } |
10008 | 0 | } |
10009 | 0 | { |
10010 | 0 | // Recursively shutting down PHeapSnapshotTempFileHelper kids |
10011 | 0 | nsTArray<PHeapSnapshotTempFileHelperChild*> kids; |
10012 | 0 | // Accumulate kids into a stable structure to iterate over |
10013 | 0 | ManagedPHeapSnapshotTempFileHelperChild(kids); |
10014 | 0 | for (auto& kid : kids) { |
10015 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10016 | 0 | if ((mManagedPHeapSnapshotTempFileHelperChild).Contains(kid)) { |
10017 | 0 | (kid)->DestroySubtree(subtreewhy); |
10018 | 0 | } |
10019 | 0 | } |
10020 | 0 | } |
10021 | 0 | { |
10022 | 0 | // Recursively shutting down PIPCBlobInputStream kids |
10023 | 0 | nsTArray<PIPCBlobInputStreamChild*> kids; |
10024 | 0 | // Accumulate kids into a stable structure to iterate over |
10025 | 0 | ManagedPIPCBlobInputStreamChild(kids); |
10026 | 0 | for (auto& kid : kids) { |
10027 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10028 | 0 | if ((mManagedPIPCBlobInputStreamChild).Contains(kid)) { |
10029 | 0 | (kid)->DestroySubtree(subtreewhy); |
10030 | 0 | } |
10031 | 0 | } |
10032 | 0 | } |
10033 | 0 | { |
10034 | 0 | // Recursively shutting down PMedia kids |
10035 | 0 | nsTArray<PMediaChild*> kids; |
10036 | 0 | // Accumulate kids into a stable structure to iterate over |
10037 | 0 | ManagedPMediaChild(kids); |
10038 | 0 | for (auto& kid : kids) { |
10039 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10040 | 0 | if ((mManagedPMediaChild).Contains(kid)) { |
10041 | 0 | (kid)->DestroySubtree(subtreewhy); |
10042 | 0 | } |
10043 | 0 | } |
10044 | 0 | } |
10045 | 0 | { |
10046 | 0 | // Recursively shutting down PNecko kids |
10047 | 0 | nsTArray<PNeckoChild*> kids; |
10048 | 0 | // Accumulate kids into a stable structure to iterate over |
10049 | 0 | ManagedPNeckoChild(kids); |
10050 | 0 | for (auto& kid : kids) { |
10051 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10052 | 0 | if ((mManagedPNeckoChild).Contains(kid)) { |
10053 | 0 | (kid)->DestroySubtree(subtreewhy); |
10054 | 0 | } |
10055 | 0 | } |
10056 | 0 | } |
10057 | 0 | { |
10058 | 0 | // Recursively shutting down POfflineCacheUpdate kids |
10059 | 0 | nsTArray<POfflineCacheUpdateChild*> kids; |
10060 | 0 | // Accumulate kids into a stable structure to iterate over |
10061 | 0 | ManagedPOfflineCacheUpdateChild(kids); |
10062 | 0 | for (auto& kid : kids) { |
10063 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10064 | 0 | if ((mManagedPOfflineCacheUpdateChild).Contains(kid)) { |
10065 | 0 | (kid)->DestroySubtree(subtreewhy); |
10066 | 0 | } |
10067 | 0 | } |
10068 | 0 | } |
10069 | 0 | { |
10070 | 0 | // Recursively shutting down PPrinting kids |
10071 | 0 | nsTArray<PPrintingChild*> kids; |
10072 | 0 | // Accumulate kids into a stable structure to iterate over |
10073 | 0 | ManagedPPrintingChild(kids); |
10074 | 0 | for (auto& kid : kids) { |
10075 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10076 | 0 | if ((mManagedPPrintingChild).Contains(kid)) { |
10077 | 0 | (kid)->DestroySubtree(subtreewhy); |
10078 | 0 | } |
10079 | 0 | } |
10080 | 0 | } |
10081 | 0 | { |
10082 | 0 | // Recursively shutting down PChildToParentStream kids |
10083 | 0 | nsTArray<PChildToParentStreamChild*> kids; |
10084 | 0 | // Accumulate kids into a stable structure to iterate over |
10085 | 0 | ManagedPChildToParentStreamChild(kids); |
10086 | 0 | for (auto& kid : kids) { |
10087 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10088 | 0 | if ((mManagedPChildToParentStreamChild).Contains(kid)) { |
10089 | 0 | (kid)->DestroySubtree(subtreewhy); |
10090 | 0 | } |
10091 | 0 | } |
10092 | 0 | } |
10093 | 0 | { |
10094 | 0 | // Recursively shutting down PParentToChildStream kids |
10095 | 0 | nsTArray<PParentToChildStreamChild*> kids; |
10096 | 0 | // Accumulate kids into a stable structure to iterate over |
10097 | 0 | ManagedPParentToChildStreamChild(kids); |
10098 | 0 | for (auto& kid : kids) { |
10099 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10100 | 0 | if ((mManagedPParentToChildStreamChild).Contains(kid)) { |
10101 | 0 | (kid)->DestroySubtree(subtreewhy); |
10102 | 0 | } |
10103 | 0 | } |
10104 | 0 | } |
10105 | 0 | { |
10106 | 0 | // Recursively shutting down PSpeechSynthesis kids |
10107 | 0 | nsTArray<PSpeechSynthesisChild*> kids; |
10108 | 0 | // Accumulate kids into a stable structure to iterate over |
10109 | 0 | ManagedPSpeechSynthesisChild(kids); |
10110 | 0 | for (auto& kid : kids) { |
10111 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10112 | 0 | if ((mManagedPSpeechSynthesisChild).Contains(kid)) { |
10113 | 0 | (kid)->DestroySubtree(subtreewhy); |
10114 | 0 | } |
10115 | 0 | } |
10116 | 0 | } |
10117 | 0 | { |
10118 | 0 | // Recursively shutting down PTestShell kids |
10119 | 0 | nsTArray<PTestShellChild*> kids; |
10120 | 0 | // Accumulate kids into a stable structure to iterate over |
10121 | 0 | ManagedPTestShellChild(kids); |
10122 | 0 | for (auto& kid : kids) { |
10123 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10124 | 0 | if ((mManagedPTestShellChild).Contains(kid)) { |
10125 | 0 | (kid)->DestroySubtree(subtreewhy); |
10126 | 0 | } |
10127 | 0 | } |
10128 | 0 | } |
10129 | 0 | { |
10130 | 0 | // Recursively shutting down PJavaScript kids |
10131 | 0 | nsTArray<PJavaScriptChild*> kids; |
10132 | 0 | // Accumulate kids into a stable structure to iterate over |
10133 | 0 | ManagedPJavaScriptChild(kids); |
10134 | 0 | for (auto& kid : kids) { |
10135 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10136 | 0 | if ((mManagedPJavaScriptChild).Contains(kid)) { |
10137 | 0 | (kid)->DestroySubtree(subtreewhy); |
10138 | 0 | } |
10139 | 0 | } |
10140 | 0 | } |
10141 | 0 | { |
10142 | 0 | // Recursively shutting down PRemoteSpellcheckEngine kids |
10143 | 0 | nsTArray<PRemoteSpellcheckEngineChild*> kids; |
10144 | 0 | // Accumulate kids into a stable structure to iterate over |
10145 | 0 | ManagedPRemoteSpellcheckEngineChild(kids); |
10146 | 0 | for (auto& kid : kids) { |
10147 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10148 | 0 | if ((mManagedPRemoteSpellcheckEngineChild).Contains(kid)) { |
10149 | 0 | (kid)->DestroySubtree(subtreewhy); |
10150 | 0 | } |
10151 | 0 | } |
10152 | 0 | } |
10153 | 0 | { |
10154 | 0 | // Recursively shutting down PWebBrowserPersistDocument kids |
10155 | 0 | nsTArray<PWebBrowserPersistDocumentChild*> kids; |
10156 | 0 | // Accumulate kids into a stable structure to iterate over |
10157 | 0 | ManagedPWebBrowserPersistDocumentChild(kids); |
10158 | 0 | for (auto& kid : kids) { |
10159 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10160 | 0 | if ((mManagedPWebBrowserPersistDocumentChild).Contains(kid)) { |
10161 | 0 | (kid)->DestroySubtree(subtreewhy); |
10162 | 0 | } |
10163 | 0 | } |
10164 | 0 | } |
10165 | 0 | { |
10166 | 0 | // Recursively shutting down PWebrtcGlobal kids |
10167 | 0 | nsTArray<PWebrtcGlobalChild*> kids; |
10168 | 0 | // Accumulate kids into a stable structure to iterate over |
10169 | 0 | ManagedPWebrtcGlobalChild(kids); |
10170 | 0 | for (auto& kid : kids) { |
10171 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10172 | 0 | if ((mManagedPWebrtcGlobalChild).Contains(kid)) { |
10173 | 0 | (kid)->DestroySubtree(subtreewhy); |
10174 | 0 | } |
10175 | 0 | } |
10176 | 0 | } |
10177 | 0 | { |
10178 | 0 | // Recursively shutting down PPresentation kids |
10179 | 0 | nsTArray<PPresentationChild*> kids; |
10180 | 0 | // Accumulate kids into a stable structure to iterate over |
10181 | 0 | ManagedPPresentationChild(kids); |
10182 | 0 | for (auto& kid : kids) { |
10183 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10184 | 0 | if ((mManagedPPresentationChild).Contains(kid)) { |
10185 | 0 | (kid)->DestroySubtree(subtreewhy); |
10186 | 0 | } |
10187 | 0 | } |
10188 | 0 | } |
10189 | 0 | { |
10190 | 0 | // Recursively shutting down PURLClassifier kids |
10191 | 0 | nsTArray<PURLClassifierChild*> kids; |
10192 | 0 | // Accumulate kids into a stable structure to iterate over |
10193 | 0 | ManagedPURLClassifierChild(kids); |
10194 | 0 | for (auto& kid : kids) { |
10195 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10196 | 0 | if ((mManagedPURLClassifierChild).Contains(kid)) { |
10197 | 0 | (kid)->DestroySubtree(subtreewhy); |
10198 | 0 | } |
10199 | 0 | } |
10200 | 0 | } |
10201 | 0 | { |
10202 | 0 | // Recursively shutting down PURLClassifierLocal kids |
10203 | 0 | nsTArray<PURLClassifierLocalChild*> kids; |
10204 | 0 | // Accumulate kids into a stable structure to iterate over |
10205 | 0 | ManagedPURLClassifierLocalChild(kids); |
10206 | 0 | for (auto& kid : kids) { |
10207 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10208 | 0 | if ((mManagedPURLClassifierLocalChild).Contains(kid)) { |
10209 | 0 | (kid)->DestroySubtree(subtreewhy); |
10210 | 0 | } |
10211 | 0 | } |
10212 | 0 | } |
10213 | 0 | { |
10214 | 0 | // Recursively shutting down PScriptCache kids |
10215 | 0 | nsTArray<PScriptCacheChild*> kids; |
10216 | 0 | // Accumulate kids into a stable structure to iterate over |
10217 | 0 | ManagedPScriptCacheChild(kids); |
10218 | 0 | for (auto& kid : kids) { |
10219 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10220 | 0 | if ((mManagedPScriptCacheChild).Contains(kid)) { |
10221 | 0 | (kid)->DestroySubtree(subtreewhy); |
10222 | 0 | } |
10223 | 0 | } |
10224 | 0 | } |
10225 | 0 | { |
10226 | 0 | // Recursively shutting down PLoginReputation kids |
10227 | 0 | nsTArray<PLoginReputationChild*> kids; |
10228 | 0 | // Accumulate kids into a stable structure to iterate over |
10229 | 0 | ManagedPLoginReputationChild(kids); |
10230 | 0 | for (auto& kid : kids) { |
10231 | 0 | // Guarding against a child removing a sibling from the list during the iteration. |
10232 | 0 | if ((mManagedPLoginReputationChild).Contains(kid)) { |
10233 | 0 | (kid)->DestroySubtree(subtreewhy); |
10234 | 0 | } |
10235 | 0 | } |
10236 | 0 | } |
10237 | 0 |
|
10238 | 0 | // Reject owning pending responses. |
10239 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
10240 | 0 |
|
10241 | 0 | // Finally, destroy "us". |
10242 | 0 | ActorDestroy(why); |
10243 | 0 | } |
10244 | | |
10245 | | auto PContentChild::DeallocSubtree() -> void |
10246 | 0 | { |
10247 | 0 | { |
10248 | 0 | // Recursively deleting PBrowser kids |
10249 | 0 | for (auto iter = (mManagedPBrowserChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10250 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10251 | 0 | } |
10252 | 0 |
|
10253 | 0 | for (auto iter = (mManagedPBrowserChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10254 | 0 | DeallocPBrowserChild(((iter).Get())->GetKey()); |
10255 | 0 | } |
10256 | 0 | (mManagedPBrowserChild).Clear(); |
10257 | 0 | } |
10258 | 0 | { |
10259 | 0 | // Recursively deleting PClientOpenWindowOp kids |
10260 | 0 | for (auto iter = (mManagedPClientOpenWindowOpChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10261 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10262 | 0 | } |
10263 | 0 |
|
10264 | 0 | for (auto iter = (mManagedPClientOpenWindowOpChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10265 | 0 | DeallocPClientOpenWindowOpChild(((iter).Get())->GetKey()); |
10266 | 0 | } |
10267 | 0 | (mManagedPClientOpenWindowOpChild).Clear(); |
10268 | 0 | } |
10269 | 0 | { |
10270 | 0 | // Recursively deleting PContentPermissionRequest kids |
10271 | 0 | for (auto iter = (mManagedPContentPermissionRequestChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10272 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10273 | 0 | } |
10274 | 0 |
|
10275 | 0 | for (auto iter = (mManagedPContentPermissionRequestChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10276 | 0 | DeallocPContentPermissionRequestChild(((iter).Get())->GetKey()); |
10277 | 0 | } |
10278 | 0 | (mManagedPContentPermissionRequestChild).Clear(); |
10279 | 0 | } |
10280 | 0 | { |
10281 | 0 | // Recursively deleting PCycleCollectWithLogs kids |
10282 | 0 | for (auto iter = (mManagedPCycleCollectWithLogsChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10283 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10284 | 0 | } |
10285 | 0 |
|
10286 | 0 | for (auto iter = (mManagedPCycleCollectWithLogsChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10287 | 0 | DeallocPCycleCollectWithLogsChild(((iter).Get())->GetKey()); |
10288 | 0 | } |
10289 | 0 | (mManagedPCycleCollectWithLogsChild).Clear(); |
10290 | 0 | } |
10291 | 0 | { |
10292 | 0 | // Recursively deleting PPSMContentDownloader kids |
10293 | 0 | for (auto iter = (mManagedPPSMContentDownloaderChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10294 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10295 | 0 | } |
10296 | 0 |
|
10297 | 0 | for (auto iter = (mManagedPPSMContentDownloaderChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10298 | 0 | DeallocPPSMContentDownloaderChild(((iter).Get())->GetKey()); |
10299 | 0 | } |
10300 | 0 | (mManagedPPSMContentDownloaderChild).Clear(); |
10301 | 0 | } |
10302 | 0 | { |
10303 | 0 | // Recursively deleting PExternalHelperApp kids |
10304 | 0 | for (auto iter = (mManagedPExternalHelperAppChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10305 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10306 | 0 | } |
10307 | 0 |
|
10308 | 0 | for (auto iter = (mManagedPExternalHelperAppChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10309 | 0 | DeallocPExternalHelperAppChild(((iter).Get())->GetKey()); |
10310 | 0 | } |
10311 | 0 | (mManagedPExternalHelperAppChild).Clear(); |
10312 | 0 | } |
10313 | 0 | { |
10314 | 0 | // Recursively deleting PFileDescriptorSet kids |
10315 | 0 | for (auto iter = (mManagedPFileDescriptorSetChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10316 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10317 | 0 | } |
10318 | 0 |
|
10319 | 0 | for (auto iter = (mManagedPFileDescriptorSetChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10320 | 0 | DeallocPFileDescriptorSetChild(((iter).Get())->GetKey()); |
10321 | 0 | } |
10322 | 0 | (mManagedPFileDescriptorSetChild).Clear(); |
10323 | 0 | } |
10324 | 0 | { |
10325 | 0 | // Recursively deleting PHal kids |
10326 | 0 | for (auto iter = (mManagedPHalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10327 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10328 | 0 | } |
10329 | 0 |
|
10330 | 0 | for (auto iter = (mManagedPHalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10331 | 0 | DeallocPHalChild(((iter).Get())->GetKey()); |
10332 | 0 | } |
10333 | 0 | (mManagedPHalChild).Clear(); |
10334 | 0 | } |
10335 | 0 | { |
10336 | 0 | // Recursively deleting PHandlerService kids |
10337 | 0 | for (auto iter = (mManagedPHandlerServiceChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10338 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10339 | 0 | } |
10340 | 0 |
|
10341 | 0 | for (auto iter = (mManagedPHandlerServiceChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10342 | 0 | DeallocPHandlerServiceChild(((iter).Get())->GetKey()); |
10343 | 0 | } |
10344 | 0 | (mManagedPHandlerServiceChild).Clear(); |
10345 | 0 | } |
10346 | 0 | { |
10347 | 0 | // Recursively deleting PHeapSnapshotTempFileHelper kids |
10348 | 0 | for (auto iter = (mManagedPHeapSnapshotTempFileHelperChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10349 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10350 | 0 | } |
10351 | 0 |
|
10352 | 0 | for (auto iter = (mManagedPHeapSnapshotTempFileHelperChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10353 | 0 | DeallocPHeapSnapshotTempFileHelperChild(((iter).Get())->GetKey()); |
10354 | 0 | } |
10355 | 0 | (mManagedPHeapSnapshotTempFileHelperChild).Clear(); |
10356 | 0 | } |
10357 | 0 | { |
10358 | 0 | // Recursively deleting PIPCBlobInputStream kids |
10359 | 0 | for (auto iter = (mManagedPIPCBlobInputStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10360 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10361 | 0 | } |
10362 | 0 |
|
10363 | 0 | for (auto iter = (mManagedPIPCBlobInputStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10364 | 0 | DeallocPIPCBlobInputStreamChild(((iter).Get())->GetKey()); |
10365 | 0 | } |
10366 | 0 | (mManagedPIPCBlobInputStreamChild).Clear(); |
10367 | 0 | } |
10368 | 0 | { |
10369 | 0 | // Recursively deleting PMedia kids |
10370 | 0 | for (auto iter = (mManagedPMediaChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10371 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10372 | 0 | } |
10373 | 0 |
|
10374 | 0 | for (auto iter = (mManagedPMediaChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10375 | 0 | DeallocPMediaChild(((iter).Get())->GetKey()); |
10376 | 0 | } |
10377 | 0 | (mManagedPMediaChild).Clear(); |
10378 | 0 | } |
10379 | 0 | { |
10380 | 0 | // Recursively deleting PNecko kids |
10381 | 0 | for (auto iter = (mManagedPNeckoChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10382 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10383 | 0 | } |
10384 | 0 |
|
10385 | 0 | for (auto iter = (mManagedPNeckoChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10386 | 0 | DeallocPNeckoChild(((iter).Get())->GetKey()); |
10387 | 0 | } |
10388 | 0 | (mManagedPNeckoChild).Clear(); |
10389 | 0 | } |
10390 | 0 | { |
10391 | 0 | // Recursively deleting POfflineCacheUpdate kids |
10392 | 0 | for (auto iter = (mManagedPOfflineCacheUpdateChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10393 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10394 | 0 | } |
10395 | 0 |
|
10396 | 0 | for (auto iter = (mManagedPOfflineCacheUpdateChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10397 | 0 | DeallocPOfflineCacheUpdateChild(((iter).Get())->GetKey()); |
10398 | 0 | } |
10399 | 0 | (mManagedPOfflineCacheUpdateChild).Clear(); |
10400 | 0 | } |
10401 | 0 | { |
10402 | 0 | // Recursively deleting PPrinting kids |
10403 | 0 | for (auto iter = (mManagedPPrintingChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10404 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10405 | 0 | } |
10406 | 0 |
|
10407 | 0 | for (auto iter = (mManagedPPrintingChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10408 | 0 | DeallocPPrintingChild(((iter).Get())->GetKey()); |
10409 | 0 | } |
10410 | 0 | (mManagedPPrintingChild).Clear(); |
10411 | 0 | } |
10412 | 0 | { |
10413 | 0 | // Recursively deleting PChildToParentStream kids |
10414 | 0 | for (auto iter = (mManagedPChildToParentStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10415 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10416 | 0 | } |
10417 | 0 |
|
10418 | 0 | for (auto iter = (mManagedPChildToParentStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10419 | 0 | DeallocPChildToParentStreamChild(((iter).Get())->GetKey()); |
10420 | 0 | } |
10421 | 0 | (mManagedPChildToParentStreamChild).Clear(); |
10422 | 0 | } |
10423 | 0 | { |
10424 | 0 | // Recursively deleting PParentToChildStream kids |
10425 | 0 | for (auto iter = (mManagedPParentToChildStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10426 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10427 | 0 | } |
10428 | 0 |
|
10429 | 0 | for (auto iter = (mManagedPParentToChildStreamChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10430 | 0 | DeallocPParentToChildStreamChild(((iter).Get())->GetKey()); |
10431 | 0 | } |
10432 | 0 | (mManagedPParentToChildStreamChild).Clear(); |
10433 | 0 | } |
10434 | 0 | { |
10435 | 0 | // Recursively deleting PSpeechSynthesis kids |
10436 | 0 | for (auto iter = (mManagedPSpeechSynthesisChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10437 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10438 | 0 | } |
10439 | 0 |
|
10440 | 0 | for (auto iter = (mManagedPSpeechSynthesisChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10441 | 0 | DeallocPSpeechSynthesisChild(((iter).Get())->GetKey()); |
10442 | 0 | } |
10443 | 0 | (mManagedPSpeechSynthesisChild).Clear(); |
10444 | 0 | } |
10445 | 0 | { |
10446 | 0 | // Recursively deleting PTestShell kids |
10447 | 0 | for (auto iter = (mManagedPTestShellChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10448 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10449 | 0 | } |
10450 | 0 |
|
10451 | 0 | for (auto iter = (mManagedPTestShellChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10452 | 0 | DeallocPTestShellChild(((iter).Get())->GetKey()); |
10453 | 0 | } |
10454 | 0 | (mManagedPTestShellChild).Clear(); |
10455 | 0 | } |
10456 | 0 | { |
10457 | 0 | // Recursively deleting PJavaScript kids |
10458 | 0 | for (auto iter = (mManagedPJavaScriptChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10459 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10460 | 0 | } |
10461 | 0 |
|
10462 | 0 | for (auto iter = (mManagedPJavaScriptChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10463 | 0 | DeallocPJavaScriptChild(((iter).Get())->GetKey()); |
10464 | 0 | } |
10465 | 0 | (mManagedPJavaScriptChild).Clear(); |
10466 | 0 | } |
10467 | 0 | { |
10468 | 0 | // Recursively deleting PRemoteSpellcheckEngine kids |
10469 | 0 | for (auto iter = (mManagedPRemoteSpellcheckEngineChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10470 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10471 | 0 | } |
10472 | 0 |
|
10473 | 0 | for (auto iter = (mManagedPRemoteSpellcheckEngineChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10474 | 0 | DeallocPRemoteSpellcheckEngineChild(((iter).Get())->GetKey()); |
10475 | 0 | } |
10476 | 0 | (mManagedPRemoteSpellcheckEngineChild).Clear(); |
10477 | 0 | } |
10478 | 0 | { |
10479 | 0 | // Recursively deleting PWebBrowserPersistDocument kids |
10480 | 0 | for (auto iter = (mManagedPWebBrowserPersistDocumentChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10481 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10482 | 0 | } |
10483 | 0 |
|
10484 | 0 | for (auto iter = (mManagedPWebBrowserPersistDocumentChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10485 | 0 | DeallocPWebBrowserPersistDocumentChild(((iter).Get())->GetKey()); |
10486 | 0 | } |
10487 | 0 | (mManagedPWebBrowserPersistDocumentChild).Clear(); |
10488 | 0 | } |
10489 | 0 | { |
10490 | 0 | // Recursively deleting PWebrtcGlobal kids |
10491 | 0 | for (auto iter = (mManagedPWebrtcGlobalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10492 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10493 | 0 | } |
10494 | 0 |
|
10495 | 0 | for (auto iter = (mManagedPWebrtcGlobalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10496 | 0 | DeallocPWebrtcGlobalChild(((iter).Get())->GetKey()); |
10497 | 0 | } |
10498 | 0 | (mManagedPWebrtcGlobalChild).Clear(); |
10499 | 0 | } |
10500 | 0 | { |
10501 | 0 | // Recursively deleting PPresentation kids |
10502 | 0 | for (auto iter = (mManagedPPresentationChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10503 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10504 | 0 | } |
10505 | 0 |
|
10506 | 0 | for (auto iter = (mManagedPPresentationChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10507 | 0 | DeallocPPresentationChild(((iter).Get())->GetKey()); |
10508 | 0 | } |
10509 | 0 | (mManagedPPresentationChild).Clear(); |
10510 | 0 | } |
10511 | 0 | { |
10512 | 0 | // Recursively deleting PURLClassifier kids |
10513 | 0 | for (auto iter = (mManagedPURLClassifierChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10514 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10515 | 0 | } |
10516 | 0 |
|
10517 | 0 | for (auto iter = (mManagedPURLClassifierChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10518 | 0 | DeallocPURLClassifierChild(((iter).Get())->GetKey()); |
10519 | 0 | } |
10520 | 0 | (mManagedPURLClassifierChild).Clear(); |
10521 | 0 | } |
10522 | 0 | { |
10523 | 0 | // Recursively deleting PURLClassifierLocal kids |
10524 | 0 | for (auto iter = (mManagedPURLClassifierLocalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10525 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10526 | 0 | } |
10527 | 0 |
|
10528 | 0 | for (auto iter = (mManagedPURLClassifierLocalChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10529 | 0 | DeallocPURLClassifierLocalChild(((iter).Get())->GetKey()); |
10530 | 0 | } |
10531 | 0 | (mManagedPURLClassifierLocalChild).Clear(); |
10532 | 0 | } |
10533 | 0 | { |
10534 | 0 | // Recursively deleting PScriptCache kids |
10535 | 0 | for (auto iter = (mManagedPScriptCacheChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10536 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10537 | 0 | } |
10538 | 0 |
|
10539 | 0 | for (auto iter = (mManagedPScriptCacheChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10540 | 0 | DeallocPScriptCacheChild(((iter).Get())->GetKey()); |
10541 | 0 | } |
10542 | 0 | (mManagedPScriptCacheChild).Clear(); |
10543 | 0 | } |
10544 | 0 | { |
10545 | 0 | // Recursively deleting PLoginReputation kids |
10546 | 0 | for (auto iter = (mManagedPLoginReputationChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10547 | 0 | (((iter).Get())->GetKey())->DeallocSubtree(); |
10548 | 0 | } |
10549 | 0 |
|
10550 | 0 | for (auto iter = (mManagedPLoginReputationChild).Iter(); (!((iter).Done())); (iter).Next()) { |
10551 | 0 | DeallocPLoginReputationChild(((iter).Get())->GetKey()); |
10552 | 0 | } |
10553 | 0 | (mManagedPLoginReputationChild).Clear(); |
10554 | 0 | } |
10555 | 0 | } |
10556 | | |
10557 | | auto PContentChild::DeallocPContentChild() -> void |
10558 | 0 | { |
10559 | 0 | } |
10560 | | |
10561 | | |
10562 | | |
10563 | | } // namespace dom |
10564 | | } // namespace mozilla |
10565 | | namespace mozilla { |
10566 | | namespace ipc { |
10567 | | auto IPDLParamTraits<mozilla::dom::PContentChild>::Write( |
10568 | | IPC::Message* aMsg, |
10569 | | mozilla::ipc::IProtocol* aActor, |
10570 | | const paramType& aVar) -> void |
10571 | 0 | { |
10572 | 0 | int32_t id; |
10573 | 0 | if ((!(aVar))) { |
10574 | 0 | id = 0; |
10575 | 0 | } |
10576 | 0 | else { |
10577 | 0 | id = (aVar)->Id(); |
10578 | 0 | if ((1) == (id)) { |
10579 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
10580 | 0 | } |
10581 | 0 | } |
10582 | 0 | WriteIPDLParam(aMsg, aActor, id); |
10583 | 0 | } |
10584 | | |
10585 | | auto IPDLParamTraits<mozilla::dom::PContentChild>::Read( |
10586 | | const IPC::Message* aMsg, |
10587 | | PickleIterator* aIter, |
10588 | | mozilla::ipc::IProtocol* aActor, |
10589 | | paramType* aVar) -> bool |
10590 | 0 | { |
10591 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PContent", PContentMsgStart); |
10592 | 0 | if ((actor).isNothing()) { |
10593 | 0 | return false; |
10594 | 0 | } |
10595 | 0 | |
10596 | 0 | (*(aVar)) = static_cast<mozilla::dom::PContentChild*>((actor).value()); |
10597 | 0 | return true; |
10598 | 0 | } |
10599 | | |
10600 | | } // namespace ipc |
10601 | | } // namespace mozilla |