LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginModuleChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 856 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 53 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Automatically generated by ipdlc.
       3             : // Edit at your own risk
       4             : //
       5             : 
       6             : 
       7             : #include "mozilla/plugins/PPluginModuleChild.h"
       8             : #include "mozilla/plugins/PluginMessageUtils.h"
       9             : #include "nsID.h"
      10             : #ifdef MOZ_CRASHREPORTER
      11             : #  include "nsXULAppAPI.h"
      12             : #endif
      13             : 
      14             : #include "mozilla/plugins/PPluginInstanceChild.h"
      15             : #include "mozilla/plugins/PPluginScriptableObjectChild.h"
      16             : #include "mozilla/dom/PContentChild.h"
      17             : #include "mozilla/PProfilerChild.h"
      18             : 
      19             : #include "nsIFile.h"
      20             : #include "GeckoProfiler.h"
      21             : 
      22             : namespace mozilla {
      23             : namespace plugins {
      24             : 
      25             : 
      26           0 : auto PPluginModuleChild::RecvPPluginInstanceConstructor(
      27             :         PPluginInstanceChild* actor,
      28             :         const nsCString& aMimeType,
      29             :         nsTArray<nsCString>&& aNames,
      30             :         nsTArray<nsCString>&& aValues) -> mozilla::ipc::IPCResult
      31             : {
      32           0 :     return IPC_OK();
      33             : }
      34             : 
      35           0 : auto PPluginModuleChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      36             : {
      37           0 : }
      38             : 
      39           0 : auto PPluginModuleChild::ProcessingError(
      40             :         Result aCode,
      41             :         const char* aReason) -> void
      42             : {
      43           0 : }
      44             : 
      45           0 : auto PPluginModuleChild::ShouldContinueFromReplyTimeout() -> bool
      46             : {
      47           0 :     return true;
      48             : }
      49             : 
      50           0 : auto PPluginModuleChild::EnteredCxxStack() -> void
      51             : {
      52           0 : }
      53             : 
      54           0 : auto PPluginModuleChild::ExitedCxxStack() -> void
      55             : {
      56           0 : }
      57             : 
      58           0 : auto PPluginModuleChild::EnteredCall() -> void
      59             : {
      60           0 : }
      61             : 
      62           0 : auto PPluginModuleChild::ExitedCall() -> void
      63             : {
      64           0 : }
      65             : 
      66           0 : MOZ_IMPLICIT PPluginModuleChild::PPluginModuleChild() :
      67             :     mozilla::ipc::IToplevelProtocol(PPluginModuleMsgStart, mozilla::ipc::ChildSide),
      68             :     mChannel("PPluginModuleChild", ALLOW_THIS_IN_INITIALIZER_LIST(this)),
      69           0 :     mState(PPluginModule::__Start)
      70             : {
      71           0 :     MOZ_COUNT_CTOR(PPluginModuleChild);
      72           0 : }
      73             : 
      74           0 : PPluginModuleChild::~PPluginModuleChild()
      75             : {
      76           0 :     MOZ_COUNT_DTOR(PPluginModuleChild);
      77           0 : }
      78             : 
      79           0 : auto PPluginModuleChild::ManagedPPluginInstanceChild(nsTArray<PPluginInstanceChild*>& aArr) const -> void
      80             : {
      81           0 :     (mManagedPPluginInstanceChild).ToArray(aArr);
      82           0 : }
      83             : 
      84           0 : auto PPluginModuleChild::ManagedPPluginInstanceChild() const -> const ManagedContainer<PPluginInstanceChild>&
      85             : {
      86           0 :     return mManagedPPluginInstanceChild;
      87             : }
      88             : 
      89           0 : auto PPluginModuleChild::SendProcessNativeEventsInInterruptCall() -> bool
      90             : {
      91           0 :     IPC::Message* msg__ = PPluginModule::Msg_ProcessNativeEventsInInterruptCall(MSG_ROUTING_CONTROL);
      92             : 
      93             : 
      94             : 
      95             : 
      96             : 
      97           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
      98           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      99             :     }
     100           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessNativeEventsInInterruptCall", OTHER);
     101           0 :     PPluginModule::Transition(PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID, (&(mState)));
     102             : 
     103           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     104           0 :     return sendok__;
     105             : }
     106             : 
     107           0 : auto PPluginModuleChild::SendBackUpXResources(const FileDescriptor& aXSocketFd) -> bool
     108             : {
     109           0 :     IPC::Message* msg__ = PPluginModule::Msg_BackUpXResources(MSG_ROUTING_CONTROL);
     110             : 
     111           0 :     Write(aXSocketFd, msg__);
     112             :     // Sentinel = 'aXSocketFd'
     113           0 :     (msg__)->WriteSentinel(1448798316);
     114             : 
     115             : 
     116             : 
     117             : 
     118           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     119           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     120             :     }
     121           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_BackUpXResources", OTHER);
     122           0 :     PPluginModule::Transition(PPluginModule::Msg_BackUpXResources__ID, (&(mState)));
     123             : 
     124           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     125           0 :     return sendok__;
     126             : }
     127             : 
     128           0 : auto PPluginModuleChild::CallProcessSomeEvents() -> bool
     129             : {
     130           0 :     IPC::Message* msg__ = PPluginModule::Msg_ProcessSomeEvents(MSG_ROUTING_CONTROL);
     131             : 
     132             : 
     133           0 :     (msg__)->set_interrupt();
     134             : 
     135             : 
     136           0 :     Message reply__;
     137             : 
     138           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     139           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     140             :     }
     141           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessSomeEvents", OTHER);
     142           0 :     PPluginModule::Transition(PPluginModule::Msg_ProcessSomeEvents__ID, (&(mState)));
     143             : 
     144             :     bool sendok__;
     145             :     {
     146             :         AutoProfilerTracing syncIPCTracer(
     147             :                 "IPC",
     148           0 :                 "PPluginModule::Msg_ProcessSomeEvents");
     149           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     150             :     }
     151           0 :     if ((!(sendok__))) {
     152           0 :         return false;
     153             :     }
     154             : 
     155           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     156           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     157             :     }
     158             : 
     159           0 :     return true;
     160             : }
     161             : 
     162           0 : auto PPluginModuleChild::SendPluginShowWindow(
     163             :         const uint32_t& aWindowId,
     164             :         const bool& aModal,
     165             :         const int32_t& aX,
     166             :         const int32_t& aY,
     167             :         const size_t& aWidth,
     168             :         const size_t& aHeight) -> bool
     169             : {
     170           0 :     IPC::Message* msg__ = PPluginModule::Msg_PluginShowWindow(MSG_ROUTING_CONTROL);
     171             : 
     172           0 :     Write(aWindowId, msg__);
     173             :     // Sentinel = 'aWindowId'
     174           0 :     (msg__)->WriteSentinel(3844940347);
     175           0 :     Write(aModal, msg__);
     176             :     // Sentinel = 'aModal'
     177           0 :     (msg__)->WriteSentinel(1748782442);
     178           0 :     Write(aX, msg__);
     179             :     // Sentinel = 'aX'
     180           0 :     (msg__)->WriteSentinel(2745208761);
     181           0 :     Write(aY, msg__);
     182             :     // Sentinel = 'aY'
     183           0 :     (msg__)->WriteSentinel(2745208760);
     184           0 :     Write(aWidth, msg__);
     185             :     // Sentinel = 'aWidth'
     186           0 :     (msg__)->WriteSentinel(196646625);
     187           0 :     Write(aHeight, msg__);
     188             :     // Sentinel = 'aHeight'
     189           0 :     (msg__)->WriteSentinel(3588433859);
     190             : 
     191             : 
     192             : 
     193             : 
     194           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     195           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     196             :     }
     197           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_PluginShowWindow", OTHER);
     198           0 :     PPluginModule::Transition(PPluginModule::Msg_PluginShowWindow__ID, (&(mState)));
     199             : 
     200           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     201           0 :     return sendok__;
     202             : }
     203             : 
     204           0 : auto PPluginModuleChild::SendPluginHideWindow(const uint32_t& aWindowId) -> bool
     205             : {
     206           0 :     IPC::Message* msg__ = PPluginModule::Msg_PluginHideWindow(MSG_ROUTING_CONTROL);
     207             : 
     208           0 :     Write(aWindowId, msg__);
     209             :     // Sentinel = 'aWindowId'
     210           0 :     (msg__)->WriteSentinel(3844940347);
     211             : 
     212             : 
     213             : 
     214             : 
     215           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     216           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     217             :     }
     218           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_PluginHideWindow", OTHER);
     219           0 :     PPluginModule::Transition(PPluginModule::Msg_PluginHideWindow__ID, (&(mState)));
     220             : 
     221           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     222           0 :     return sendok__;
     223             : }
     224             : 
     225           0 : auto PPluginModuleChild::SendSetCursor(const NSCursorInfo& cursorInfo) -> bool
     226             : {
     227           0 :     IPC::Message* msg__ = PPluginModule::Msg_SetCursor(MSG_ROUTING_CONTROL);
     228             : 
     229           0 :     Write(cursorInfo, msg__);
     230             :     // Sentinel = 'cursorInfo'
     231           0 :     (msg__)->WriteSentinel(351096996);
     232             : 
     233             : 
     234             : 
     235             : 
     236           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     237           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     238             :     }
     239           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_SetCursor", OTHER);
     240           0 :     PPluginModule::Transition(PPluginModule::Msg_SetCursor__ID, (&(mState)));
     241             : 
     242           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     243           0 :     return sendok__;
     244             : }
     245             : 
     246           0 : auto PPluginModuleChild::SendShowCursor(const bool& show) -> bool
     247             : {
     248           0 :     IPC::Message* msg__ = PPluginModule::Msg_ShowCursor(MSG_ROUTING_CONTROL);
     249             : 
     250           0 :     Write(show, msg__);
     251             :     // Sentinel = 'show'
     252           0 :     (msg__)->WriteSentinel(352668679);
     253             : 
     254             : 
     255             : 
     256             : 
     257           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     258           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     259             :     }
     260           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_ShowCursor", OTHER);
     261           0 :     PPluginModule::Transition(PPluginModule::Msg_ShowCursor__ID, (&(mState)));
     262             : 
     263           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     264           0 :     return sendok__;
     265             : }
     266             : 
     267           0 : auto PPluginModuleChild::SendPushCursor(const NSCursorInfo& cursorInfo) -> bool
     268             : {
     269           0 :     IPC::Message* msg__ = PPluginModule::Msg_PushCursor(MSG_ROUTING_CONTROL);
     270             : 
     271           0 :     Write(cursorInfo, msg__);
     272             :     // Sentinel = 'cursorInfo'
     273           0 :     (msg__)->WriteSentinel(351096996);
     274             : 
     275             : 
     276             : 
     277             : 
     278           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     279           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     280             :     }
     281           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_PushCursor", OTHER);
     282           0 :     PPluginModule::Transition(PPluginModule::Msg_PushCursor__ID, (&(mState)));
     283             : 
     284           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     285           0 :     return sendok__;
     286             : }
     287             : 
     288           0 : auto PPluginModuleChild::SendPopCursor() -> bool
     289             : {
     290           0 :     IPC::Message* msg__ = PPluginModule::Msg_PopCursor(MSG_ROUTING_CONTROL);
     291             : 
     292             : 
     293             : 
     294             : 
     295             : 
     296           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     297           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     298             :     }
     299           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_PopCursor", OTHER);
     300           0 :     PPluginModule::Transition(PPluginModule::Msg_PopCursor__ID, (&(mState)));
     301             : 
     302           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     303           0 :     return sendok__;
     304             : }
     305             : 
     306           0 : auto PPluginModuleChild::SendNPN_SetException(const nsCString& message) -> bool
     307             : {
     308           0 :     IPC::Message* msg__ = PPluginModule::Msg_NPN_SetException(MSG_ROUTING_CONTROL);
     309             : 
     310           0 :     Write(message, msg__);
     311             :     // Sentinel = 'message'
     312           0 :     (msg__)->WriteSentinel(1366108954);
     313             : 
     314           0 :     (msg__)->set_sync();
     315             : 
     316             : 
     317           0 :     Message reply__;
     318             : 
     319           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     320           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     321             :     }
     322           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_SetException", OTHER);
     323           0 :     PPluginModule::Transition(PPluginModule::Msg_NPN_SetException__ID, (&(mState)));
     324             : 
     325             :     bool sendok__;
     326             :     {
     327             :         AutoProfilerTracing syncIPCTracer(
     328             :                 "IPC",
     329           0 :                 "PPluginModule::Msg_NPN_SetException");
     330           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
     331             :     }
     332           0 :     if ((!(sendok__))) {
     333           0 :         return false;
     334             :     }
     335             : 
     336           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     337           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     338             :     }
     339             : 
     340           0 :     return true;
     341             : }
     342             : 
     343           0 : auto PPluginModuleChild::SendNPN_ReloadPlugins(const bool& aReloadPages) -> bool
     344             : {
     345           0 :     IPC::Message* msg__ = PPluginModule::Msg_NPN_ReloadPlugins(MSG_ROUTING_CONTROL);
     346             : 
     347           0 :     Write(aReloadPages, msg__);
     348             :     // Sentinel = 'aReloadPages'
     349           0 :     (msg__)->WriteSentinel(1141623534);
     350             : 
     351             : 
     352             : 
     353             : 
     354           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     355           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     356             :     }
     357           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_ReloadPlugins", OTHER);
     358           0 :     PPluginModule::Transition(PPluginModule::Msg_NPN_ReloadPlugins__ID, (&(mState)));
     359             : 
     360           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     361           0 :     return sendok__;
     362             : }
     363             : 
     364           0 : auto PPluginModuleChild::SendNotifyContentModuleDestroyed() -> bool
     365             : {
     366           0 :     IPC::Message* msg__ = PPluginModule::Msg_NotifyContentModuleDestroyed(MSG_ROUTING_CONTROL);
     367             : 
     368             : 
     369             : 
     370             : 
     371             : 
     372           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     373           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     374             :     }
     375           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_NotifyContentModuleDestroyed", OTHER);
     376           0 :     PPluginModule::Transition(PPluginModule::Msg_NotifyContentModuleDestroyed__ID, (&(mState)));
     377             : 
     378           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     379           0 :     return sendok__;
     380             : }
     381             : 
     382           0 : auto PPluginModuleChild::SendReturnClearSiteData(
     383             :         const NPError& aRv,
     384             :         const uint64_t& aCallbackId) -> bool
     385             : {
     386           0 :     IPC::Message* msg__ = PPluginModule::Msg_ReturnClearSiteData(MSG_ROUTING_CONTROL);
     387             : 
     388           0 :     Write(aRv, msg__);
     389             :     // Sentinel = 'aRv'
     390           0 :     (msg__)->WriteSentinel(2742041894);
     391           0 :     Write(aCallbackId, msg__);
     392             :     // Sentinel = 'aCallbackId'
     393           0 :     (msg__)->WriteSentinel(1362998144);
     394             : 
     395             : 
     396             : 
     397             : 
     398           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     399           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     400             :     }
     401           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_ReturnClearSiteData", OTHER);
     402           0 :     PPluginModule::Transition(PPluginModule::Msg_ReturnClearSiteData__ID, (&(mState)));
     403             : 
     404           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     405           0 :     return sendok__;
     406             : }
     407             : 
     408           0 : auto PPluginModuleChild::SendReturnSitesWithData(
     409             :         const nsTArray<nsCString>& aSites,
     410             :         const uint64_t& aCallbackId) -> bool
     411             : {
     412           0 :     IPC::Message* msg__ = PPluginModule::Msg_ReturnSitesWithData(MSG_ROUTING_CONTROL);
     413             : 
     414           0 :     Write(aSites, msg__);
     415             :     // Sentinel = 'aSites'
     416           0 :     (msg__)->WriteSentinel(2169354461);
     417           0 :     Write(aCallbackId, msg__);
     418             :     // Sentinel = 'aCallbackId'
     419           0 :     (msg__)->WriteSentinel(1362998144);
     420             : 
     421             : 
     422             : 
     423             : 
     424           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     425           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     426             :     }
     427           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_ReturnSitesWithData", OTHER);
     428           0 :     PPluginModule::Transition(PPluginModule::Msg_ReturnSitesWithData__ID, (&(mState)));
     429             : 
     430           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     431           0 :     return sendok__;
     432             : }
     433             : 
     434           0 : auto PPluginModuleChild::CallGetKeyState(
     435             :         const int32_t& aVirtKey,
     436             :         int16_t* aState) -> bool
     437             : {
     438           0 :     IPC::Message* msg__ = PPluginModule::Msg_GetKeyState(MSG_ROUTING_CONTROL);
     439             : 
     440           0 :     Write(aVirtKey, msg__);
     441             :     // Sentinel = 'aVirtKey'
     442           0 :     (msg__)->WriteSentinel(3853288737);
     443             : 
     444           0 :     (msg__)->set_interrupt();
     445             : 
     446             : 
     447           0 :     Message reply__;
     448             : 
     449           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     450           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     451             :     }
     452           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_GetKeyState", OTHER);
     453           0 :     PPluginModule::Transition(PPluginModule::Msg_GetKeyState__ID, (&(mState)));
     454             : 
     455             :     bool sendok__;
     456             :     {
     457             :         AutoProfilerTracing syncIPCTracer(
     458             :                 "IPC",
     459           0 :                 "PPluginModule::Msg_GetKeyState");
     460           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     461             :     }
     462           0 :     if ((!(sendok__))) {
     463           0 :         return false;
     464             :     }
     465             : 
     466           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     467           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     468             :     }
     469             : 
     470           0 :     PickleIterator iter__(reply__);
     471             : 
     472           0 :     if ((!(Read(aState, (&(reply__)), (&(iter__)))))) {
     473           0 :         FatalError("Error deserializing 'int16_t'");
     474           0 :         return false;
     475             :     }
     476             :     // Sentinel = 'aState'
     477           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3694751962)))) {
     478           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'int16_t'");
     479           0 :         return false;
     480             :     }
     481           0 :     (reply__).EndRead(iter__, (reply__).type());
     482             : 
     483           0 :     return true;
     484             : }
     485             : 
     486           0 : auto PPluginModuleChild::CallNPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(
     487             :         const bool& shouldRegister,
     488             :         NPError* result) -> bool
     489             : {
     490           0 :     IPC::Message* msg__ = PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges(MSG_ROUTING_CONTROL);
     491             : 
     492           0 :     Write(shouldRegister, msg__);
     493             :     // Sentinel = 'shouldRegister'
     494           0 :     (msg__)->WriteSentinel(397502372);
     495             : 
     496           0 :     (msg__)->set_interrupt();
     497             : 
     498             : 
     499           0 :     Message reply__;
     500             : 
     501           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     502           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     503             :     }
     504           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges", OTHER);
     505           0 :     PPluginModule::Transition(PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges__ID, (&(mState)));
     506             : 
     507             :     bool sendok__;
     508             :     {
     509             :         AutoProfilerTracing syncIPCTracer(
     510             :                 "IPC",
     511           0 :                 "PPluginModule::Msg_NPN_SetValue_NPPVpluginRequiresAudioDeviceChanges");
     512           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     513             :     }
     514           0 :     if ((!(sendok__))) {
     515           0 :         return false;
     516             :     }
     517             : 
     518           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     519           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     520             :     }
     521             : 
     522           0 :     PickleIterator iter__(reply__);
     523             : 
     524           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     525           0 :         FatalError("Error deserializing 'NPError'");
     526           0 :         return false;
     527             :     }
     528             :     // Sentinel = 'result'
     529           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     530           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     531           0 :         return false;
     532             :     }
     533           0 :     (reply__).EndRead(iter__, (reply__).type());
     534             : 
     535           0 :     return true;
     536             : }
     537             : 
     538           0 : auto PPluginModuleChild::CallGetFileName(
     539             :         const GetFileNameFunc& aFunc,
     540             :         const OpenFileNameIPC& aOfnIn,
     541             :         OpenFileNameRetIPC* aOfnOut,
     542             :         bool* aResult) -> bool
     543             : {
     544           0 :     IPC::Message* msg__ = PPluginModule::Msg_GetFileName(MSG_ROUTING_CONTROL);
     545             : 
     546           0 :     Write(aFunc, msg__);
     547             :     // Sentinel = 'aFunc'
     548           0 :     (msg__)->WriteSentinel(2248658374);
     549           0 :     Write(aOfnIn, msg__);
     550             :     // Sentinel = 'aOfnIn'
     551           0 :     (msg__)->WriteSentinel(2594274587);
     552             : 
     553           0 :     (msg__)->set_interrupt();
     554             : 
     555             : 
     556           0 :     Message reply__;
     557             : 
     558           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     559           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     560             :     }
     561           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_GetFileName", OTHER);
     562           0 :     PPluginModule::Transition(PPluginModule::Msg_GetFileName__ID, (&(mState)));
     563             : 
     564             :     bool sendok__;
     565             :     {
     566             :         AutoProfilerTracing syncIPCTracer(
     567             :                 "IPC",
     568           0 :                 "PPluginModule::Msg_GetFileName");
     569           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     570             :     }
     571           0 :     if ((!(sendok__))) {
     572           0 :         return false;
     573             :     }
     574             : 
     575           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     576           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     577             :     }
     578             : 
     579           0 :     PickleIterator iter__(reply__);
     580             : 
     581           0 :     if ((!(Read(aOfnOut, (&(reply__)), (&(iter__)))))) {
     582           0 :         FatalError("Error deserializing 'OpenFileNameRetIPC'");
     583           0 :         return false;
     584             :     }
     585             :     // Sentinel = 'aOfnOut'
     586           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2025643555)))) {
     587           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'OpenFileNameRetIPC'");
     588           0 :         return false;
     589             :     }
     590           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     591           0 :         FatalError("Error deserializing 'bool'");
     592           0 :         return false;
     593             :     }
     594             :     // Sentinel = 'aResult'
     595           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     596           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     597           0 :         return false;
     598             :     }
     599           0 :     (reply__).EndRead(iter__, (reply__).type());
     600             : 
     601           0 :     return true;
     602             : }
     603             : 
     604           0 : auto PPluginModuleChild::CallSetCursorPos(
     605             :         const int& x,
     606             :         const int& y,
     607             :         bool* aResult) -> bool
     608             : {
     609           0 :     IPC::Message* msg__ = PPluginModule::Msg_SetCursorPos(MSG_ROUTING_CONTROL);
     610             : 
     611           0 :     Write(x, msg__);
     612             :     // Sentinel = 'x'
     613           0 :     (msg__)->WriteSentinel(2475144313);
     614           0 :     Write(y, msg__);
     615             :     // Sentinel = 'y'
     616           0 :     (msg__)->WriteSentinel(2603144696);
     617             : 
     618           0 :     (msg__)->set_interrupt();
     619             : 
     620             : 
     621           0 :     Message reply__;
     622             : 
     623           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     624           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     625             :     }
     626           0 :     AUTO_PROFILER_LABEL("PPluginModule::Msg_SetCursorPos", OTHER);
     627           0 :     PPluginModule::Transition(PPluginModule::Msg_SetCursorPos__ID, (&(mState)));
     628             : 
     629             :     bool sendok__;
     630             :     {
     631             :         AutoProfilerTracing syncIPCTracer(
     632             :                 "IPC",
     633           0 :                 "PPluginModule::Msg_SetCursorPos");
     634           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     635             :     }
     636           0 :     if ((!(sendok__))) {
     637           0 :         return false;
     638             :     }
     639             : 
     640           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     641           0 :         mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     642             :     }
     643             : 
     644           0 :     PickleIterator iter__(reply__);
     645             : 
     646           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     647           0 :         FatalError("Error deserializing 'bool'");
     648           0 :         return false;
     649             :     }
     650             :     // Sentinel = 'aResult'
     651           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     652           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     653           0 :         return false;
     654             :     }
     655           0 :     (reply__).EndRead(iter__, (reply__).type());
     656             : 
     657           0 :     return true;
     658             : }
     659             : 
     660           0 : auto PPluginModuleChild::GetIPCChannel() -> MessageChannel*
     661             : {
     662           0 :     return (&(mChannel));
     663             : }
     664             : 
     665           0 : auto PPluginModuleChild::GetIPCChannel() const -> const MessageChannel*
     666             : {
     667           0 :     return (&(mChannel));
     668             : }
     669             : 
     670           0 : auto PPluginModuleChild::RemoveManagee(
     671             :         int32_t aProtocolId,
     672             :         ProtocolBase* aListener) -> void
     673             : {
     674           0 :     switch (aProtocolId) {
     675             :     case PPluginInstanceMsgStart:
     676             :         {
     677           0 :             PPluginInstanceChild* actor = static_cast<PPluginInstanceChild*>(aListener);
     678           0 :             auto& container = mManagedPPluginInstanceChild;
     679           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     680             : 
     681           0 :             (container).RemoveEntry(actor);
     682           0 :             DeallocPPluginInstanceChild(actor);
     683           0 :             return;
     684             :         }
     685             :     default:
     686             :         {
     687           0 :             FatalError("unreached");
     688           0 :             return;
     689             :         }
     690             :     }
     691             : }
     692             : 
     693           0 : auto PPluginModuleChild::OnMessageReceived(const Message& msg__) -> PPluginModuleChild::Result
     694             : {
     695           0 :     int32_t route__ = (msg__).routing_id();
     696           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
     697           0 :         ChannelListener* routed__ = Lookup(route__);
     698           0 :         if ((!(routed__))) {
     699           0 :             return MsgRouteError;
     700             :         }
     701           0 :         return (routed__)->OnMessageReceived(msg__);
     702             :     }
     703             : 
     704           0 :     switch ((msg__).type()) {
     705             :     case PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID:
     706             :         {
     707           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     708           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     709             :             }
     710           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_ProcessNativeEventsInInterruptCall", OTHER);
     711             : 
     712           0 :             PPluginModule::Transition(PPluginModule::Msg_ProcessNativeEventsInInterruptCall__ID, (&(mState)));
     713           0 :             if ((!(RecvProcessNativeEventsInInterruptCall()))) {
     714           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     715             :                 // Error handled in mozilla::ipc::IPCResult
     716           0 :                 return MsgProcessingError;
     717             :             }
     718             : 
     719           0 :             return MsgProcessed;
     720             :         }
     721             :     case PPluginModule::Msg_InitProfiler__ID:
     722             :         {
     723           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     724           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     725             :             }
     726           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_InitProfiler", OTHER);
     727             : 
     728           0 :             PickleIterator iter__(msg__);
     729           0 :             Endpoint<mozilla::PProfilerChild> aEndPoint;
     730             : 
     731           0 :             if ((!(Read((&(aEndPoint)), (&(msg__)), (&(iter__)))))) {
     732           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'");
     733           0 :                 return MsgValueError;
     734             :             }
     735             :             // Sentinel = 'aEndPoint'
     736           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1022620923)))) {
     737           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::PProfilerChild>'");
     738           0 :                 return MsgValueError;
     739             :             }
     740           0 :             (msg__).EndRead(iter__, (msg__).type());
     741           0 :             PPluginModule::Transition(PPluginModule::Msg_InitProfiler__ID, (&(mState)));
     742           0 :             if ((!(RecvInitProfiler(mozilla::Move(aEndPoint))))) {
     743           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     744             :                 // Error handled in mozilla::ipc::IPCResult
     745           0 :                 return MsgProcessingError;
     746             :             }
     747             : 
     748           0 :             return MsgProcessed;
     749             :         }
     750             :     case PPluginModule::Msg_DisableFlashProtectedMode__ID:
     751             :         {
     752           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     753           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     754             :             }
     755           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_DisableFlashProtectedMode", OTHER);
     756             : 
     757           0 :             PPluginModule::Transition(PPluginModule::Msg_DisableFlashProtectedMode__ID, (&(mState)));
     758           0 :             if ((!(RecvDisableFlashProtectedMode()))) {
     759           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     760             :                 // Error handled in mozilla::ipc::IPCResult
     761           0 :                 return MsgProcessingError;
     762             :             }
     763             : 
     764           0 :             return MsgProcessed;
     765             :         }
     766             :     case PPluginModule::Msg_PPluginInstanceConstructor__ID:
     767             :         {
     768           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     769           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     770             :             }
     771           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_PPluginInstanceConstructor", OTHER);
     772             : 
     773           0 :             PickleIterator iter__(msg__);
     774             :             ActorHandle handle__;
     775             :             PPluginInstanceChild* actor;
     776           0 :             nsCString aMimeType;
     777           0 :             nsTArray<nsCString> aNames;
     778           0 :             nsTArray<nsCString> aValues;
     779             : 
     780           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     781           0 :                 FatalError("Error deserializing 'ActorHandle'");
     782           0 :                 return MsgValueError;
     783             :             }
     784             :             // Sentinel = 'actor'
     785           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     786           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     787           0 :                 return MsgValueError;
     788             :             }
     789           0 :             if ((!(Read((&(aMimeType)), (&(msg__)), (&(iter__)))))) {
     790           0 :                 FatalError("Error deserializing 'nsCString'");
     791           0 :                 return MsgValueError;
     792             :             }
     793             :             // Sentinel = 'aMimeType'
     794           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 698220456)))) {
     795           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     796           0 :                 return MsgValueError;
     797             :             }
     798           0 :             if ((!(Read((&(aNames)), (&(msg__)), (&(iter__)))))) {
     799           0 :                 FatalError("Error deserializing 'nsTArray'");
     800           0 :                 return MsgValueError;
     801             :             }
     802             :             // Sentinel = 'aNames'
     803           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1643765405)))) {
     804           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     805           0 :                 return MsgValueError;
     806             :             }
     807           0 :             if ((!(Read((&(aValues)), (&(msg__)), (&(iter__)))))) {
     808           0 :                 FatalError("Error deserializing 'nsTArray'");
     809           0 :                 return MsgValueError;
     810             :             }
     811             :             // Sentinel = 'aValues'
     812           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 223787060)))) {
     813           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     814           0 :                 return MsgValueError;
     815             :             }
     816           0 :             (msg__).EndRead(iter__, (msg__).type());
     817           0 :             PPluginModule::Transition(PPluginModule::Msg_PPluginInstanceConstructor__ID, (&(mState)));
     818           0 :             actor = AllocPPluginInstanceChild(aMimeType, aNames, aValues);
     819           0 :             if ((!(actor))) {
     820           0 :                 NS_WARNING("Error constructing actor PPluginInstanceChild");
     821           0 :                 return MsgValueError;
     822             :             }
     823           0 :             (actor)->SetManager(this);
     824           0 :             RegisterID(actor, (handle__).mId);
     825           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     826           0 :             (mManagedPPluginInstanceChild).PutEntry(actor);
     827           0 :             (actor)->mState = mozilla::plugins::PPluginInstance::__Start;
     828             : 
     829           0 :             if ((!(RecvPPluginInstanceConstructor(mozilla::Move(actor), mozilla::Move(aMimeType), mozilla::Move(aNames), mozilla::Move(aValues))))) {
     830           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     831             :                 // Error handled in mozilla::ipc::IPCResult
     832           0 :                 return MsgProcessingError;
     833             :             }
     834             : 
     835           0 :             return MsgProcessed;
     836             :         }
     837             :     case PPluginModule::Msg_NPP_ClearSiteData__ID:
     838             :         {
     839           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     840           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     841             :             }
     842           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_ClearSiteData", OTHER);
     843             : 
     844           0 :             PickleIterator iter__(msg__);
     845           0 :             nsCString site;
     846             :             uint64_t flags;
     847             :             uint64_t maxAge;
     848             :             uint64_t aCallbackId;
     849             : 
     850           0 :             if ((!(Read((&(site)), (&(msg__)), (&(iter__)))))) {
     851           0 :                 FatalError("Error deserializing 'nsCString'");
     852           0 :                 return MsgValueError;
     853             :             }
     854             :             // Sentinel = 'site'
     855           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 925048205)))) {
     856           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     857           0 :                 return MsgValueError;
     858             :             }
     859           0 :             if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
     860           0 :                 FatalError("Error deserializing 'uint64_t'");
     861           0 :                 return MsgValueError;
     862             :             }
     863             :             // Sentinel = 'flags'
     864           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
     865           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     866           0 :                 return MsgValueError;
     867             :             }
     868           0 :             if ((!(Read((&(maxAge)), (&(msg__)), (&(iter__)))))) {
     869           0 :                 FatalError("Error deserializing 'uint64_t'");
     870           0 :                 return MsgValueError;
     871             :             }
     872             :             // Sentinel = 'maxAge'
     873           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4136822029)))) {
     874           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     875           0 :                 return MsgValueError;
     876             :             }
     877           0 :             if ((!(Read((&(aCallbackId)), (&(msg__)), (&(iter__)))))) {
     878           0 :                 FatalError("Error deserializing 'uint64_t'");
     879           0 :                 return MsgValueError;
     880             :             }
     881             :             // Sentinel = 'aCallbackId'
     882           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1362998144)))) {
     883           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     884           0 :                 return MsgValueError;
     885             :             }
     886           0 :             (msg__).EndRead(iter__, (msg__).type());
     887           0 :             PPluginModule::Transition(PPluginModule::Msg_NPP_ClearSiteData__ID, (&(mState)));
     888           0 :             if ((!(RecvNPP_ClearSiteData(mozilla::Move(site), mozilla::Move(flags), mozilla::Move(maxAge), mozilla::Move(aCallbackId))))) {
     889           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     890             :                 // Error handled in mozilla::ipc::IPCResult
     891           0 :                 return MsgProcessingError;
     892             :             }
     893             : 
     894           0 :             return MsgProcessed;
     895             :         }
     896             :     case PPluginModule::Msg_NPP_GetSitesWithData__ID:
     897             :         {
     898           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     899           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     900             :             }
     901           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_GetSitesWithData", OTHER);
     902             : 
     903           0 :             PickleIterator iter__(msg__);
     904             :             uint64_t aCallbackId;
     905             : 
     906           0 :             if ((!(Read((&(aCallbackId)), (&(msg__)), (&(iter__)))))) {
     907           0 :                 FatalError("Error deserializing 'uint64_t'");
     908           0 :                 return MsgValueError;
     909             :             }
     910             :             // Sentinel = 'aCallbackId'
     911           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1362998144)))) {
     912           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     913           0 :                 return MsgValueError;
     914             :             }
     915           0 :             (msg__).EndRead(iter__, (msg__).type());
     916           0 :             PPluginModule::Transition(PPluginModule::Msg_NPP_GetSitesWithData__ID, (&(mState)));
     917           0 :             if ((!(RecvNPP_GetSitesWithData(mozilla::Move(aCallbackId))))) {
     918           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     919             :                 // Error handled in mozilla::ipc::IPCResult
     920           0 :                 return MsgProcessingError;
     921             :             }
     922             : 
     923           0 :             return MsgProcessed;
     924             :         }
     925             :     case PPluginModule::Msg_SetAudioSessionData__ID:
     926             :         {
     927           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     928           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     929             :             }
     930           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_SetAudioSessionData", OTHER);
     931             : 
     932           0 :             PickleIterator iter__(msg__);
     933             :             nsID aID;
     934           0 :             nsString aDisplayName;
     935           0 :             nsString aIconPath;
     936             : 
     937           0 :             if ((!(Read((&(aID)), (&(msg__)), (&(iter__)))))) {
     938           0 :                 FatalError("Error deserializing 'nsID'");
     939           0 :                 return MsgValueError;
     940             :             }
     941             :             // Sentinel = 'aID'
     942           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041849)))) {
     943           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsID'");
     944           0 :                 return MsgValueError;
     945             :             }
     946           0 :             if ((!(Read((&(aDisplayName)), (&(msg__)), (&(iter__)))))) {
     947           0 :                 FatalError("Error deserializing 'nsString'");
     948           0 :                 return MsgValueError;
     949             :             }
     950             :             // Sentinel = 'aDisplayName'
     951           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 531102644)))) {
     952           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     953           0 :                 return MsgValueError;
     954             :             }
     955           0 :             if ((!(Read((&(aIconPath)), (&(msg__)), (&(iter__)))))) {
     956           0 :                 FatalError("Error deserializing 'nsString'");
     957           0 :                 return MsgValueError;
     958             :             }
     959             :             // Sentinel = 'aIconPath'
     960           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2359874914)))) {
     961           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     962           0 :                 return MsgValueError;
     963             :             }
     964           0 :             (msg__).EndRead(iter__, (msg__).type());
     965           0 :             PPluginModule::Transition(PPluginModule::Msg_SetAudioSessionData__ID, (&(mState)));
     966           0 :             if ((!(RecvSetAudioSessionData(mozilla::Move(aID), mozilla::Move(aDisplayName), mozilla::Move(aIconPath))))) {
     967           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     968             :                 // Error handled in mozilla::ipc::IPCResult
     969           0 :                 return MsgProcessingError;
     970             :             }
     971             : 
     972           0 :             return MsgProcessed;
     973             :         }
     974             :     case PPluginModule::Msg_SetParentHangTimeout__ID:
     975             :         {
     976           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
     977           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     978             :             }
     979           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_SetParentHangTimeout", OTHER);
     980             : 
     981           0 :             PickleIterator iter__(msg__);
     982             :             uint32_t seconds;
     983             : 
     984           0 :             if ((!(Read((&(seconds)), (&(msg__)), (&(iter__)))))) {
     985           0 :                 FatalError("Error deserializing 'uint32_t'");
     986           0 :                 return MsgValueError;
     987             :             }
     988             :             // Sentinel = 'seconds'
     989           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3246051016)))) {
     990           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     991           0 :                 return MsgValueError;
     992             :             }
     993           0 :             (msg__).EndRead(iter__, (msg__).type());
     994           0 :             PPluginModule::Transition(PPluginModule::Msg_SetParentHangTimeout__ID, (&(mState)));
     995           0 :             if ((!(RecvSetParentHangTimeout(mozilla::Move(seconds))))) {
     996           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     997             :                 // Error handled in mozilla::ipc::IPCResult
     998           0 :                 return MsgProcessingError;
     999             :             }
    1000             : 
    1001           0 :             return MsgProcessed;
    1002             :         }
    1003             :     case PPluginModule::Msg_SettingChanged__ID:
    1004             :         {
    1005           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1006           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1007             :             }
    1008           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_SettingChanged", OTHER);
    1009             : 
    1010           0 :             PickleIterator iter__(msg__);
    1011           0 :             PluginSettings settings;
    1012             : 
    1013           0 :             if ((!(Read((&(settings)), (&(msg__)), (&(iter__)))))) {
    1014           0 :                 FatalError("Error deserializing 'PluginSettings'");
    1015           0 :                 return MsgValueError;
    1016             :             }
    1017             :             // Sentinel = 'settings'
    1018           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2402913383)))) {
    1019           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginSettings'");
    1020           0 :                 return MsgValueError;
    1021             :             }
    1022           0 :             (msg__).EndRead(iter__, (msg__).type());
    1023           0 :             PPluginModule::Transition(PPluginModule::Msg_SettingChanged__ID, (&(mState)));
    1024           0 :             if ((!(RecvSettingChanged(mozilla::Move(settings))))) {
    1025           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1026             :                 // Error handled in mozilla::ipc::IPCResult
    1027           0 :                 return MsgProcessingError;
    1028             :             }
    1029             : 
    1030           0 :             return MsgProcessed;
    1031             :         }
    1032             :     case PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails__ID:
    1033             :         {
    1034           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1035           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1036             :             }
    1037           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails", OTHER);
    1038             : 
    1039           0 :             PickleIterator iter__(msg__);
    1040           0 :             NPAudioDeviceChangeDetailsIPC changeDetails;
    1041             : 
    1042           0 :             if ((!(Read((&(changeDetails)), (&(msg__)), (&(iter__)))))) {
    1043           0 :                 FatalError("Error deserializing 'NPAudioDeviceChangeDetailsIPC'");
    1044           0 :                 return MsgValueError;
    1045             :             }
    1046             :             // Sentinel = 'changeDetails'
    1047           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 331935927)))) {
    1048           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPAudioDeviceChangeDetailsIPC'");
    1049           0 :                 return MsgValueError;
    1050             :             }
    1051           0 :             (msg__).EndRead(iter__, (msg__).type());
    1052           0 :             PPluginModule::Transition(PPluginModule::Msg_NPP_SetValue_NPNVaudioDeviceChangeDetails__ID, (&(mState)));
    1053           0 :             if ((!(RecvNPP_SetValue_NPNVaudioDeviceChangeDetails(mozilla::Move(changeDetails))))) {
    1054           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1055             :                 // Error handled in mozilla::ipc::IPCResult
    1056           0 :                 return MsgProcessingError;
    1057             :             }
    1058             : 
    1059           0 :             return MsgProcessed;
    1060             :         }
    1061             :     case PPluginModule::Msg_InitPluginModuleChild__ID:
    1062             :         {
    1063           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1064           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1065             :             }
    1066           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_InitPluginModuleChild", OTHER);
    1067             : 
    1068           0 :             PickleIterator iter__(msg__);
    1069           0 :             Endpoint<mozilla::plugins::PPluginModuleChild> endpoint;
    1070             : 
    1071           0 :             if ((!(Read((&(endpoint)), (&(msg__)), (&(iter__)))))) {
    1072           0 :                 FatalError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleChild>'");
    1073           0 :                 return MsgValueError;
    1074             :             }
    1075             :             // Sentinel = 'endpoint'
    1076           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3610972515)))) {
    1077           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Endpoint<mozilla::plugins::PPluginModuleChild>'");
    1078           0 :                 return MsgValueError;
    1079             :             }
    1080           0 :             (msg__).EndRead(iter__, (msg__).type());
    1081           0 :             PPluginModule::Transition(PPluginModule::Msg_InitPluginModuleChild__ID, (&(mState)));
    1082           0 :             if ((!(RecvInitPluginModuleChild(mozilla::Move(endpoint))))) {
    1083           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1084             :                 // Error handled in mozilla::ipc::IPCResult
    1085           0 :                 return MsgProcessingError;
    1086             :             }
    1087             : 
    1088           0 :             return MsgProcessed;
    1089             :         }
    1090             :     default:
    1091             :         {
    1092           0 :             return MsgNotKnown;
    1093             :         }
    1094             :     case SHMEM_CREATED_MESSAGE_TYPE:
    1095             :         {
    1096           0 :             if ((!(ShmemCreated(msg__)))) {
    1097           0 :                 return MsgPayloadError;
    1098             :             }
    1099           0 :             return MsgProcessed;
    1100             :         }
    1101             :     case SHMEM_DESTROYED_MESSAGE_TYPE:
    1102             :         {
    1103           0 :             if ((!(ShmemDestroyed(msg__)))) {
    1104           0 :                 return MsgPayloadError;
    1105             :             }
    1106           0 :             return MsgProcessed;
    1107             :         }
    1108             :     }
    1109             : }
    1110             : 
    1111           0 : auto PPluginModuleChild::OnMessageReceived(
    1112             :         const Message& msg__,
    1113             :         Message*& reply__) -> PPluginModuleChild::Result
    1114             : {
    1115           0 :     int32_t route__ = (msg__).routing_id();
    1116           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
    1117           0 :         ChannelListener* routed__ = Lookup(route__);
    1118           0 :         if ((!(routed__))) {
    1119           0 :             return MsgRouteError;
    1120             :         }
    1121           0 :         return (routed__)->OnMessageReceived(msg__, reply__);
    1122             :     }
    1123             : 
    1124           0 :     return MsgNotKnown;
    1125             : }
    1126             : 
    1127           0 : auto PPluginModuleChild::OnCallReceived(
    1128             :         const Message& msg__,
    1129             :         Message*& reply__) -> PPluginModuleChild::Result
    1130             : {
    1131           0 :     int32_t route__ = (msg__).routing_id();
    1132           0 :     if ((MSG_ROUTING_CONTROL) != (route__)) {
    1133           0 :         ChannelListener* routed__ = Lookup(route__);
    1134           0 :         if ((!(routed__))) {
    1135           0 :             return MsgRouteError;
    1136             :         }
    1137           0 :         return (routed__)->OnCallReceived(msg__, reply__);
    1138             :     }
    1139             : 
    1140           0 :     switch ((msg__).type()) {
    1141             :     case PPluginModule::Msg_ModuleSupportsAsyncRender__ID:
    1142             :         {
    1143           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1144           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1145             :             }
    1146           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_ModuleSupportsAsyncRender", OTHER);
    1147             : 
    1148           0 :             PPluginModule::Transition(PPluginModule::Msg_ModuleSupportsAsyncRender__ID, (&(mState)));
    1149           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1150             :             bool result;
    1151           0 :             if ((!(AnswerModuleSupportsAsyncRender((&(result)))))) {
    1152           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1153             :                 // Error handled in mozilla::ipc::IPCResult
    1154           0 :                 return MsgProcessingError;
    1155             :             }
    1156             : 
    1157           0 :             reply__ = PPluginModule::Reply_ModuleSupportsAsyncRender(id__);
    1158             : 
    1159           0 :             Write(result, reply__);
    1160             :             // Sentinel = 'result'
    1161           0 :             (reply__)->WriteSentinel(3991766165);
    1162           0 :             (reply__)->set_interrupt();
    1163           0 :             (reply__)->set_reply();
    1164             : 
    1165           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1166           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1167             :             }
    1168           0 :             return MsgProcessed;
    1169             :         }
    1170             :     case PPluginModule::Msg_NP_GetEntryPoints__ID:
    1171             :         {
    1172           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1173           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1174             :             }
    1175           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_GetEntryPoints", OTHER);
    1176             : 
    1177           0 :             PPluginModule::Transition(PPluginModule::Msg_NP_GetEntryPoints__ID, (&(mState)));
    1178           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1179             :             NPError rv;
    1180           0 :             if ((!(AnswerNP_GetEntryPoints((&(rv)))))) {
    1181           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1182             :                 // Error handled in mozilla::ipc::IPCResult
    1183           0 :                 return MsgProcessingError;
    1184             :             }
    1185             : 
    1186           0 :             reply__ = PPluginModule::Reply_NP_GetEntryPoints(id__);
    1187             : 
    1188           0 :             Write(rv, reply__);
    1189             :             // Sentinel = 'rv'
    1190           0 :             (reply__)->WriteSentinel(702481058);
    1191           0 :             (reply__)->set_interrupt();
    1192           0 :             (reply__)->set_reply();
    1193             : 
    1194           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1195           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1196             :             }
    1197           0 :             return MsgProcessed;
    1198             :         }
    1199             :     case PPluginModule::Msg_NP_Initialize__ID:
    1200             :         {
    1201           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1202           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1203             :             }
    1204           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_Initialize", OTHER);
    1205             : 
    1206           0 :             PickleIterator iter__(msg__);
    1207           0 :             PluginSettings settings;
    1208             : 
    1209           0 :             if ((!(Read((&(settings)), (&(msg__)), (&(iter__)))))) {
    1210           0 :                 FatalError("Error deserializing 'PluginSettings'");
    1211           0 :                 return MsgValueError;
    1212             :             }
    1213             :             // Sentinel = 'settings'
    1214           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2402913383)))) {
    1215           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginSettings'");
    1216           0 :                 return MsgValueError;
    1217             :             }
    1218           0 :             (msg__).EndRead(iter__, (msg__).type());
    1219           0 :             PPluginModule::Transition(PPluginModule::Msg_NP_Initialize__ID, (&(mState)));
    1220           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1221             :             NPError rv;
    1222           0 :             if ((!(AnswerNP_Initialize(mozilla::Move(settings), (&(rv)))))) {
    1223           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1224             :                 // Error handled in mozilla::ipc::IPCResult
    1225           0 :                 return MsgProcessingError;
    1226             :             }
    1227             : 
    1228           0 :             reply__ = PPluginModule::Reply_NP_Initialize(id__);
    1229             : 
    1230           0 :             Write(rv, reply__);
    1231             :             // Sentinel = 'rv'
    1232           0 :             (reply__)->WriteSentinel(702481058);
    1233           0 :             (reply__)->set_interrupt();
    1234           0 :             (reply__)->set_reply();
    1235             : 
    1236           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1237           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1238             :             }
    1239           0 :             return MsgProcessed;
    1240             :         }
    1241             :     case PPluginModule::Msg_SyncNPP_New__ID:
    1242             :         {
    1243           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1244           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1245             :             }
    1246           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_SyncNPP_New", OTHER);
    1247             : 
    1248           0 :             PickleIterator iter__(msg__);
    1249             :             PPluginInstanceChild* aActor;
    1250             : 
    1251           0 :             if ((!(Read((&(aActor)), (&(msg__)), (&(iter__)), false)))) {
    1252           0 :                 FatalError("Error deserializing 'PPluginInstanceChild'");
    1253           0 :                 return MsgValueError;
    1254             :             }
    1255             :             // Sentinel = 'aActor'
    1256           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 654298798)))) {
    1257           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPluginInstanceChild'");
    1258           0 :                 return MsgValueError;
    1259             :             }
    1260           0 :             (msg__).EndRead(iter__, (msg__).type());
    1261           0 :             PPluginModule::Transition(PPluginModule::Msg_SyncNPP_New__ID, (&(mState)));
    1262           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1263             :             NPError rv;
    1264           0 :             if ((!(AnswerSyncNPP_New(mozilla::Move(aActor), (&(rv)))))) {
    1265           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1266             :                 // Error handled in mozilla::ipc::IPCResult
    1267           0 :                 return MsgProcessingError;
    1268             :             }
    1269             : 
    1270           0 :             reply__ = PPluginModule::Reply_SyncNPP_New(id__);
    1271             : 
    1272           0 :             Write(rv, reply__);
    1273             :             // Sentinel = 'rv'
    1274           0 :             (reply__)->WriteSentinel(702481058);
    1275           0 :             (reply__)->set_interrupt();
    1276           0 :             (reply__)->set_reply();
    1277             : 
    1278           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1279           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1280             :             }
    1281           0 :             return MsgProcessed;
    1282             :         }
    1283             :     case PPluginModule::Msg_NP_Shutdown__ID:
    1284             :         {
    1285           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1286           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1287             :             }
    1288           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_NP_Shutdown", OTHER);
    1289             : 
    1290           0 :             PPluginModule::Transition(PPluginModule::Msg_NP_Shutdown__ID, (&(mState)));
    1291           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1292             :             NPError rv;
    1293           0 :             if ((!(AnswerNP_Shutdown((&(rv)))))) {
    1294           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1295             :                 // Error handled in mozilla::ipc::IPCResult
    1296           0 :                 return MsgProcessingError;
    1297             :             }
    1298             : 
    1299           0 :             reply__ = PPluginModule::Reply_NP_Shutdown(id__);
    1300             : 
    1301           0 :             Write(rv, reply__);
    1302             :             // Sentinel = 'rv'
    1303           0 :             (reply__)->WriteSentinel(702481058);
    1304           0 :             (reply__)->set_interrupt();
    1305           0 :             (reply__)->set_reply();
    1306             : 
    1307           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1308           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1309             :             }
    1310           0 :             return MsgProcessed;
    1311             :         }
    1312             :     case PPluginModule::Msg_OptionalFunctionsSupported__ID:
    1313             :         {
    1314           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1315           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1316             :             }
    1317           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_OptionalFunctionsSupported", OTHER);
    1318             : 
    1319           0 :             PPluginModule::Transition(PPluginModule::Msg_OptionalFunctionsSupported__ID, (&(mState)));
    1320           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1321             :             bool aURLRedirectNotify;
    1322             :             bool aClearSiteData;
    1323             :             bool aGetSitesWithData;
    1324           0 :             if ((!(AnswerOptionalFunctionsSupported((&(aURLRedirectNotify)), (&(aClearSiteData)), (&(aGetSitesWithData)))))) {
    1325           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1326             :                 // Error handled in mozilla::ipc::IPCResult
    1327           0 :                 return MsgProcessingError;
    1328             :             }
    1329             : 
    1330           0 :             reply__ = PPluginModule::Reply_OptionalFunctionsSupported(id__);
    1331             : 
    1332           0 :             Write(aURLRedirectNotify, reply__);
    1333             :             // Sentinel = 'aURLRedirectNotify'
    1334           0 :             (reply__)->WriteSentinel(4040347717);
    1335           0 :             Write(aClearSiteData, reply__);
    1336             :             // Sentinel = 'aClearSiteData'
    1337           0 :             (reply__)->WriteSentinel(357136587);
    1338           0 :             Write(aGetSitesWithData, reply__);
    1339             :             // Sentinel = 'aGetSitesWithData'
    1340           0 :             (reply__)->WriteSentinel(1891549156);
    1341           0 :             (reply__)->set_interrupt();
    1342           0 :             (reply__)->set_reply();
    1343             : 
    1344           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1345           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1346             :             }
    1347           0 :             return MsgProcessed;
    1348             :         }
    1349             :     case PPluginModule::Msg_InitCrashReporter__ID:
    1350             :         {
    1351           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1352           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1353             :             }
    1354           0 :             AUTO_PROFILER_LABEL("PPluginModule::Msg_InitCrashReporter", OTHER);
    1355             : 
    1356           0 :             PickleIterator iter__(msg__);
    1357           0 :             Shmem shmem;
    1358             : 
    1359           0 :             if ((!(Read((&(shmem)), (&(msg__)), (&(iter__)))))) {
    1360           0 :                 FatalError("Error deserializing 'Shmem'");
    1361           0 :                 return MsgValueError;
    1362             :             }
    1363             :             // Sentinel = 'shmem'
    1364           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4252604405)))) {
    1365           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
    1366           0 :                 return MsgValueError;
    1367             :             }
    1368           0 :             (msg__).EndRead(iter__, (msg__).type());
    1369           0 :             PPluginModule::Transition(PPluginModule::Msg_InitCrashReporter__ID, (&(mState)));
    1370           0 :             int32_t id__ = MSG_ROUTING_CONTROL;
    1371             :             NativeThreadId tid;
    1372           0 :             if ((!(AnswerInitCrashReporter(mozilla::Move(shmem), (&(tid)))))) {
    1373           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1374             :                 // Error handled in mozilla::ipc::IPCResult
    1375           0 :                 return MsgProcessingError;
    1376             :             }
    1377             : 
    1378           0 :             reply__ = PPluginModule::Reply_InitCrashReporter(id__);
    1379             : 
    1380           0 :             Write(tid, reply__);
    1381             :             // Sentinel = 'tid'
    1382           0 :             (reply__)->WriteSentinel(333309880);
    1383           0 :             (reply__)->set_interrupt();
    1384           0 :             (reply__)->set_reply();
    1385             : 
    1386           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginModuleChild")) {
    1387           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginModuleChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1388             :             }
    1389           0 :             return MsgProcessed;
    1390             :         }
    1391             :     default:
    1392             :         {
    1393           0 :             return MsgNotKnown;
    1394             :         }
    1395             :     }
    1396             : }
    1397             : 
    1398           0 : auto PPluginModuleChild::GetProtocolTypeId() -> int32_t
    1399             : {
    1400           0 :     return PPluginModuleMsgStart;
    1401             : }
    1402             : 
    1403           0 : auto PPluginModuleChild::OnChannelClose() -> void
    1404             : {
    1405           0 :     DestroySubtree(NormalShutdown);
    1406           0 :     DeallocSubtree();
    1407           0 :     DeallocShmems();
    1408           0 :     DeallocPPluginModuleChild();
    1409           0 : }
    1410             : 
    1411           0 : auto PPluginModuleChild::OnChannelError() -> void
    1412             : {
    1413           0 :     DestroySubtree(AbnormalShutdown);
    1414           0 :     DeallocSubtree();
    1415           0 :     DeallocShmems();
    1416           0 :     DeallocPPluginModuleChild();
    1417           0 : }
    1418             : 
    1419           0 : auto PPluginModuleChild::ProcessNativeEventsInInterruptCall() -> void
    1420             : {
    1421             : #ifdef OS_WIN
    1422             :     (mChannel).ProcessNativeEventsInInterruptCall();
    1423             : #else
    1424           0 :     FatalError("This method is Windows-only");
    1425             : #endif
    1426           0 : }
    1427             : 
    1428           0 : auto PPluginModuleChild::ProtocolName() const -> const char*
    1429             : {
    1430           0 :     return "PPluginModuleChild";
    1431             : }
    1432             : 
    1433           0 : auto PPluginModuleChild::DestroySubtree(ActorDestroyReason why) -> void
    1434             : {
    1435           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
    1436             : 
    1437             :     {
    1438             :         // Recursively shutting down PPluginInstance kids
    1439           0 :         nsTArray<PPluginInstanceChild*> kids;
    1440             :         // Accumulate kids into a stable structure to iterate over
    1441           0 :         ManagedPPluginInstanceChild(kids);
    1442           0 :         for (auto& kid : kids) {
    1443             :             // Guarding against a child removing a sibling from the list during the iteration.
    1444           0 :             if ((mManagedPPluginInstanceChild).Contains(kid)) {
    1445           0 :                 (kid)->DestroySubtree(subtreewhy);
    1446             :             }
    1447             :         }
    1448             :     }
    1449             : 
    1450             :     // Reject owning pending promises.
    1451           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1452             : 
    1453             :     // Finally, destroy "us".
    1454           0 :     ActorDestroy(why);
    1455           0 : }
    1456             : 
    1457           0 : auto PPluginModuleChild::DeallocSubtree() -> void
    1458             : {
    1459             :     {
    1460             :         // Recursively deleting PPluginInstance kids
    1461           0 :         for (auto iter = (mManagedPPluginInstanceChild).Iter(); (!((iter).Done())); (iter).Next()) {
    1462           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    1463             :         }
    1464             : 
    1465           0 :         for (auto iter = (mManagedPPluginInstanceChild).Iter(); (!((iter).Done())); (iter).Next()) {
    1466           0 :             DeallocPPluginInstanceChild(((iter).Get())->GetKey());
    1467             :         }
    1468           0 :         (mManagedPPluginInstanceChild).Clear();
    1469             :     }
    1470           0 : }
    1471             : 
    1472           0 : auto PPluginModuleChild::DeallocPPluginModuleChild() -> void
    1473             : {
    1474           0 : }
    1475             : 
    1476           0 : auto PPluginModuleChild::Write(
    1477             :         const FileDescriptor& v__,
    1478             :         Message* msg__) -> void
    1479             : {
    1480           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    1481           0 :     IPC::WriteParam(msg__, pfd);
    1482           0 : }
    1483             : 
    1484           0 : auto PPluginModuleChild::Read(
    1485             :         FileDescriptor* v__,
    1486             :         const Message* msg__,
    1487             :         PickleIterator* iter__) -> bool
    1488             : {
    1489           0 :     FileDescriptor::PickleType pfd;
    1490           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    1491           0 :         return false;
    1492             :     }
    1493             : 
    1494           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    1495           0 :     if ((!((fd).IsValid()))) {
    1496           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PPluginModuleChild] Received an invalid file descriptor!");
    1497             :     }
    1498             : 
    1499           0 :     (*(v__)) = fd;
    1500           0 :     return true;
    1501             : }
    1502             : 
    1503           0 : auto PPluginModuleChild::Write(
    1504             :         const PPluginInstanceChild* v__,
    1505             :         Message* msg__,
    1506             :         bool nullable__) -> void
    1507             : {
    1508             :     int32_t id;
    1509           0 :     if ((!(v__))) {
    1510           0 :         if ((!(nullable__))) {
    1511           0 :             FatalError("NULL actor value passed to non-nullable param");
    1512             :         }
    1513           0 :         id = 0;
    1514             :     }
    1515             :     else {
    1516           0 :         id = (v__)->Id();
    1517           0 :         if ((1) == (id)) {
    1518           0 :             FatalError("actor has been |delete|d");
    1519             :         }
    1520             :     }
    1521             : 
    1522           0 :     Write(id, msg__);
    1523           0 : }
    1524             : 
    1525           0 : auto PPluginModuleChild::Read(
    1526             :         PPluginInstanceChild** v__,
    1527             :         const Message* msg__,
    1528             :         PickleIterator* iter__,
    1529             :         bool nullable__) -> bool
    1530             : {
    1531           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginInstance", PPluginInstanceMsgStart);
    1532           0 :     if ((actor).isNothing()) {
    1533           0 :         return false;
    1534             :     }
    1535             : 
    1536           0 :     (*(v__)) = static_cast<PPluginInstanceChild*>((actor).value());
    1537           0 :     return true;
    1538             : }
    1539             : 
    1540           0 : auto PPluginModuleChild::Write(
    1541             :         const PluginSettings& v__,
    1542             :         Message* msg__) -> void
    1543             : {
    1544           0 :     Write((v__).javascriptEnabled(), msg__);
    1545             :     // Sentinel = 'javascriptEnabled'
    1546           0 :     (msg__)->WriteSentinel(2386859081);
    1547           0 :     Write((v__).asdEnabled(), msg__);
    1548             :     // Sentinel = 'asdEnabled'
    1549           0 :     (msg__)->WriteSentinel(1609567717);
    1550           0 :     Write((v__).isOffline(), msg__);
    1551             :     // Sentinel = 'isOffline'
    1552           0 :     (msg__)->WriteSentinel(955516060);
    1553           0 :     Write((v__).supportsXembed(), msg__);
    1554             :     // Sentinel = 'supportsXembed'
    1555           0 :     (msg__)->WriteSentinel(3302895589);
    1556           0 :     Write((v__).supportsWindowless(), msg__);
    1557             :     // Sentinel = 'supportsWindowless'
    1558           0 :     (msg__)->WriteSentinel(594432401);
    1559           0 :     Write((v__).userAgent(), msg__);
    1560             :     // Sentinel = 'userAgent'
    1561           0 :     (msg__)->WriteSentinel(2311001113);
    1562           0 :     Write((v__).nativeCursorsSupported(), msg__);
    1563             :     // Sentinel = 'nativeCursorsSupported'
    1564           0 :     (msg__)->WriteSentinel(970581642);
    1565           0 : }
    1566             : 
    1567           0 : auto PPluginModuleChild::Read(
    1568             :         PluginSettings* v__,
    1569             :         const Message* msg__,
    1570             :         PickleIterator* iter__) -> bool
    1571             : {
    1572           0 :     if ((!(Read((&((v__)->javascriptEnabled())), msg__, iter__)))) {
    1573           0 :         FatalError("Error deserializing 'javascriptEnabled' (bool) member of 'PluginSettings'");
    1574           0 :         return false;
    1575             :     }
    1576             :     // Sentinel = 'javascriptEnabled'
    1577           0 :     if ((!((msg__)->ReadSentinel(iter__, 2386859081)))) {
    1578           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'javascriptEnabled' (bool) member of 'PluginSettings'");
    1579           0 :         return false;
    1580             :     }
    1581           0 :     if ((!(Read((&((v__)->asdEnabled())), msg__, iter__)))) {
    1582           0 :         FatalError("Error deserializing 'asdEnabled' (bool) member of 'PluginSettings'");
    1583           0 :         return false;
    1584             :     }
    1585             :     // Sentinel = 'asdEnabled'
    1586           0 :     if ((!((msg__)->ReadSentinel(iter__, 1609567717)))) {
    1587           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'asdEnabled' (bool) member of 'PluginSettings'");
    1588           0 :         return false;
    1589             :     }
    1590           0 :     if ((!(Read((&((v__)->isOffline())), msg__, iter__)))) {
    1591           0 :         FatalError("Error deserializing 'isOffline' (bool) member of 'PluginSettings'");
    1592           0 :         return false;
    1593             :     }
    1594             :     // Sentinel = 'isOffline'
    1595           0 :     if ((!((msg__)->ReadSentinel(iter__, 955516060)))) {
    1596           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isOffline' (bool) member of 'PluginSettings'");
    1597           0 :         return false;
    1598             :     }
    1599           0 :     if ((!(Read((&((v__)->supportsXembed())), msg__, iter__)))) {
    1600           0 :         FatalError("Error deserializing 'supportsXembed' (bool) member of 'PluginSettings'");
    1601           0 :         return false;
    1602             :     }
    1603             :     // Sentinel = 'supportsXembed'
    1604           0 :     if ((!((msg__)->ReadSentinel(iter__, 3302895589)))) {
    1605           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'supportsXembed' (bool) member of 'PluginSettings'");
    1606           0 :         return false;
    1607             :     }
    1608           0 :     if ((!(Read((&((v__)->supportsWindowless())), msg__, iter__)))) {
    1609           0 :         FatalError("Error deserializing 'supportsWindowless' (bool) member of 'PluginSettings'");
    1610           0 :         return false;
    1611             :     }
    1612             :     // Sentinel = 'supportsWindowless'
    1613           0 :     if ((!((msg__)->ReadSentinel(iter__, 594432401)))) {
    1614           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'supportsWindowless' (bool) member of 'PluginSettings'");
    1615           0 :         return false;
    1616             :     }
    1617           0 :     if ((!(Read((&((v__)->userAgent())), msg__, iter__)))) {
    1618           0 :         FatalError("Error deserializing 'userAgent' (nsCString) member of 'PluginSettings'");
    1619           0 :         return false;
    1620             :     }
    1621             :     // Sentinel = 'userAgent'
    1622           0 :     if ((!((msg__)->ReadSentinel(iter__, 2311001113)))) {
    1623           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'userAgent' (nsCString) member of 'PluginSettings'");
    1624           0 :         return false;
    1625             :     }
    1626           0 :     if ((!(Read((&((v__)->nativeCursorsSupported())), msg__, iter__)))) {
    1627           0 :         FatalError("Error deserializing 'nativeCursorsSupported' (bool) member of 'PluginSettings'");
    1628           0 :         return false;
    1629             :     }
    1630             :     // Sentinel = 'nativeCursorsSupported'
    1631           0 :     if ((!((msg__)->ReadSentinel(iter__, 970581642)))) {
    1632           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nativeCursorsSupported' (bool) member of 'PluginSettings'");
    1633           0 :         return false;
    1634             :     }
    1635           0 :     return true;
    1636             : }
    1637             : 
    1638           0 : auto PPluginModuleChild::Write(
    1639             :         Shmem& v__,
    1640             :         Message* msg__) -> void
    1641             : {
    1642           0 :     IPC::WriteParam(msg__, v__);
    1643           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1644           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1645           0 : }
    1646             : 
    1647           0 : auto PPluginModuleChild::Read(
    1648             :         Shmem* v__,
    1649             :         const Message* msg__,
    1650             :         PickleIterator* iter__) -> bool
    1651             : {
    1652           0 :     Shmem tmp;
    1653           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    1654           0 :         return false;
    1655             :     }
    1656             : 
    1657           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    1658           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    1659           0 :     if (rawmem) {
    1660           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    1661           0 :         return true;
    1662             :     }
    1663           0 :     (*(v__)) = Shmem();
    1664           0 :     return true;
    1665             : }
    1666             : 
    1667             : 
    1668             : 
    1669             : } // namespace plugins
    1670             : } // namespace mozilla

Generated by: LCOV version 1.13