LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginInstanceChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1920 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 87 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/PPluginInstanceChild.h"
       8             : #include "ipc/IPCMessageUtils.h"
       9             : #include "ipc/nsGUIEventIPC.h"
      10             : #include "mozilla/D3DMessageUtils.h"
      11             : #include "mozilla/plugins/PluginMessageUtils.h"
      12             : 
      13             : #include "mozilla/plugins/PPluginBackgroundDestroyerChild.h"
      14             : #include "mozilla/plugins/PPluginModuleChild.h"
      15             : #include "mozilla/plugins/PPluginScriptableObjectChild.h"
      16             : #include "mozilla/plugins/PBrowserStreamChild.h"
      17             : #include "mozilla/plugins/PStreamNotifyChild.h"
      18             : #include "mozilla/plugins/PPluginSurfaceChild.h"
      19             : 
      20             : #include "nsIFile.h"
      21             : #include "GeckoProfiler.h"
      22             : 
      23             : namespace mozilla {
      24             : namespace plugins {
      25             : 
      26             : 
      27           0 : auto PPluginInstanceChild::Answer__delete__() -> mozilla::ipc::IPCResult
      28             : {
      29           0 :     return IPC_OK();
      30             : }
      31             : 
      32           0 : auto PPluginInstanceChild::RecvPPluginScriptableObjectConstructor(PPluginScriptableObjectChild* actor) -> mozilla::ipc::IPCResult
      33             : {
      34           0 :     return IPC_OK();
      35             : }
      36             : 
      37           0 : auto PPluginInstanceChild::RecvPBrowserStreamConstructor(
      38             :         PBrowserStreamChild* actor,
      39             :         const nsCString& url,
      40             :         const uint32_t& length,
      41             :         const uint32_t& lastmodified,
      42             :         PStreamNotifyChild* notifyData,
      43             :         const nsCString& headers) -> mozilla::ipc::IPCResult
      44             : {
      45           0 :     return IPC_OK();
      46             : }
      47             : 
      48           0 : auto PPluginInstanceChild::RecvPPluginBackgroundDestroyerConstructor(PPluginBackgroundDestroyerChild* actor) -> mozilla::ipc::IPCResult
      49             : {
      50           0 :     return IPC_OK();
      51             : }
      52             : 
      53           0 : auto PPluginInstanceChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      54             : {
      55           0 : }
      56             : 
      57           0 : MOZ_IMPLICIT PPluginInstanceChild::PPluginInstanceChild() :
      58             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      59           0 :     mState(PPluginInstance::__Dead)
      60             : {
      61           0 :     MOZ_COUNT_CTOR(PPluginInstanceChild);
      62           0 : }
      63             : 
      64           0 : PPluginInstanceChild::~PPluginInstanceChild()
      65             : {
      66           0 :     MOZ_COUNT_DTOR(PPluginInstanceChild);
      67           0 : }
      68             : 
      69           0 : auto PPluginInstanceChild::Manager() const -> PPluginModuleChild*
      70             : {
      71           0 :     return static_cast<PPluginModuleChild*>(IProtocol::Manager());
      72             : }
      73             : 
      74           0 : auto PPluginInstanceChild::ManagedPPluginBackgroundDestroyerChild(nsTArray<PPluginBackgroundDestroyerChild*>& aArr) const -> void
      75             : {
      76           0 :     (mManagedPPluginBackgroundDestroyerChild).ToArray(aArr);
      77           0 : }
      78             : 
      79           0 : auto PPluginInstanceChild::ManagedPPluginBackgroundDestroyerChild() const -> const ManagedContainer<PPluginBackgroundDestroyerChild>&
      80             : {
      81           0 :     return mManagedPPluginBackgroundDestroyerChild;
      82             : }
      83             : 
      84           0 : auto PPluginInstanceChild::ManagedPPluginScriptableObjectChild(nsTArray<PPluginScriptableObjectChild*>& aArr) const -> void
      85             : {
      86           0 :     (mManagedPPluginScriptableObjectChild).ToArray(aArr);
      87           0 : }
      88             : 
      89           0 : auto PPluginInstanceChild::ManagedPPluginScriptableObjectChild() const -> const ManagedContainer<PPluginScriptableObjectChild>&
      90             : {
      91           0 :     return mManagedPPluginScriptableObjectChild;
      92             : }
      93             : 
      94           0 : auto PPluginInstanceChild::ManagedPBrowserStreamChild(nsTArray<PBrowserStreamChild*>& aArr) const -> void
      95             : {
      96           0 :     (mManagedPBrowserStreamChild).ToArray(aArr);
      97           0 : }
      98             : 
      99           0 : auto PPluginInstanceChild::ManagedPBrowserStreamChild() const -> const ManagedContainer<PBrowserStreamChild>&
     100             : {
     101           0 :     return mManagedPBrowserStreamChild;
     102             : }
     103             : 
     104           0 : auto PPluginInstanceChild::ManagedPStreamNotifyChild(nsTArray<PStreamNotifyChild*>& aArr) const -> void
     105             : {
     106           0 :     (mManagedPStreamNotifyChild).ToArray(aArr);
     107           0 : }
     108             : 
     109           0 : auto PPluginInstanceChild::ManagedPStreamNotifyChild() const -> const ManagedContainer<PStreamNotifyChild>&
     110             : {
     111           0 :     return mManagedPStreamNotifyChild;
     112             : }
     113             : 
     114           0 : auto PPluginInstanceChild::ManagedPPluginSurfaceChild(nsTArray<PPluginSurfaceChild*>& aArr) const -> void
     115             : {
     116           0 :     (mManagedPPluginSurfaceChild).ToArray(aArr);
     117           0 : }
     118             : 
     119           0 : auto PPluginInstanceChild::ManagedPPluginSurfaceChild() const -> const ManagedContainer<PPluginSurfaceChild>&
     120             : {
     121           0 :     return mManagedPPluginSurfaceChild;
     122             : }
     123             : 
     124           0 : auto PPluginInstanceChild::CallNPN_GetValue_NPNVWindowNPObject(
     125             :         PPluginScriptableObjectChild** value,
     126             :         NPError* result) -> bool
     127             : {
     128           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject(Id());
     129             : 
     130             : 
     131           0 :     (msg__)->set_interrupt();
     132             : 
     133             : 
     134           0 :     Message reply__;
     135             : 
     136           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     137           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     138             :     }
     139           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject", OTHER);
     140           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject__ID, (&(mState)));
     141             : 
     142             :     bool sendok__;
     143             :     {
     144             :         AutoProfilerTracing syncIPCTracer(
     145             :                 "IPC",
     146           0 :                 "PPluginInstance::Msg_NPN_GetValue_NPNVWindowNPObject");
     147           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     148             :     }
     149           0 :     if ((!(sendok__))) {
     150           0 :         return false;
     151             :     }
     152             : 
     153           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     154           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     155             :     }
     156             : 
     157           0 :     PickleIterator iter__(reply__);
     158             : 
     159           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)), true)))) {
     160           0 :         FatalError("Error deserializing 'PPluginScriptableObjectChild'");
     161           0 :         return false;
     162             :     }
     163             :     // Sentinel = 'value'
     164           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     165           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectChild'");
     166           0 :         return false;
     167             :     }
     168           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     169           0 :         FatalError("Error deserializing 'NPError'");
     170           0 :         return false;
     171             :     }
     172             :     // Sentinel = 'result'
     173           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     174           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     175           0 :         return false;
     176             :     }
     177           0 :     (reply__).EndRead(iter__, (reply__).type());
     178             : 
     179           0 :     return true;
     180             : }
     181             : 
     182           0 : auto PPluginInstanceChild::CallNPN_GetValue_NPNVPluginElementNPObject(
     183             :         PPluginScriptableObjectChild** value,
     184             :         NPError* result) -> bool
     185             : {
     186           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject(Id());
     187             : 
     188             : 
     189           0 :     (msg__)->set_interrupt();
     190             : 
     191             : 
     192           0 :     Message reply__;
     193             : 
     194           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     195           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     196             :     }
     197           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject", OTHER);
     198           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject__ID, (&(mState)));
     199             : 
     200             :     bool sendok__;
     201             :     {
     202             :         AutoProfilerTracing syncIPCTracer(
     203             :                 "IPC",
     204           0 :                 "PPluginInstance::Msg_NPN_GetValue_NPNVPluginElementNPObject");
     205           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     206             :     }
     207           0 :     if ((!(sendok__))) {
     208           0 :         return false;
     209             :     }
     210             : 
     211           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     212           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     213             :     }
     214             : 
     215           0 :     PickleIterator iter__(reply__);
     216             : 
     217           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)), true)))) {
     218           0 :         FatalError("Error deserializing 'PPluginScriptableObjectChild'");
     219           0 :         return false;
     220             :     }
     221             :     // Sentinel = 'value'
     222           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     223           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectChild'");
     224           0 :         return false;
     225             :     }
     226           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     227           0 :         FatalError("Error deserializing 'NPError'");
     228           0 :         return false;
     229             :     }
     230             :     // Sentinel = 'result'
     231           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     232           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     233           0 :         return false;
     234             :     }
     235           0 :     (reply__).EndRead(iter__, (reply__).type());
     236             : 
     237           0 :     return true;
     238             : }
     239             : 
     240           0 : auto PPluginInstanceChild::CallNPN_GetValue_NPNVprivateModeBool(
     241             :         bool* value,
     242             :         NPError* result) -> bool
     243             : {
     244           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool(Id());
     245             : 
     246             : 
     247           0 :     (msg__)->set_interrupt();
     248             : 
     249             : 
     250           0 :     Message reply__;
     251             : 
     252           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     253           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     254             :     }
     255           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool", OTHER);
     256           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool__ID, (&(mState)));
     257             : 
     258             :     bool sendok__;
     259             :     {
     260             :         AutoProfilerTracing syncIPCTracer(
     261             :                 "IPC",
     262           0 :                 "PPluginInstance::Msg_NPN_GetValue_NPNVprivateModeBool");
     263           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     264             :     }
     265           0 :     if ((!(sendok__))) {
     266           0 :         return false;
     267             :     }
     268             : 
     269           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     270           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     271             :     }
     272             : 
     273           0 :     PickleIterator iter__(reply__);
     274             : 
     275           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     276           0 :         FatalError("Error deserializing 'bool'");
     277           0 :         return false;
     278             :     }
     279             :     // Sentinel = 'value'
     280           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     281           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     282           0 :         return false;
     283             :     }
     284           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     285           0 :         FatalError("Error deserializing 'NPError'");
     286           0 :         return false;
     287             :     }
     288             :     // Sentinel = 'result'
     289           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     290           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     291           0 :         return false;
     292             :     }
     293           0 :     (reply__).EndRead(iter__, (reply__).type());
     294             : 
     295           0 :     return true;
     296             : }
     297             : 
     298           0 : auto PPluginInstanceChild::CallNPN_GetValue_NPNVnetscapeWindow(
     299             :         NativeWindowHandle* value,
     300             :         NPError* result) -> bool
     301             : {
     302           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow(Id());
     303             : 
     304             : 
     305           0 :     (msg__)->set_interrupt();
     306             : 
     307             : 
     308           0 :     Message reply__;
     309             : 
     310           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     311           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     312             :     }
     313           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow", OTHER);
     314           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow__ID, (&(mState)));
     315             : 
     316             :     bool sendok__;
     317             :     {
     318             :         AutoProfilerTracing syncIPCTracer(
     319             :                 "IPC",
     320           0 :                 "PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow");
     321           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     322             :     }
     323           0 :     if ((!(sendok__))) {
     324           0 :         return false;
     325             :     }
     326             : 
     327           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     328           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     329             :     }
     330             : 
     331           0 :     PickleIterator iter__(reply__);
     332             : 
     333           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     334           0 :         FatalError("Error deserializing 'NativeWindowHandle'");
     335           0 :         return false;
     336             :     }
     337             :     // Sentinel = 'value'
     338           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     339           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NativeWindowHandle'");
     340           0 :         return false;
     341             :     }
     342           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     343           0 :         FatalError("Error deserializing 'NPError'");
     344           0 :         return false;
     345             :     }
     346             :     // Sentinel = 'result'
     347           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     348           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     349           0 :         return false;
     350             :     }
     351           0 :     (reply__).EndRead(iter__, (reply__).type());
     352             : 
     353           0 :     return true;
     354             : }
     355             : 
     356           0 : auto PPluginInstanceChild::CallNPN_GetValue_NPNVdocumentOrigin(
     357             :         nsCString* value,
     358             :         NPError* result) -> bool
     359             : {
     360           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin(Id());
     361             : 
     362             : 
     363           0 :     (msg__)->set_interrupt();
     364             : 
     365             : 
     366           0 :     Message reply__;
     367             : 
     368           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     369           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     370             :     }
     371           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin", OTHER);
     372           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin__ID, (&(mState)));
     373             : 
     374             :     bool sendok__;
     375             :     {
     376             :         AutoProfilerTracing syncIPCTracer(
     377             :                 "IPC",
     378           0 :                 "PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin");
     379           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     380             :     }
     381           0 :     if ((!(sendok__))) {
     382           0 :         return false;
     383             :     }
     384             : 
     385           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     386           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     387             :     }
     388             : 
     389           0 :     PickleIterator iter__(reply__);
     390             : 
     391           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     392           0 :         FatalError("Error deserializing 'nsCString'");
     393           0 :         return false;
     394             :     }
     395             :     // Sentinel = 'value'
     396           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     397           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
     398           0 :         return false;
     399             :     }
     400           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     401           0 :         FatalError("Error deserializing 'NPError'");
     402           0 :         return false;
     403             :     }
     404             :     // Sentinel = 'result'
     405           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     406           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     407           0 :         return false;
     408             :     }
     409           0 :     (reply__).EndRead(iter__, (reply__).type());
     410             : 
     411           0 :     return true;
     412             : }
     413             : 
     414           0 : auto PPluginInstanceChild::CallNPN_GetValue_DrawingModelSupport(
     415             :         const NPNVariable& model,
     416             :         bool* value) -> bool
     417             : {
     418           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport(Id());
     419             : 
     420           0 :     Write(model, msg__);
     421             :     // Sentinel = 'model'
     422           0 :     (msg__)->WriteSentinel(3838242298);
     423             : 
     424           0 :     (msg__)->set_interrupt();
     425             : 
     426             : 
     427           0 :     Message reply__;
     428             : 
     429           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     430           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     431             :     }
     432           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport", OTHER);
     433           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport__ID, (&(mState)));
     434             : 
     435             :     bool sendok__;
     436             :     {
     437             :         AutoProfilerTracing syncIPCTracer(
     438             :                 "IPC",
     439           0 :                 "PPluginInstance::Msg_NPN_GetValue_DrawingModelSupport");
     440           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     441             :     }
     442           0 :     if ((!(sendok__))) {
     443           0 :         return false;
     444             :     }
     445             : 
     446           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     447           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     448             :     }
     449             : 
     450           0 :     PickleIterator iter__(reply__);
     451             : 
     452           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     453           0 :         FatalError("Error deserializing 'bool'");
     454           0 :         return false;
     455             :     }
     456             :     // Sentinel = 'value'
     457           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     458           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     459           0 :         return false;
     460             :     }
     461           0 :     (reply__).EndRead(iter__, (reply__).type());
     462             : 
     463           0 :     return true;
     464             : }
     465             : 
     466           0 : auto PPluginInstanceChild::CallNPN_GetValue_SupportsAsyncBitmapSurface(bool* value) -> bool
     467             : {
     468           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface(Id());
     469             : 
     470             : 
     471           0 :     (msg__)->set_interrupt();
     472             : 
     473             : 
     474           0 :     Message reply__;
     475             : 
     476           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     477           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     478             :     }
     479           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface", OTHER);
     480           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface__ID, (&(mState)));
     481             : 
     482             :     bool sendok__;
     483             :     {
     484             :         AutoProfilerTracing syncIPCTracer(
     485             :                 "IPC",
     486           0 :                 "PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface");
     487           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     488             :     }
     489           0 :     if ((!(sendok__))) {
     490           0 :         return false;
     491             :     }
     492             : 
     493           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     494           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     495             :     }
     496             : 
     497           0 :     PickleIterator iter__(reply__);
     498             : 
     499           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     500           0 :         FatalError("Error deserializing 'bool'");
     501           0 :         return false;
     502             :     }
     503             :     // Sentinel = 'value'
     504           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     505           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     506           0 :         return false;
     507             :     }
     508           0 :     (reply__).EndRead(iter__, (reply__).type());
     509             : 
     510           0 :     return true;
     511             : }
     512             : 
     513           0 : auto PPluginInstanceChild::CallNPN_GetValue_SupportsAsyncDXGISurface(bool* value) -> bool
     514             : {
     515           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface(Id());
     516             : 
     517             : 
     518           0 :     (msg__)->set_interrupt();
     519             : 
     520             : 
     521           0 :     Message reply__;
     522             : 
     523           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     524           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     525             :     }
     526           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface", OTHER);
     527           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface__ID, (&(mState)));
     528             : 
     529             :     bool sendok__;
     530             :     {
     531             :         AutoProfilerTracing syncIPCTracer(
     532             :                 "IPC",
     533           0 :                 "PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface");
     534           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     535             :     }
     536           0 :     if ((!(sendok__))) {
     537           0 :         return false;
     538             :     }
     539             : 
     540           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     541           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     542             :     }
     543             : 
     544           0 :     PickleIterator iter__(reply__);
     545             : 
     546           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
     547           0 :         FatalError("Error deserializing 'bool'");
     548           0 :         return false;
     549             :     }
     550             :     // Sentinel = 'value'
     551           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
     552           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     553           0 :         return false;
     554             :     }
     555           0 :     (reply__).EndRead(iter__, (reply__).type());
     556             : 
     557           0 :     return true;
     558             : }
     559             : 
     560           0 : auto PPluginInstanceChild::CallNPN_GetValue_PreferredDXGIAdapter(DxgiAdapterDesc* desc) -> bool
     561             : {
     562           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter(Id());
     563             : 
     564             : 
     565           0 :     (msg__)->set_interrupt();
     566             : 
     567             : 
     568           0 :     Message reply__;
     569             : 
     570           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     571           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     572             :     }
     573           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter", OTHER);
     574           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter__ID, (&(mState)));
     575             : 
     576             :     bool sendok__;
     577             :     {
     578             :         AutoProfilerTracing syncIPCTracer(
     579             :                 "IPC",
     580           0 :                 "PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter");
     581           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     582             :     }
     583           0 :     if ((!(sendok__))) {
     584           0 :         return false;
     585             :     }
     586             : 
     587           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     588           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     589             :     }
     590             : 
     591           0 :     PickleIterator iter__(reply__);
     592             : 
     593           0 :     if ((!(Read(desc, (&(reply__)), (&(iter__)))))) {
     594           0 :         FatalError("Error deserializing 'DxgiAdapterDesc'");
     595           0 :         return false;
     596             :     }
     597             :     // Sentinel = 'desc'
     598           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3761872479)))) {
     599           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'DxgiAdapterDesc'");
     600           0 :         return false;
     601             :     }
     602           0 :     (reply__).EndRead(iter__, (reply__).type());
     603             : 
     604           0 :     return true;
     605             : }
     606             : 
     607           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginWindow(
     608             :         const bool& windowed,
     609             :         NPError* result) -> bool
     610             : {
     611           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow(Id());
     612             : 
     613           0 :     Write(windowed, msg__);
     614             :     // Sentinel = 'windowed'
     615           0 :     (msg__)->WriteSentinel(755502151);
     616             : 
     617           0 :     (msg__)->set_interrupt();
     618             : 
     619             : 
     620           0 :     Message reply__;
     621             : 
     622           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     623           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     624             :     }
     625           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow", OTHER);
     626           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow__ID, (&(mState)));
     627             : 
     628             :     bool sendok__;
     629             :     {
     630             :         AutoProfilerTracing syncIPCTracer(
     631             :                 "IPC",
     632           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginWindow");
     633           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     634             :     }
     635           0 :     if ((!(sendok__))) {
     636           0 :         return false;
     637             :     }
     638             : 
     639           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     640           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     641             :     }
     642             : 
     643           0 :     PickleIterator iter__(reply__);
     644             : 
     645           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     646           0 :         FatalError("Error deserializing 'NPError'");
     647           0 :         return false;
     648             :     }
     649             :     // Sentinel = 'result'
     650           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     651           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     652           0 :         return false;
     653             :     }
     654           0 :     (reply__).EndRead(iter__, (reply__).type());
     655             : 
     656           0 :     return true;
     657             : }
     658             : 
     659           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginTransparent(
     660             :         const bool& transparent,
     661             :         NPError* result) -> bool
     662             : {
     663           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent(Id());
     664             : 
     665           0 :     Write(transparent, msg__);
     666             :     // Sentinel = 'transparent'
     667           0 :     (msg__)->WriteSentinel(542087773);
     668             : 
     669           0 :     (msg__)->set_interrupt();
     670             : 
     671             : 
     672           0 :     Message reply__;
     673             : 
     674           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     675           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     676             :     }
     677           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent", OTHER);
     678           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent__ID, (&(mState)));
     679             : 
     680             :     bool sendok__;
     681             :     {
     682             :         AutoProfilerTracing syncIPCTracer(
     683             :                 "IPC",
     684           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginTransparent");
     685           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     686             :     }
     687           0 :     if ((!(sendok__))) {
     688           0 :         return false;
     689             :     }
     690             : 
     691           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     692           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     693             :     }
     694             : 
     695           0 :     PickleIterator iter__(reply__);
     696             : 
     697           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     698           0 :         FatalError("Error deserializing 'NPError'");
     699           0 :         return false;
     700             :     }
     701             :     // Sentinel = 'result'
     702           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     703           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     704           0 :         return false;
     705             :     }
     706           0 :     (reply__).EndRead(iter__, (reply__).type());
     707             : 
     708           0 :     return true;
     709             : }
     710             : 
     711           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginUsesDOMForCursor(
     712             :         const bool& useDOMForCursor,
     713             :         NPError* result) -> bool
     714             : {
     715           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor(Id());
     716             : 
     717           0 :     Write(useDOMForCursor, msg__);
     718             :     // Sentinel = 'useDOMForCursor'
     719           0 :     (msg__)->WriteSentinel(2428712293);
     720             : 
     721           0 :     (msg__)->set_interrupt();
     722             : 
     723             : 
     724           0 :     Message reply__;
     725             : 
     726           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     727           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     728             :     }
     729           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor", OTHER);
     730           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor__ID, (&(mState)));
     731             : 
     732             :     bool sendok__;
     733             :     {
     734             :         AutoProfilerTracing syncIPCTracer(
     735             :                 "IPC",
     736           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginUsesDOMForCursor");
     737           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     738             :     }
     739           0 :     if ((!(sendok__))) {
     740           0 :         return false;
     741             :     }
     742             : 
     743           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     744           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     745             :     }
     746             : 
     747           0 :     PickleIterator iter__(reply__);
     748             : 
     749           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     750           0 :         FatalError("Error deserializing 'NPError'");
     751           0 :         return false;
     752             :     }
     753             :     // Sentinel = 'result'
     754           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     755           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     756           0 :         return false;
     757             :     }
     758           0 :     (reply__).EndRead(iter__, (reply__).type());
     759             : 
     760           0 :     return true;
     761             : }
     762             : 
     763           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginDrawingModel(
     764             :         const int& drawingModel,
     765             :         NPError* result) -> bool
     766             : {
     767           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel(Id());
     768             : 
     769           0 :     Write(drawingModel, msg__);
     770             :     // Sentinel = 'drawingModel'
     771           0 :     (msg__)->WriteSentinel(1978908149);
     772             : 
     773           0 :     (msg__)->set_interrupt();
     774             : 
     775             : 
     776           0 :     Message reply__;
     777             : 
     778           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     779           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     780             :     }
     781           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel", OTHER);
     782           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel__ID, (&(mState)));
     783             : 
     784             :     bool sendok__;
     785             :     {
     786             :         AutoProfilerTracing syncIPCTracer(
     787             :                 "IPC",
     788           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel");
     789           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     790             :     }
     791           0 :     if ((!(sendok__))) {
     792           0 :         return false;
     793             :     }
     794             : 
     795           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     796           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     797             :     }
     798             : 
     799           0 :     PickleIterator iter__(reply__);
     800             : 
     801           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     802           0 :         FatalError("Error deserializing 'NPError'");
     803           0 :         return false;
     804             :     }
     805             :     // Sentinel = 'result'
     806           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     807           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     808           0 :         return false;
     809             :     }
     810           0 :     (reply__).EndRead(iter__, (reply__).type());
     811             : 
     812           0 :     return true;
     813             : }
     814             : 
     815           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginEventModel(
     816             :         const int& eventModel,
     817             :         NPError* result) -> bool
     818             : {
     819           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel(Id());
     820             : 
     821           0 :     Write(eventModel, msg__);
     822             :     // Sentinel = 'eventModel'
     823           0 :     (msg__)->WriteSentinel(3133267613);
     824             : 
     825           0 :     (msg__)->set_interrupt();
     826             : 
     827             : 
     828           0 :     Message reply__;
     829             : 
     830           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     831           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     832             :     }
     833           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel", OTHER);
     834           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel__ID, (&(mState)));
     835             : 
     836             :     bool sendok__;
     837             :     {
     838             :         AutoProfilerTracing syncIPCTracer(
     839             :                 "IPC",
     840           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginEventModel");
     841           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     842             :     }
     843           0 :     if ((!(sendok__))) {
     844           0 :         return false;
     845             :     }
     846             : 
     847           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     848           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     849             :     }
     850             : 
     851           0 :     PickleIterator iter__(reply__);
     852             : 
     853           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     854           0 :         FatalError("Error deserializing 'NPError'");
     855           0 :         return false;
     856             :     }
     857             :     // Sentinel = 'result'
     858           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     859           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     860           0 :         return false;
     861             :     }
     862           0 :     (reply__).EndRead(iter__, (reply__).type());
     863             : 
     864           0 :     return true;
     865             : }
     866             : 
     867           0 : auto PPluginInstanceChild::CallNPN_SetValue_NPPVpluginIsPlayingAudio(
     868             :         const bool& isAudioPlaying,
     869             :         NPError* result) -> bool
     870             : {
     871           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio(Id());
     872             : 
     873           0 :     Write(isAudioPlaying, msg__);
     874             :     // Sentinel = 'isAudioPlaying'
     875           0 :     (msg__)->WriteSentinel(2019164890);
     876             : 
     877           0 :     (msg__)->set_interrupt();
     878             : 
     879             : 
     880           0 :     Message reply__;
     881             : 
     882           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     883           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     884             :     }
     885           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio", OTHER);
     886           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio__ID, (&(mState)));
     887             : 
     888             :     bool sendok__;
     889             :     {
     890             :         AutoProfilerTracing syncIPCTracer(
     891             :                 "IPC",
     892           0 :                 "PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio");
     893           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     894             :     }
     895           0 :     if ((!(sendok__))) {
     896           0 :         return false;
     897             :     }
     898             : 
     899           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     900           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     901             :     }
     902             : 
     903           0 :     PickleIterator iter__(reply__);
     904             : 
     905           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     906           0 :         FatalError("Error deserializing 'NPError'");
     907           0 :         return false;
     908             :     }
     909             :     // Sentinel = 'result'
     910           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     911           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     912           0 :         return false;
     913             :     }
     914           0 :     (reply__).EndRead(iter__, (reply__).type());
     915             : 
     916           0 :     return true;
     917             : }
     918             : 
     919           0 : auto PPluginInstanceChild::CallNPN_GetURL(
     920             :         const nsCString& url,
     921             :         const nsCString& target,
     922             :         NPError* result) -> bool
     923             : {
     924           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetURL(Id());
     925             : 
     926           0 :     Write(url, msg__);
     927             :     // Sentinel = 'url'
     928           0 :     (msg__)->WriteSentinel(1453210600);
     929           0 :     Write(target, msg__);
     930             :     // Sentinel = 'target'
     931           0 :     (msg__)->WriteSentinel(2226365285);
     932             : 
     933           0 :     (msg__)->set_interrupt();
     934             : 
     935             : 
     936           0 :     Message reply__;
     937             : 
     938           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     939           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     940             :     }
     941           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetURL", OTHER);
     942           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetURL__ID, (&(mState)));
     943             : 
     944             :     bool sendok__;
     945             :     {
     946             :         AutoProfilerTracing syncIPCTracer(
     947             :                 "IPC",
     948           0 :                 "PPluginInstance::Msg_NPN_GetURL");
     949           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     950             :     }
     951           0 :     if ((!(sendok__))) {
     952           0 :         return false;
     953             :     }
     954             : 
     955           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
     956           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     957             :     }
     958             : 
     959           0 :     PickleIterator iter__(reply__);
     960             : 
     961           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
     962           0 :         FatalError("Error deserializing 'NPError'");
     963           0 :         return false;
     964             :     }
     965             :     // Sentinel = 'result'
     966           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
     967           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
     968           0 :         return false;
     969             :     }
     970           0 :     (reply__).EndRead(iter__, (reply__).type());
     971             : 
     972           0 :     return true;
     973             : }
     974             : 
     975           0 : auto PPluginInstanceChild::CallNPN_PostURL(
     976             :         const nsCString& url,
     977             :         const nsCString& target,
     978             :         const nsCString& buffer,
     979             :         const bool& file,
     980             :         NPError* result) -> bool
     981             : {
     982           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_PostURL(Id());
     983             : 
     984           0 :     Write(url, msg__);
     985             :     // Sentinel = 'url'
     986           0 :     (msg__)->WriteSentinel(1453210600);
     987           0 :     Write(target, msg__);
     988             :     // Sentinel = 'target'
     989           0 :     (msg__)->WriteSentinel(2226365285);
     990           0 :     Write(buffer, msg__);
     991             :     // Sentinel = 'buffer'
     992           0 :     (msg__)->WriteSentinel(4093250504);
     993           0 :     Write(file, msg__);
     994             :     // Sentinel = 'file'
     995           0 :     (msg__)->WriteSentinel(224874390);
     996             : 
     997           0 :     (msg__)->set_interrupt();
     998             : 
     999             : 
    1000           0 :     Message reply__;
    1001             : 
    1002           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1003           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1004             :     }
    1005           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PostURL", OTHER);
    1006           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_PostURL__ID, (&(mState)));
    1007             : 
    1008             :     bool sendok__;
    1009             :     {
    1010             :         AutoProfilerTracing syncIPCTracer(
    1011             :                 "IPC",
    1012           0 :                 "PPluginInstance::Msg_NPN_PostURL");
    1013           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1014             :     }
    1015           0 :     if ((!(sendok__))) {
    1016           0 :         return false;
    1017             :     }
    1018             : 
    1019           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1020           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1021             :     }
    1022             : 
    1023           0 :     PickleIterator iter__(reply__);
    1024             : 
    1025           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1026           0 :         FatalError("Error deserializing 'NPError'");
    1027           0 :         return false;
    1028             :     }
    1029             :     // Sentinel = 'result'
    1030           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1031           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
    1032           0 :         return false;
    1033             :     }
    1034           0 :     (reply__).EndRead(iter__, (reply__).type());
    1035             : 
    1036           0 :     return true;
    1037             : }
    1038             : 
    1039           0 : auto PPluginInstanceChild::CallPStreamNotifyConstructor(
    1040             :         const nsCString& url,
    1041             :         const nsCString& target,
    1042             :         const bool& post,
    1043             :         const nsCString& buffer,
    1044             :         const bool& file,
    1045             :         NPError* result) -> PStreamNotifyChild*
    1046             : {
    1047           0 :     return CallPStreamNotifyConstructor(AllocPStreamNotifyChild(url, target, post, buffer, file, result), url, target, post, buffer, file, result);
    1048             : }
    1049             : 
    1050           0 : auto PPluginInstanceChild::CallPStreamNotifyConstructor(
    1051             :         PStreamNotifyChild* actor,
    1052             :         const nsCString& url,
    1053             :         const nsCString& target,
    1054             :         const bool& post,
    1055             :         const nsCString& buffer,
    1056             :         const bool& file,
    1057             :         NPError* result) -> PStreamNotifyChild*
    1058             : {
    1059           0 :     if ((!(actor))) {
    1060           0 :         NS_WARNING("Error constructing actor PStreamNotifyChild");
    1061           0 :         return nullptr;
    1062             :     }
    1063           0 :     (actor)->SetManager(this);
    1064           0 :     Register(actor);
    1065           0 :     (actor)->SetIPCChannel(GetIPCChannel());
    1066           0 :     (mManagedPStreamNotifyChild).PutEntry(actor);
    1067           0 :     (actor)->mState = mozilla::plugins::PStreamNotify::__Start;
    1068             : 
    1069           0 :     IPC::Message* msg__ = PPluginInstance::Msg_PStreamNotifyConstructor(Id());
    1070             : 
    1071           0 :     Write(actor, msg__, false);
    1072             :     // Sentinel = 'actor'
    1073           0 :     (msg__)->WriteSentinel(875202478);
    1074           0 :     Write(url, msg__);
    1075             :     // Sentinel = 'url'
    1076           0 :     (msg__)->WriteSentinel(1453210600);
    1077           0 :     Write(target, msg__);
    1078             :     // Sentinel = 'target'
    1079           0 :     (msg__)->WriteSentinel(2226365285);
    1080           0 :     Write(post, msg__);
    1081             :     // Sentinel = 'post'
    1082           0 :     (msg__)->WriteSentinel(3632211674);
    1083           0 :     Write(buffer, msg__);
    1084             :     // Sentinel = 'buffer'
    1085           0 :     (msg__)->WriteSentinel(4093250504);
    1086           0 :     Write(file, msg__);
    1087             :     // Sentinel = 'file'
    1088           0 :     (msg__)->WriteSentinel(224874390);
    1089             : 
    1090           0 :     (msg__)->set_interrupt();
    1091           0 :     (msg__)->set_constructor();
    1092             : 
    1093             : 
    1094           0 :     Message reply__;
    1095             : 
    1096           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1097           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1098             :     }
    1099           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_PStreamNotifyConstructor", OTHER);
    1100           0 :     PPluginInstance::Transition(PPluginInstance::Msg_PStreamNotifyConstructor__ID, (&(mState)));
    1101             : 
    1102             :     bool sendok__;
    1103             :     {
    1104             :         AutoProfilerTracing syncIPCTracer(
    1105             :                 "IPC",
    1106           0 :                 "PPluginInstance::Msg_PStreamNotifyConstructor");
    1107           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1108             :     }
    1109           0 :     if ((!(sendok__))) {
    1110           0 :         FatalError("constructor for actor failed");
    1111           0 :         return nullptr;
    1112             :     }
    1113             : 
    1114           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1115           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1116             :     }
    1117             : 
    1118           0 :     PickleIterator iter__(reply__);
    1119             : 
    1120           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1121             :         if (true) {
    1122           0 :             FatalError("constructor for actor failed");
    1123           0 :             return nullptr;
    1124             :         }
    1125             :     }
    1126             :     // Sentinel = 'result'
    1127           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1128           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
    1129           0 :         return nullptr;
    1130             :     }
    1131           0 :     (reply__).EndRead(iter__, (reply__).type());
    1132           0 :     return actor;
    1133             : }
    1134             : 
    1135           0 : auto PPluginInstanceChild::SendNPN_InvalidateRect(const NPRect& rect) -> bool
    1136             : {
    1137           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_InvalidateRect(Id());
    1138             : 
    1139           0 :     Write(rect, msg__);
    1140             :     // Sentinel = 'rect'
    1141           0 :     (msg__)->WriteSentinel(438776542);
    1142             : 
    1143             : 
    1144             : 
    1145             : 
    1146           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1147           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1148             :     }
    1149           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_InvalidateRect", OTHER);
    1150           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_InvalidateRect__ID, (&(mState)));
    1151             : 
    1152           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1153           0 :     return sendok__;
    1154             : }
    1155             : 
    1156           0 : auto PPluginInstanceChild::SendRevokeCurrentDirectSurface() -> bool
    1157             : {
    1158           0 :     IPC::Message* msg__ = PPluginInstance::Msg_RevokeCurrentDirectSurface(Id());
    1159             : 
    1160             : 
    1161           0 :     (msg__)->set_sync();
    1162             : 
    1163             : 
    1164           0 :     Message reply__;
    1165             : 
    1166           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1167           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1168             :     }
    1169           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_RevokeCurrentDirectSurface", OTHER);
    1170           0 :     PPluginInstance::Transition(PPluginInstance::Msg_RevokeCurrentDirectSurface__ID, (&(mState)));
    1171             : 
    1172             :     bool sendok__;
    1173             :     {
    1174             :         AutoProfilerTracing syncIPCTracer(
    1175             :                 "IPC",
    1176           0 :                 "PPluginInstance::Msg_RevokeCurrentDirectSurface");
    1177           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1178             :     }
    1179           0 :     if ((!(sendok__))) {
    1180           0 :         return false;
    1181             :     }
    1182             : 
    1183           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1184           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1185             :     }
    1186             : 
    1187           0 :     return true;
    1188             : }
    1189             : 
    1190           0 : auto PPluginInstanceChild::SendInitDXGISurface(
    1191             :         const SurfaceFormat& format,
    1192             :         const IntSize& size,
    1193             :         WindowsHandle* handle,
    1194             :         NPError* result) -> bool
    1195             : {
    1196           0 :     IPC::Message* msg__ = PPluginInstance::Msg_InitDXGISurface(Id());
    1197             : 
    1198           0 :     Write(format, msg__);
    1199             :     // Sentinel = 'format'
    1200           0 :     (msg__)->WriteSentinel(2052265543);
    1201           0 :     Write(size, msg__);
    1202             :     // Sentinel = 'size'
    1203           0 :     (msg__)->WriteSentinel(931048223);
    1204             : 
    1205           0 :     (msg__)->set_sync();
    1206             : 
    1207             : 
    1208           0 :     Message reply__;
    1209             : 
    1210           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1211           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1212             :     }
    1213           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_InitDXGISurface", OTHER);
    1214           0 :     PPluginInstance::Transition(PPluginInstance::Msg_InitDXGISurface__ID, (&(mState)));
    1215             : 
    1216             :     bool sendok__;
    1217             :     {
    1218             :         AutoProfilerTracing syncIPCTracer(
    1219             :                 "IPC",
    1220           0 :                 "PPluginInstance::Msg_InitDXGISurface");
    1221           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1222             :     }
    1223           0 :     if ((!(sendok__))) {
    1224           0 :         return false;
    1225             :     }
    1226             : 
    1227           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1228           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1229             :     }
    1230             : 
    1231           0 :     PickleIterator iter__(reply__);
    1232             : 
    1233           0 :     if ((!(Read(handle, (&(reply__)), (&(iter__)))))) {
    1234           0 :         FatalError("Error deserializing 'WindowsHandle'");
    1235           0 :         return false;
    1236             :     }
    1237             :     // Sentinel = 'handle'
    1238           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 453975108)))) {
    1239           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'WindowsHandle'");
    1240           0 :         return false;
    1241             :     }
    1242           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1243           0 :         FatalError("Error deserializing 'NPError'");
    1244           0 :         return false;
    1245             :     }
    1246             :     // Sentinel = 'result'
    1247           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1248           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
    1249           0 :         return false;
    1250             :     }
    1251           0 :     (reply__).EndRead(iter__, (reply__).type());
    1252             : 
    1253           0 :     return true;
    1254             : }
    1255             : 
    1256           0 : auto PPluginInstanceChild::SendFinalizeDXGISurface(const WindowsHandle& handle) -> bool
    1257             : {
    1258           0 :     IPC::Message* msg__ = PPluginInstance::Msg_FinalizeDXGISurface(Id());
    1259             : 
    1260           0 :     Write(handle, msg__);
    1261             :     // Sentinel = 'handle'
    1262           0 :     (msg__)->WriteSentinel(453975108);
    1263             : 
    1264           0 :     (msg__)->set_sync();
    1265             : 
    1266             : 
    1267           0 :     Message reply__;
    1268             : 
    1269           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1270           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1271             :     }
    1272           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_FinalizeDXGISurface", OTHER);
    1273           0 :     PPluginInstance::Transition(PPluginInstance::Msg_FinalizeDXGISurface__ID, (&(mState)));
    1274             : 
    1275             :     bool sendok__;
    1276             :     {
    1277             :         AutoProfilerTracing syncIPCTracer(
    1278             :                 "IPC",
    1279           0 :                 "PPluginInstance::Msg_FinalizeDXGISurface");
    1280           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1281             :     }
    1282           0 :     if ((!(sendok__))) {
    1283           0 :         return false;
    1284             :     }
    1285             : 
    1286           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1287           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1288             :     }
    1289             : 
    1290           0 :     return true;
    1291             : }
    1292             : 
    1293           0 : auto PPluginInstanceChild::SendShowDirectBitmap(
    1294             :         Shmem& buffer,
    1295             :         const SurfaceFormat& format,
    1296             :         const uint32_t& stride,
    1297             :         const IntSize& size,
    1298             :         const IntRect& dirty) -> bool
    1299             : {
    1300           0 :     IPC::Message* msg__ = PPluginInstance::Msg_ShowDirectBitmap(Id());
    1301             : 
    1302           0 :     Write(buffer, msg__);
    1303             :     // Sentinel = 'buffer'
    1304           0 :     (msg__)->WriteSentinel(4093250504);
    1305           0 :     Write(format, msg__);
    1306             :     // Sentinel = 'format'
    1307           0 :     (msg__)->WriteSentinel(2052265543);
    1308           0 :     Write(stride, msg__);
    1309             :     // Sentinel = 'stride'
    1310           0 :     (msg__)->WriteSentinel(2746301169);
    1311           0 :     Write(size, msg__);
    1312             :     // Sentinel = 'size'
    1313           0 :     (msg__)->WriteSentinel(931048223);
    1314           0 :     Write(dirty, msg__);
    1315             :     // Sentinel = 'dirty'
    1316           0 :     (msg__)->WriteSentinel(3116109685);
    1317             : 
    1318           0 :     (msg__)->set_sync();
    1319             : 
    1320             : 
    1321           0 :     Message reply__;
    1322             : 
    1323           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1324           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1325             :     }
    1326           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_ShowDirectBitmap", OTHER);
    1327           0 :     PPluginInstance::Transition(PPluginInstance::Msg_ShowDirectBitmap__ID, (&(mState)));
    1328             : 
    1329             :     bool sendok__;
    1330             :     {
    1331             :         AutoProfilerTracing syncIPCTracer(
    1332             :                 "IPC",
    1333           0 :                 "PPluginInstance::Msg_ShowDirectBitmap");
    1334           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1335             :     }
    1336           0 :     if ((!(sendok__))) {
    1337           0 :         return false;
    1338             :     }
    1339             : 
    1340           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1341           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1342             :     }
    1343             : 
    1344           0 :     return true;
    1345             : }
    1346             : 
    1347           0 : auto PPluginInstanceChild::SendShowDirectDXGISurface(
    1348             :         const WindowsHandle& handle,
    1349             :         const IntRect& dirty) -> bool
    1350             : {
    1351           0 :     IPC::Message* msg__ = PPluginInstance::Msg_ShowDirectDXGISurface(Id());
    1352             : 
    1353           0 :     Write(handle, msg__);
    1354             :     // Sentinel = 'handle'
    1355           0 :     (msg__)->WriteSentinel(453975108);
    1356           0 :     Write(dirty, msg__);
    1357             :     // Sentinel = 'dirty'
    1358           0 :     (msg__)->WriteSentinel(3116109685);
    1359             : 
    1360           0 :     (msg__)->set_sync();
    1361             : 
    1362             : 
    1363           0 :     Message reply__;
    1364             : 
    1365           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1366           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1367             :     }
    1368           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_ShowDirectDXGISurface", OTHER);
    1369           0 :     PPluginInstance::Transition(PPluginInstance::Msg_ShowDirectDXGISurface__ID, (&(mState)));
    1370             : 
    1371             :     bool sendok__;
    1372             :     {
    1373             :         AutoProfilerTracing syncIPCTracer(
    1374             :                 "IPC",
    1375           0 :                 "PPluginInstance::Msg_ShowDirectDXGISurface");
    1376           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1377             :     }
    1378           0 :     if ((!(sendok__))) {
    1379           0 :         return false;
    1380             :     }
    1381             : 
    1382           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1383           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1384             :     }
    1385             : 
    1386           0 :     return true;
    1387             : }
    1388             : 
    1389           0 : auto PPluginInstanceChild::SendShow(
    1390             :         const NPRect& updatedRect,
    1391             :         const SurfaceDescriptor& newSurface,
    1392             :         SurfaceDescriptor* prevSurface) -> bool
    1393             : {
    1394           0 :     IPC::Message* msg__ = PPluginInstance::Msg_Show(Id());
    1395             : 
    1396           0 :     Write(updatedRect, msg__);
    1397             :     // Sentinel = 'updatedRect'
    1398           0 :     (msg__)->WriteSentinel(3224039904);
    1399           0 :     Write(newSurface, msg__);
    1400             :     // Sentinel = 'newSurface'
    1401           0 :     (msg__)->WriteSentinel(3100161349);
    1402             : 
    1403           0 :     (msg__)->set_sync();
    1404             : 
    1405             : 
    1406           0 :     Message reply__;
    1407             : 
    1408           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1409           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1410             :     }
    1411           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_Show", OTHER);
    1412           0 :     PPluginInstance::Transition(PPluginInstance::Msg_Show__ID, (&(mState)));
    1413             : 
    1414             :     bool sendok__;
    1415             :     {
    1416             :         AutoProfilerTracing syncIPCTracer(
    1417             :                 "IPC",
    1418           0 :                 "PPluginInstance::Msg_Show");
    1419           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1420             :     }
    1421           0 :     if ((!(sendok__))) {
    1422           0 :         return false;
    1423             :     }
    1424             : 
    1425           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1426           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1427             :     }
    1428             : 
    1429           0 :     PickleIterator iter__(reply__);
    1430             : 
    1431           0 :     if ((!(Read(prevSurface, (&(reply__)), (&(iter__)))))) {
    1432           0 :         FatalError("Error deserializing 'SurfaceDescriptor'");
    1433           0 :         return false;
    1434             :     }
    1435             :     // Sentinel = 'prevSurface'
    1436           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1876718023)))) {
    1437           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceDescriptor'");
    1438           0 :         return false;
    1439             :     }
    1440           0 :     (reply__).EndRead(iter__, (reply__).type());
    1441             : 
    1442           0 :     return true;
    1443             : }
    1444             : 
    1445           0 : auto PPluginInstanceChild::SendPPluginSurfaceConstructor(
    1446             :         const WindowsSharedMemoryHandle& handle,
    1447             :         const IntSize& size,
    1448             :         const bool& transparent) -> PPluginSurfaceChild*
    1449             : {
    1450           0 :     return SendPPluginSurfaceConstructor(AllocPPluginSurfaceChild(handle, size, transparent), handle, size, transparent);
    1451             : }
    1452             : 
    1453           0 : auto PPluginInstanceChild::SendPPluginSurfaceConstructor(
    1454             :         PPluginSurfaceChild* actor,
    1455             :         const WindowsSharedMemoryHandle& handle,
    1456             :         const IntSize& size,
    1457             :         const bool& transparent) -> PPluginSurfaceChild*
    1458             : {
    1459           0 :     if ((!(actor))) {
    1460           0 :         NS_WARNING("Error constructing actor PPluginSurfaceChild");
    1461           0 :         return nullptr;
    1462             :     }
    1463           0 :     (actor)->SetManager(this);
    1464           0 :     Register(actor);
    1465           0 :     (actor)->SetIPCChannel(GetIPCChannel());
    1466           0 :     (mManagedPPluginSurfaceChild).PutEntry(actor);
    1467           0 :     (actor)->mState = mozilla::plugins::PPluginSurface::__Start;
    1468             : 
    1469           0 :     IPC::Message* msg__ = PPluginInstance::Msg_PPluginSurfaceConstructor(Id());
    1470             : 
    1471           0 :     Write(actor, msg__, false);
    1472             :     // Sentinel = 'actor'
    1473           0 :     (msg__)->WriteSentinel(875202478);
    1474           0 :     Write(handle, msg__);
    1475             :     // Sentinel = 'handle'
    1476           0 :     (msg__)->WriteSentinel(453975108);
    1477           0 :     Write(size, msg__);
    1478             :     // Sentinel = 'size'
    1479           0 :     (msg__)->WriteSentinel(931048223);
    1480           0 :     Write(transparent, msg__);
    1481             :     // Sentinel = 'transparent'
    1482           0 :     (msg__)->WriteSentinel(542087773);
    1483             : 
    1484           0 :     (msg__)->set_constructor();
    1485             : 
    1486             : 
    1487           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1488           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1489             :     }
    1490           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginSurfaceConstructor", OTHER);
    1491           0 :     PPluginInstance::Transition(PPluginInstance::Msg_PPluginSurfaceConstructor__ID, (&(mState)));
    1492             : 
    1493           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1494           0 :     if ((!(sendok__))) {
    1495           0 :         FatalError("constructor for actor failed");
    1496           0 :         return nullptr;
    1497             :     }
    1498           0 :     return actor;
    1499             : }
    1500             : 
    1501           0 : auto PPluginInstanceChild::CallNPN_PushPopupsEnabledState(const bool& aState) -> bool
    1502             : {
    1503           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_PushPopupsEnabledState(Id());
    1504             : 
    1505           0 :     Write(aState, msg__);
    1506             :     // Sentinel = 'aState'
    1507           0 :     (msg__)->WriteSentinel(3694751962);
    1508             : 
    1509           0 :     (msg__)->set_interrupt();
    1510             : 
    1511             : 
    1512           0 :     Message reply__;
    1513             : 
    1514           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1515           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1516             :     }
    1517           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PushPopupsEnabledState", OTHER);
    1518           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_PushPopupsEnabledState__ID, (&(mState)));
    1519             : 
    1520             :     bool sendok__;
    1521             :     {
    1522             :         AutoProfilerTracing syncIPCTracer(
    1523             :                 "IPC",
    1524           0 :                 "PPluginInstance::Msg_NPN_PushPopupsEnabledState");
    1525           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1526             :     }
    1527           0 :     if ((!(sendok__))) {
    1528           0 :         return false;
    1529             :     }
    1530             : 
    1531           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1532           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1533             :     }
    1534             : 
    1535           0 :     return true;
    1536             : }
    1537             : 
    1538           0 : auto PPluginInstanceChild::CallNPN_PopPopupsEnabledState() -> bool
    1539             : {
    1540           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_PopPopupsEnabledState(Id());
    1541             : 
    1542             : 
    1543           0 :     (msg__)->set_interrupt();
    1544             : 
    1545             : 
    1546           0 :     Message reply__;
    1547             : 
    1548           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1549           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1550             :     }
    1551           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_PopPopupsEnabledState", OTHER);
    1552           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_PopPopupsEnabledState__ID, (&(mState)));
    1553             : 
    1554             :     bool sendok__;
    1555             :     {
    1556             :         AutoProfilerTracing syncIPCTracer(
    1557             :                 "IPC",
    1558           0 :                 "PPluginInstance::Msg_NPN_PopPopupsEnabledState");
    1559           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1560             :     }
    1561           0 :     if ((!(sendok__))) {
    1562           0 :         return false;
    1563             :     }
    1564             : 
    1565           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1566           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1567             :     }
    1568             : 
    1569           0 :     return true;
    1570             : }
    1571             : 
    1572           0 : auto PPluginInstanceChild::CallNPN_GetValueForURL(
    1573             :         const NPNURLVariable& variable,
    1574             :         const nsCString& url,
    1575             :         nsCString* value,
    1576             :         NPError* result) -> bool
    1577             : {
    1578           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_GetValueForURL(Id());
    1579             : 
    1580           0 :     Write(variable, msg__);
    1581             :     // Sentinel = 'variable'
    1582           0 :     (msg__)->WriteSentinel(3111782360);
    1583           0 :     Write(url, msg__);
    1584             :     // Sentinel = 'url'
    1585           0 :     (msg__)->WriteSentinel(1453210600);
    1586             : 
    1587           0 :     (msg__)->set_interrupt();
    1588             : 
    1589             : 
    1590           0 :     Message reply__;
    1591             : 
    1592           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1593           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1594             :     }
    1595           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_GetValueForURL", OTHER);
    1596           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_GetValueForURL__ID, (&(mState)));
    1597             : 
    1598             :     bool sendok__;
    1599             :     {
    1600             :         AutoProfilerTracing syncIPCTracer(
    1601             :                 "IPC",
    1602           0 :                 "PPluginInstance::Msg_NPN_GetValueForURL");
    1603           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1604             :     }
    1605           0 :     if ((!(sendok__))) {
    1606           0 :         return false;
    1607             :     }
    1608             : 
    1609           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1610           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1611             :     }
    1612             : 
    1613           0 :     PickleIterator iter__(reply__);
    1614             : 
    1615           0 :     if ((!(Read(value, (&(reply__)), (&(iter__)))))) {
    1616           0 :         FatalError("Error deserializing 'nsCString'");
    1617           0 :         return false;
    1618             :     }
    1619             :     // Sentinel = 'value'
    1620           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3456818542)))) {
    1621           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
    1622           0 :         return false;
    1623             :     }
    1624           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1625           0 :         FatalError("Error deserializing 'NPError'");
    1626           0 :         return false;
    1627             :     }
    1628             :     // Sentinel = 'result'
    1629           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1630           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
    1631           0 :         return false;
    1632             :     }
    1633           0 :     (reply__).EndRead(iter__, (reply__).type());
    1634             : 
    1635           0 :     return true;
    1636             : }
    1637             : 
    1638           0 : auto PPluginInstanceChild::CallNPN_SetValueForURL(
    1639             :         const NPNURLVariable& variable,
    1640             :         const nsCString& url,
    1641             :         const nsCString& value,
    1642             :         NPError* result) -> bool
    1643             : {
    1644           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_SetValueForURL(Id());
    1645             : 
    1646           0 :     Write(variable, msg__);
    1647             :     // Sentinel = 'variable'
    1648           0 :     (msg__)->WriteSentinel(3111782360);
    1649           0 :     Write(url, msg__);
    1650             :     // Sentinel = 'url'
    1651           0 :     (msg__)->WriteSentinel(1453210600);
    1652           0 :     Write(value, msg__);
    1653             :     // Sentinel = 'value'
    1654           0 :     (msg__)->WriteSentinel(3456818542);
    1655             : 
    1656           0 :     (msg__)->set_interrupt();
    1657             : 
    1658             : 
    1659           0 :     Message reply__;
    1660             : 
    1661           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1662           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1663             :     }
    1664           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_SetValueForURL", OTHER);
    1665           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_SetValueForURL__ID, (&(mState)));
    1666             : 
    1667             :     bool sendok__;
    1668             :     {
    1669             :         AutoProfilerTracing syncIPCTracer(
    1670             :                 "IPC",
    1671           0 :                 "PPluginInstance::Msg_NPN_SetValueForURL");
    1672           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1673             :     }
    1674           0 :     if ((!(sendok__))) {
    1675           0 :         return false;
    1676             :     }
    1677             : 
    1678           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1679           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1680             :     }
    1681             : 
    1682           0 :     PickleIterator iter__(reply__);
    1683             : 
    1684           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1685           0 :         FatalError("Error deserializing 'NPError'");
    1686           0 :         return false;
    1687             :     }
    1688             :     // Sentinel = 'result'
    1689           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1690           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'NPError'");
    1691           0 :         return false;
    1692             :     }
    1693           0 :     (reply__).EndRead(iter__, (reply__).type());
    1694             : 
    1695           0 :     return true;
    1696             : }
    1697             : 
    1698           0 : auto PPluginInstanceChild::CallNPN_ConvertPoint(
    1699             :         const double& sourceX,
    1700             :         const bool& ignoreDestX,
    1701             :         const double& sourceY,
    1702             :         const bool& ignoreDestY,
    1703             :         const NPCoordinateSpace& sourceSpace,
    1704             :         const NPCoordinateSpace& destSpace,
    1705             :         double* destX,
    1706             :         double* destY,
    1707             :         bool* result) -> bool
    1708             : {
    1709           0 :     IPC::Message* msg__ = PPluginInstance::Msg_NPN_ConvertPoint(Id());
    1710             : 
    1711           0 :     Write(sourceX, msg__);
    1712             :     // Sentinel = 'sourceX'
    1713           0 :     (msg__)->WriteSentinel(58441274);
    1714           0 :     Write(ignoreDestX, msg__);
    1715             :     // Sentinel = 'ignoreDestX'
    1716           0 :     (msg__)->WriteSentinel(1329233425);
    1717           0 :     Write(sourceY, msg__);
    1718             :     // Sentinel = 'sourceY'
    1719           0 :     (msg__)->WriteSentinel(58441275);
    1720           0 :     Write(ignoreDestY, msg__);
    1721             :     // Sentinel = 'ignoreDestY'
    1722           0 :     (msg__)->WriteSentinel(1329233424);
    1723           0 :     Write(sourceSpace, msg__);
    1724             :     // Sentinel = 'sourceSpace'
    1725           0 :     (msg__)->WriteSentinel(3334520796);
    1726           0 :     Write(destSpace, msg__);
    1727             :     // Sentinel = 'destSpace'
    1728           0 :     (msg__)->WriteSentinel(2508972935);
    1729             : 
    1730           0 :     (msg__)->set_interrupt();
    1731             : 
    1732             : 
    1733           0 :     Message reply__;
    1734             : 
    1735           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1736           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1737             :     }
    1738           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPN_ConvertPoint", OTHER);
    1739           0 :     PPluginInstance::Transition(PPluginInstance::Msg_NPN_ConvertPoint__ID, (&(mState)));
    1740             : 
    1741             :     bool sendok__;
    1742             :     {
    1743             :         AutoProfilerTracing syncIPCTracer(
    1744             :                 "IPC",
    1745           0 :                 "PPluginInstance::Msg_NPN_ConvertPoint");
    1746           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    1747             :     }
    1748           0 :     if ((!(sendok__))) {
    1749           0 :         return false;
    1750             :     }
    1751             : 
    1752           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1753           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1754             :     }
    1755             : 
    1756           0 :     PickleIterator iter__(reply__);
    1757             : 
    1758           0 :     if ((!(Read(destX, (&(reply__)), (&(iter__)))))) {
    1759           0 :         FatalError("Error deserializing 'double'");
    1760           0 :         return false;
    1761             :     }
    1762             :     // Sentinel = 'destX'
    1763           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3495429561)))) {
    1764           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'double'");
    1765           0 :         return false;
    1766             :     }
    1767           0 :     if ((!(Read(destY, (&(reply__)), (&(iter__)))))) {
    1768           0 :         FatalError("Error deserializing 'double'");
    1769           0 :         return false;
    1770             :     }
    1771             :     // Sentinel = 'destY'
    1772           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3495429560)))) {
    1773           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'double'");
    1774           0 :         return false;
    1775             :     }
    1776           0 :     if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
    1777           0 :         FatalError("Error deserializing 'bool'");
    1778           0 :         return false;
    1779             :     }
    1780             :     // Sentinel = 'result'
    1781           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
    1782           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    1783           0 :         return false;
    1784             :     }
    1785           0 :     (reply__).EndRead(iter__, (reply__).type());
    1786             : 
    1787           0 :     return true;
    1788             : }
    1789             : 
    1790           0 : auto PPluginInstanceChild::SendRedrawPlugin() -> bool
    1791             : {
    1792           0 :     IPC::Message* msg__ = PPluginInstance::Msg_RedrawPlugin(Id());
    1793             : 
    1794             : 
    1795             : 
    1796             : 
    1797             : 
    1798           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1799           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1800             :     }
    1801           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_RedrawPlugin", OTHER);
    1802           0 :     PPluginInstance::Transition(PPluginInstance::Msg_RedrawPlugin__ID, (&(mState)));
    1803             : 
    1804           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1805           0 :     return sendok__;
    1806             : }
    1807             : 
    1808           0 : auto PPluginInstanceChild::SendSetNetscapeWindowAsParent(const NativeWindowHandle& childWindow) -> bool
    1809             : {
    1810           0 :     IPC::Message* msg__ = PPluginInstance::Msg_SetNetscapeWindowAsParent(Id());
    1811             : 
    1812           0 :     Write(childWindow, msg__);
    1813             :     // Sentinel = 'childWindow'
    1814           0 :     (msg__)->WriteSentinel(2307824933);
    1815             : 
    1816             : 
    1817             : 
    1818             : 
    1819           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1820           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1821             :     }
    1822           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetNetscapeWindowAsParent", OTHER);
    1823           0 :     PPluginInstance::Transition(PPluginInstance::Msg_SetNetscapeWindowAsParent__ID, (&(mState)));
    1824             : 
    1825           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1826           0 :     return sendok__;
    1827             : }
    1828             : 
    1829           0 : auto PPluginInstanceChild::SendGetCompositionString(
    1830             :         const uint32_t& aType,
    1831             :         nsTArray<uint8_t>* aDist,
    1832             :         int32_t* aLength) -> bool
    1833             : {
    1834           0 :     IPC::Message* msg__ = PPluginInstance::Msg_GetCompositionString(Id());
    1835             : 
    1836           0 :     Write(aType, msg__);
    1837             :     // Sentinel = 'aType'
    1838           0 :     (msg__)->WriteSentinel(1819585676);
    1839             : 
    1840           0 :     (msg__)->set_sync();
    1841             : 
    1842             : 
    1843           0 :     Message reply__;
    1844             : 
    1845           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1846           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1847             :     }
    1848           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_GetCompositionString", OTHER);
    1849           0 :     PPluginInstance::Transition(PPluginInstance::Msg_GetCompositionString__ID, (&(mState)));
    1850             : 
    1851             :     bool sendok__;
    1852             :     {
    1853             :         AutoProfilerTracing syncIPCTracer(
    1854             :                 "IPC",
    1855           0 :                 "PPluginInstance::Msg_GetCompositionString");
    1856           0 :         sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
    1857             :     }
    1858           0 :     if ((!(sendok__))) {
    1859           0 :         return false;
    1860             :     }
    1861             : 
    1862           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1863           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1864             :     }
    1865             : 
    1866           0 :     PickleIterator iter__(reply__);
    1867             : 
    1868           0 :     if ((!(Read(aDist, (&(reply__)), (&(iter__)))))) {
    1869           0 :         FatalError("Error deserializing 'nsTArray'");
    1870           0 :         return false;
    1871             :     }
    1872             :     // Sentinel = 'aDist'
    1873           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2008003332)))) {
    1874           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
    1875           0 :         return false;
    1876             :     }
    1877           0 :     if ((!(Read(aLength, (&(reply__)), (&(iter__)))))) {
    1878           0 :         FatalError("Error deserializing 'int32_t'");
    1879           0 :         return false;
    1880             :     }
    1881             :     // Sentinel = 'aLength'
    1882           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2696905790)))) {
    1883           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'int32_t'");
    1884           0 :         return false;
    1885             :     }
    1886           0 :     (reply__).EndRead(iter__, (reply__).type());
    1887             : 
    1888           0 :     return true;
    1889             : }
    1890             : 
    1891           0 : auto PPluginInstanceChild::SendSetCandidateWindow(const CandidateWindowPosition& aPosition) -> bool
    1892             : {
    1893           0 :     IPC::Message* msg__ = PPluginInstance::Msg_SetCandidateWindow(Id());
    1894             : 
    1895           0 :     Write(aPosition, msg__);
    1896             :     // Sentinel = 'aPosition'
    1897           0 :     (msg__)->WriteSentinel(2753958473);
    1898             : 
    1899             : 
    1900             : 
    1901             : 
    1902           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1903           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1904             :     }
    1905           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetCandidateWindow", OTHER);
    1906           0 :     PPluginInstance::Transition(PPluginInstance::Msg_SetCandidateWindow__ID, (&(mState)));
    1907             : 
    1908           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1909           0 :     return sendok__;
    1910             : }
    1911             : 
    1912           0 : auto PPluginInstanceChild::SendRequestCommitOrCancel(const bool& aCommitted) -> bool
    1913             : {
    1914           0 :     IPC::Message* msg__ = PPluginInstance::Msg_RequestCommitOrCancel(Id());
    1915             : 
    1916           0 :     Write(aCommitted, msg__);
    1917             :     // Sentinel = 'aCommitted'
    1918           0 :     (msg__)->WriteSentinel(2171170435);
    1919             : 
    1920             : 
    1921             : 
    1922             : 
    1923           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1924           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1925             :     }
    1926           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_RequestCommitOrCancel", OTHER);
    1927           0 :     PPluginInstance::Transition(PPluginInstance::Msg_RequestCommitOrCancel__ID, (&(mState)));
    1928             : 
    1929           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1930           0 :     return sendok__;
    1931             : }
    1932             : 
    1933           0 : auto PPluginInstanceChild::SendOnWindowedPluginKeyEvent(const NativeEventData& aKeyEventData) -> bool
    1934             : {
    1935           0 :     IPC::Message* msg__ = PPluginInstance::Msg_OnWindowedPluginKeyEvent(Id());
    1936             : 
    1937           0 :     Write(aKeyEventData, msg__);
    1938             :     // Sentinel = 'aKeyEventData'
    1939           0 :     (msg__)->WriteSentinel(1896682639);
    1940             : 
    1941             : 
    1942             : 
    1943             : 
    1944           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1945           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1946             :     }
    1947           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_OnWindowedPluginKeyEvent", OTHER);
    1948           0 :     PPluginInstance::Transition(PPluginInstance::Msg_OnWindowedPluginKeyEvent__ID, (&(mState)));
    1949             : 
    1950           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1951           0 :     return sendok__;
    1952             : }
    1953             : 
    1954           0 : auto PPluginInstanceChild::SendPPluginScriptableObjectConstructor() -> PPluginScriptableObjectChild*
    1955             : {
    1956           0 :     return SendPPluginScriptableObjectConstructor(AllocPPluginScriptableObjectChild());
    1957             : }
    1958             : 
    1959           0 : auto PPluginInstanceChild::SendPPluginScriptableObjectConstructor(PPluginScriptableObjectChild* actor) -> PPluginScriptableObjectChild*
    1960             : {
    1961           0 :     if ((!(actor))) {
    1962           0 :         NS_WARNING("Error constructing actor PPluginScriptableObjectChild");
    1963           0 :         return nullptr;
    1964             :     }
    1965           0 :     (actor)->SetManager(this);
    1966           0 :     Register(actor);
    1967           0 :     (actor)->SetIPCChannel(GetIPCChannel());
    1968           0 :     (mManagedPPluginScriptableObjectChild).PutEntry(actor);
    1969           0 :     (actor)->mState = mozilla::plugins::PPluginScriptableObject::__Start;
    1970             : 
    1971           0 :     IPC::Message* msg__ = PPluginInstance::Msg_PPluginScriptableObjectConstructor(Id());
    1972             : 
    1973           0 :     Write(actor, msg__, false);
    1974             :     // Sentinel = 'actor'
    1975           0 :     (msg__)->WriteSentinel(875202478);
    1976             : 
    1977           0 :     (msg__)->set_constructor();
    1978             : 
    1979             : 
    1980           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    1981           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    1982             :     }
    1983           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginScriptableObjectConstructor", OTHER);
    1984           0 :     PPluginInstance::Transition(PPluginInstance::Msg_PPluginScriptableObjectConstructor__ID, (&(mState)));
    1985             : 
    1986           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
    1987           0 :     if ((!(sendok__))) {
    1988           0 :         FatalError("constructor for actor failed");
    1989           0 :         return nullptr;
    1990             :     }
    1991           0 :     return actor;
    1992             : }
    1993             : 
    1994           0 : auto PPluginInstanceChild::CallPluginFocusChange(const bool& gotFocus) -> bool
    1995             : {
    1996           0 :     IPC::Message* msg__ = PPluginInstance::Msg_PluginFocusChange(Id());
    1997             : 
    1998           0 :     Write(gotFocus, msg__);
    1999             :     // Sentinel = 'gotFocus'
    2000           0 :     (msg__)->WriteSentinel(2312516654);
    2001             : 
    2002           0 :     (msg__)->set_interrupt();
    2003             : 
    2004             : 
    2005           0 :     Message reply__;
    2006             : 
    2007           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2008           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
    2009             :     }
    2010           0 :     AUTO_PROFILER_LABEL("PPluginInstance::Msg_PluginFocusChange", OTHER);
    2011           0 :     PPluginInstance::Transition(PPluginInstance::Msg_PluginFocusChange__ID, (&(mState)));
    2012             : 
    2013             :     bool sendok__;
    2014             :     {
    2015             :         AutoProfilerTracing syncIPCTracer(
    2016             :                 "IPC",
    2017           0 :                 "PPluginInstance::Msg_PluginFocusChange");
    2018           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
    2019             :     }
    2020           0 :     if ((!(sendok__))) {
    2021           0 :         return false;
    2022             :     }
    2023             : 
    2024           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2025           0 :         mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2026             :     }
    2027             : 
    2028           0 :     return true;
    2029             : }
    2030             : 
    2031           0 : auto PPluginInstanceChild::RemoveManagee(
    2032             :         int32_t aProtocolId,
    2033             :         ProtocolBase* aListener) -> void
    2034             : {
    2035           0 :     switch (aProtocolId) {
    2036             :     case PPluginBackgroundDestroyerMsgStart:
    2037             :         {
    2038           0 :             PPluginBackgroundDestroyerChild* actor = static_cast<PPluginBackgroundDestroyerChild*>(aListener);
    2039           0 :             auto& container = mManagedPPluginBackgroundDestroyerChild;
    2040           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
    2041             : 
    2042           0 :             (container).RemoveEntry(actor);
    2043           0 :             DeallocPPluginBackgroundDestroyerChild(actor);
    2044           0 :             return;
    2045             :         }
    2046             :     case PPluginScriptableObjectMsgStart:
    2047             :         {
    2048           0 :             PPluginScriptableObjectChild* actor = static_cast<PPluginScriptableObjectChild*>(aListener);
    2049           0 :             auto& container = mManagedPPluginScriptableObjectChild;
    2050           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
    2051             : 
    2052           0 :             (container).RemoveEntry(actor);
    2053           0 :             DeallocPPluginScriptableObjectChild(actor);
    2054           0 :             return;
    2055             :         }
    2056             :     case PBrowserStreamMsgStart:
    2057             :         {
    2058           0 :             PBrowserStreamChild* actor = static_cast<PBrowserStreamChild*>(aListener);
    2059           0 :             auto& container = mManagedPBrowserStreamChild;
    2060           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
    2061             : 
    2062           0 :             (container).RemoveEntry(actor);
    2063           0 :             DeallocPBrowserStreamChild(actor);
    2064           0 :             return;
    2065             :         }
    2066             :     case PStreamNotifyMsgStart:
    2067             :         {
    2068           0 :             PStreamNotifyChild* actor = static_cast<PStreamNotifyChild*>(aListener);
    2069           0 :             auto& container = mManagedPStreamNotifyChild;
    2070           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
    2071             : 
    2072           0 :             (container).RemoveEntry(actor);
    2073           0 :             DeallocPStreamNotifyChild(actor);
    2074           0 :             return;
    2075             :         }
    2076             :     case PPluginSurfaceMsgStart:
    2077             :         {
    2078           0 :             PPluginSurfaceChild* actor = static_cast<PPluginSurfaceChild*>(aListener);
    2079           0 :             auto& container = mManagedPPluginSurfaceChild;
    2080           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
    2081             : 
    2082           0 :             (container).RemoveEntry(actor);
    2083           0 :             DeallocPPluginSurfaceChild(actor);
    2084           0 :             return;
    2085             :         }
    2086             :     default:
    2087             :         {
    2088           0 :             FatalError("unreached");
    2089           0 :             return;
    2090             :         }
    2091             :     }
    2092             : }
    2093             : 
    2094           0 : auto PPluginInstanceChild::OnMessageReceived(const Message& msg__) -> PPluginInstanceChild::Result
    2095             : {
    2096           0 :     if (((mState) == (PPluginInstance::__Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
    2097           0 :         FatalError("incoming message racing with actor deletion");
    2098           0 :         return MsgProcessed;
    2099             :     }
    2100           0 :     switch ((msg__).type()) {
    2101             :     case PPluginInstance::Msg_CreateChildPopupSurrogate__ID:
    2102             :         {
    2103           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2104           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2105             :             }
    2106           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_CreateChildPopupSurrogate", OTHER);
    2107             : 
    2108           0 :             PickleIterator iter__(msg__);
    2109             :             NativeWindowHandle netscapeWindow;
    2110             : 
    2111           0 :             if ((!(Read((&(netscapeWindow)), (&(msg__)), (&(iter__)))))) {
    2112           0 :                 FatalError("Error deserializing 'NativeWindowHandle'");
    2113           0 :                 return MsgValueError;
    2114             :             }
    2115             :             // Sentinel = 'netscapeWindow'
    2116           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2261110363)))) {
    2117           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NativeWindowHandle'");
    2118           0 :                 return MsgValueError;
    2119             :             }
    2120           0 :             (msg__).EndRead(iter__, (msg__).type());
    2121           0 :             PPluginInstance::Transition(PPluginInstance::Msg_CreateChildPopupSurrogate__ID, (&(mState)));
    2122           0 :             if ((!(RecvCreateChildPopupSurrogate(mozilla::Move(netscapeWindow))))) {
    2123           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2124             :                 // Error handled in mozilla::ipc::IPCResult
    2125           0 :                 return MsgProcessingError;
    2126             :             }
    2127             : 
    2128           0 :             return MsgProcessed;
    2129             :         }
    2130             :     case PPluginInstance::Msg_WindowPosChanged__ID:
    2131             :         {
    2132           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2133           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2134             :             }
    2135           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_WindowPosChanged", OTHER);
    2136             : 
    2137           0 :             PickleIterator iter__(msg__);
    2138             :             NPRemoteEvent event;
    2139             : 
    2140           0 :             if ((!(Read((&(event)), (&(msg__)), (&(iter__)))))) {
    2141           0 :                 FatalError("Error deserializing 'NPRemoteEvent'");
    2142           0 :                 return MsgValueError;
    2143             :             }
    2144             :             // Sentinel = 'event'
    2145           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) {
    2146           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteEvent'");
    2147           0 :                 return MsgValueError;
    2148             :             }
    2149           0 :             (msg__).EndRead(iter__, (msg__).type());
    2150           0 :             PPluginInstance::Transition(PPluginInstance::Msg_WindowPosChanged__ID, (&(mState)));
    2151           0 :             if ((!(RecvWindowPosChanged(mozilla::Move(event))))) {
    2152           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2153             :                 // Error handled in mozilla::ipc::IPCResult
    2154           0 :                 return MsgProcessingError;
    2155             :             }
    2156             : 
    2157           0 :             return MsgProcessed;
    2158             :         }
    2159             :     case PPluginInstance::Msg_ContentsScaleFactorChanged__ID:
    2160             :         {
    2161           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2162           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2163             :             }
    2164           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_ContentsScaleFactorChanged", OTHER);
    2165             : 
    2166           0 :             PickleIterator iter__(msg__);
    2167             :             double aContentsScaleFactor;
    2168             : 
    2169           0 :             if ((!(Read((&(aContentsScaleFactor)), (&(msg__)), (&(iter__)))))) {
    2170           0 :                 FatalError("Error deserializing 'double'");
    2171           0 :                 return MsgValueError;
    2172             :             }
    2173             :             // Sentinel = 'aContentsScaleFactor'
    2174           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1819511578)))) {
    2175           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'double'");
    2176           0 :                 return MsgValueError;
    2177             :             }
    2178           0 :             (msg__).EndRead(iter__, (msg__).type());
    2179           0 :             PPluginInstance::Transition(PPluginInstance::Msg_ContentsScaleFactorChanged__ID, (&(mState)));
    2180           0 :             if ((!(RecvContentsScaleFactorChanged(mozilla::Move(aContentsScaleFactor))))) {
    2181           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2182             :                 // Error handled in mozilla::ipc::IPCResult
    2183           0 :                 return MsgProcessingError;
    2184             :             }
    2185             : 
    2186           0 :             return MsgProcessed;
    2187             :         }
    2188             :     case PPluginInstance::Msg_AsyncSetWindow__ID:
    2189             :         {
    2190           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2191           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2192             :             }
    2193           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_AsyncSetWindow", OTHER);
    2194             : 
    2195           0 :             PickleIterator iter__(msg__);
    2196             :             gfxSurfaceType surfaceType;
    2197           0 :             NPRemoteWindow window;
    2198             : 
    2199           0 :             if ((!(Read((&(surfaceType)), (&(msg__)), (&(iter__)))))) {
    2200           0 :                 FatalError("Error deserializing 'gfxSurfaceType'");
    2201           0 :                 return MsgValueError;
    2202             :             }
    2203             :             // Sentinel = 'surfaceType'
    2204           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3661328778)))) {
    2205           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'gfxSurfaceType'");
    2206           0 :                 return MsgValueError;
    2207             :             }
    2208           0 :             if ((!(Read((&(window)), (&(msg__)), (&(iter__)))))) {
    2209           0 :                 FatalError("Error deserializing 'NPRemoteWindow'");
    2210           0 :                 return MsgValueError;
    2211             :             }
    2212             :             // Sentinel = 'window'
    2213           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3032525362)))) {
    2214           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteWindow'");
    2215           0 :                 return MsgValueError;
    2216             :             }
    2217           0 :             (msg__).EndRead(iter__, (msg__).type());
    2218           0 :             PPluginInstance::Transition(PPluginInstance::Msg_AsyncSetWindow__ID, (&(mState)));
    2219           0 :             if ((!(RecvAsyncSetWindow(mozilla::Move(surfaceType), mozilla::Move(window))))) {
    2220           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2221             :                 // Error handled in mozilla::ipc::IPCResult
    2222           0 :                 return MsgProcessingError;
    2223             :             }
    2224             : 
    2225           0 :             return MsgProcessed;
    2226             :         }
    2227             :     case PPluginInstance::Msg_UpdateBackground__ID:
    2228             :         {
    2229           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2230           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2231             :             }
    2232           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_UpdateBackground", OTHER);
    2233             : 
    2234           0 :             PickleIterator iter__(msg__);
    2235           0 :             SurfaceDescriptor background;
    2236           0 :             nsIntRect rect;
    2237             : 
    2238           0 :             if ((!(Read((&(background)), (&(msg__)), (&(iter__)))))) {
    2239           0 :                 FatalError("Error deserializing 'SurfaceDescriptor'");
    2240           0 :                 return MsgValueError;
    2241             :             }
    2242             :             // Sentinel = 'background'
    2243           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2183382614)))) {
    2244           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'SurfaceDescriptor'");
    2245           0 :                 return MsgValueError;
    2246             :             }
    2247           0 :             if ((!(Read((&(rect)), (&(msg__)), (&(iter__)))))) {
    2248           0 :                 FatalError("Error deserializing 'nsIntRect'");
    2249           0 :                 return MsgValueError;
    2250             :             }
    2251             :             // Sentinel = 'rect'
    2252           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 438776542)))) {
    2253           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsIntRect'");
    2254           0 :                 return MsgValueError;
    2255             :             }
    2256           0 :             (msg__).EndRead(iter__, (msg__).type());
    2257           0 :             PPluginInstance::Transition(PPluginInstance::Msg_UpdateBackground__ID, (&(mState)));
    2258           0 :             if ((!(RecvUpdateBackground(mozilla::Move(background), mozilla::Move(rect))))) {
    2259           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2260             :                 // Error handled in mozilla::ipc::IPCResult
    2261           0 :                 return MsgProcessingError;
    2262             :             }
    2263             : 
    2264           0 :             return MsgProcessed;
    2265             :         }
    2266             :     case PPluginInstance::Msg_NPP_DidComposite__ID:
    2267             :         {
    2268           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2269           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2270             :             }
    2271           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_DidComposite", OTHER);
    2272             : 
    2273           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_DidComposite__ID, (&(mState)));
    2274           0 :             if ((!(RecvNPP_DidComposite()))) {
    2275           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2276             :                 // Error handled in mozilla::ipc::IPCResult
    2277           0 :                 return MsgProcessingError;
    2278             :             }
    2279             : 
    2280           0 :             return MsgProcessed;
    2281             :         }
    2282             :     case PPluginInstance::Msg_HandledWindowedPluginKeyEvent__ID:
    2283             :         {
    2284           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2285           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2286             :             }
    2287           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_HandledWindowedPluginKeyEvent", OTHER);
    2288             : 
    2289           0 :             PickleIterator iter__(msg__);
    2290           0 :             NativeEventData aKeyEventData;
    2291             :             bool aIsConsumed;
    2292             : 
    2293           0 :             if ((!(Read((&(aKeyEventData)), (&(msg__)), (&(iter__)))))) {
    2294           0 :                 FatalError("Error deserializing 'NativeEventData'");
    2295           0 :                 return MsgValueError;
    2296             :             }
    2297             :             // Sentinel = 'aKeyEventData'
    2298           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1896682639)))) {
    2299           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NativeEventData'");
    2300           0 :                 return MsgValueError;
    2301             :             }
    2302           0 :             if ((!(Read((&(aIsConsumed)), (&(msg__)), (&(iter__)))))) {
    2303           0 :                 FatalError("Error deserializing 'bool'");
    2304           0 :                 return MsgValueError;
    2305             :             }
    2306             :             // Sentinel = 'aIsConsumed'
    2307           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 95020648)))) {
    2308           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    2309           0 :                 return MsgValueError;
    2310             :             }
    2311           0 :             (msg__).EndRead(iter__, (msg__).type());
    2312           0 :             PPluginInstance::Transition(PPluginInstance::Msg_HandledWindowedPluginKeyEvent__ID, (&(mState)));
    2313           0 :             if ((!(RecvHandledWindowedPluginKeyEvent(mozilla::Move(aKeyEventData), mozilla::Move(aIsConsumed))))) {
    2314           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2315             :                 // Error handled in mozilla::ipc::IPCResult
    2316           0 :                 return MsgProcessingError;
    2317             :             }
    2318             : 
    2319           0 :             return MsgProcessed;
    2320             :         }
    2321             :     case PPluginInstance::Reply_PPluginSurfaceConstructor__ID:
    2322             :         {
    2323           0 :             return MsgProcessed;
    2324             :         }
    2325             :     case PPluginInstance::Reply_PPluginScriptableObjectConstructor__ID:
    2326             :         {
    2327           0 :             return MsgProcessed;
    2328             :         }
    2329             :     case PPluginInstance::Msg_PPluginScriptableObjectConstructor__ID:
    2330             :         {
    2331           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2332           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2333             :             }
    2334           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginScriptableObjectConstructor", OTHER);
    2335             : 
    2336           0 :             PickleIterator iter__(msg__);
    2337             :             ActorHandle handle__;
    2338             :             PPluginScriptableObjectChild* actor;
    2339             : 
    2340           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
    2341           0 :                 FatalError("Error deserializing 'ActorHandle'");
    2342           0 :                 return MsgValueError;
    2343             :             }
    2344             :             // Sentinel = 'actor'
    2345           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
    2346           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
    2347           0 :                 return MsgValueError;
    2348             :             }
    2349           0 :             (msg__).EndRead(iter__, (msg__).type());
    2350           0 :             PPluginInstance::Transition(PPluginInstance::Msg_PPluginScriptableObjectConstructor__ID, (&(mState)));
    2351           0 :             actor = AllocPPluginScriptableObjectChild();
    2352           0 :             if ((!(actor))) {
    2353           0 :                 NS_WARNING("Error constructing actor PPluginScriptableObjectChild");
    2354           0 :                 return MsgValueError;
    2355             :             }
    2356           0 :             (actor)->SetManager(this);
    2357           0 :             RegisterID(actor, (handle__).mId);
    2358           0 :             (actor)->SetIPCChannel(GetIPCChannel());
    2359           0 :             (mManagedPPluginScriptableObjectChild).PutEntry(actor);
    2360           0 :             (actor)->mState = mozilla::plugins::PPluginScriptableObject::__Start;
    2361             : 
    2362           0 :             if ((!(RecvPPluginScriptableObjectConstructor(mozilla::Move(actor))))) {
    2363           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2364             :                 // Error handled in mozilla::ipc::IPCResult
    2365           0 :                 return MsgProcessingError;
    2366             :             }
    2367             : 
    2368           0 :             return MsgProcessed;
    2369             :         }
    2370             :     case PPluginInstance::Msg_PBrowserStreamConstructor__ID:
    2371             :         {
    2372           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2373           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2374             :             }
    2375           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_PBrowserStreamConstructor", OTHER);
    2376             : 
    2377           0 :             PickleIterator iter__(msg__);
    2378             :             ActorHandle handle__;
    2379             :             PBrowserStreamChild* actor;
    2380           0 :             nsCString url;
    2381             :             uint32_t length;
    2382             :             uint32_t lastmodified;
    2383             :             PStreamNotifyChild* notifyData;
    2384           0 :             nsCString headers;
    2385             : 
    2386           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
    2387           0 :                 FatalError("Error deserializing 'ActorHandle'");
    2388           0 :                 return MsgValueError;
    2389             :             }
    2390             :             // Sentinel = 'actor'
    2391           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
    2392           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
    2393           0 :                 return MsgValueError;
    2394             :             }
    2395           0 :             if ((!(Read((&(url)), (&(msg__)), (&(iter__)))))) {
    2396           0 :                 FatalError("Error deserializing 'nsCString'");
    2397           0 :                 return MsgValueError;
    2398             :             }
    2399             :             // Sentinel = 'url'
    2400           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1453210600)))) {
    2401           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
    2402           0 :                 return MsgValueError;
    2403             :             }
    2404           0 :             if ((!(Read((&(length)), (&(msg__)), (&(iter__)))))) {
    2405           0 :                 FatalError("Error deserializing 'uint32_t'");
    2406           0 :                 return MsgValueError;
    2407             :             }
    2408             :             // Sentinel = 'length'
    2409           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1726618354)))) {
    2410           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
    2411           0 :                 return MsgValueError;
    2412             :             }
    2413           0 :             if ((!(Read((&(lastmodified)), (&(msg__)), (&(iter__)))))) {
    2414           0 :                 FatalError("Error deserializing 'uint32_t'");
    2415           0 :                 return MsgValueError;
    2416             :             }
    2417             :             // Sentinel = 'lastmodified'
    2418           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1981870025)))) {
    2419           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
    2420           0 :                 return MsgValueError;
    2421             :             }
    2422           0 :             if ((!(Read((&(notifyData)), (&(msg__)), (&(iter__)), true)))) {
    2423           0 :                 FatalError("Error deserializing 'PStreamNotifyChild'");
    2424           0 :                 return MsgValueError;
    2425             :             }
    2426             :             // Sentinel = 'notifyData'
    2427           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3287139017)))) {
    2428           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PStreamNotifyChild'");
    2429           0 :                 return MsgValueError;
    2430             :             }
    2431           0 :             if ((!(Read((&(headers)), (&(msg__)), (&(iter__)))))) {
    2432           0 :                 FatalError("Error deserializing 'nsCString'");
    2433           0 :                 return MsgValueError;
    2434             :             }
    2435             :             // Sentinel = 'headers'
    2436           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4284175217)))) {
    2437           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
    2438           0 :                 return MsgValueError;
    2439             :             }
    2440           0 :             (msg__).EndRead(iter__, (msg__).type());
    2441           0 :             PPluginInstance::Transition(PPluginInstance::Msg_PBrowserStreamConstructor__ID, (&(mState)));
    2442           0 :             actor = AllocPBrowserStreamChild(url, length, lastmodified, notifyData, headers);
    2443           0 :             if ((!(actor))) {
    2444           0 :                 NS_WARNING("Error constructing actor PBrowserStreamChild");
    2445           0 :                 return MsgValueError;
    2446             :             }
    2447           0 :             (actor)->SetManager(this);
    2448           0 :             RegisterID(actor, (handle__).mId);
    2449           0 :             (actor)->SetIPCChannel(GetIPCChannel());
    2450           0 :             (mManagedPBrowserStreamChild).PutEntry(actor);
    2451           0 :             (actor)->mState = mozilla::plugins::PBrowserStream::__Start;
    2452             : 
    2453           0 :             if ((!(RecvPBrowserStreamConstructor(mozilla::Move(actor), mozilla::Move(url), mozilla::Move(length), mozilla::Move(lastmodified), mozilla::Move(notifyData), mozilla::Move(headers))))) {
    2454           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2455             :                 // Error handled in mozilla::ipc::IPCResult
    2456           0 :                 return MsgProcessingError;
    2457             :             }
    2458             : 
    2459           0 :             return MsgProcessed;
    2460             :         }
    2461             :     case PPluginInstance::Msg_PPluginBackgroundDestroyerConstructor__ID:
    2462             :         {
    2463           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2464           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2465             :             }
    2466           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_PPluginBackgroundDestroyerConstructor", OTHER);
    2467             : 
    2468           0 :             PickleIterator iter__(msg__);
    2469             :             ActorHandle handle__;
    2470             :             PPluginBackgroundDestroyerChild* actor;
    2471             : 
    2472           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
    2473           0 :                 FatalError("Error deserializing 'ActorHandle'");
    2474           0 :                 return MsgValueError;
    2475             :             }
    2476             :             // Sentinel = 'actor'
    2477           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
    2478           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
    2479           0 :                 return MsgValueError;
    2480             :             }
    2481           0 :             (msg__).EndRead(iter__, (msg__).type());
    2482           0 :             PPluginInstance::Transition(PPluginInstance::Msg_PPluginBackgroundDestroyerConstructor__ID, (&(mState)));
    2483           0 :             actor = AllocPPluginBackgroundDestroyerChild();
    2484           0 :             if ((!(actor))) {
    2485           0 :                 NS_WARNING("Error constructing actor PPluginBackgroundDestroyerChild");
    2486           0 :                 return MsgValueError;
    2487             :             }
    2488           0 :             (actor)->SetManager(this);
    2489           0 :             RegisterID(actor, (handle__).mId);
    2490           0 :             (actor)->SetIPCChannel(GetIPCChannel());
    2491           0 :             (mManagedPPluginBackgroundDestroyerChild).PutEntry(actor);
    2492           0 :             (actor)->mState = mozilla::plugins::PPluginBackgroundDestroyer::__Start;
    2493             : 
    2494           0 :             if ((!(RecvPPluginBackgroundDestroyerConstructor(mozilla::Move(actor))))) {
    2495           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2496             :                 // Error handled in mozilla::ipc::IPCResult
    2497           0 :                 return MsgProcessingError;
    2498             :             }
    2499             : 
    2500           0 :             return MsgProcessed;
    2501             :         }
    2502             :     default:
    2503             :         {
    2504           0 :             return MsgNotKnown;
    2505             :         }
    2506             :     }
    2507             : }
    2508             : 
    2509           0 : auto PPluginInstanceChild::OnMessageReceived(
    2510             :         const Message& msg__,
    2511             :         Message*& reply__) -> PPluginInstanceChild::Result
    2512             : {
    2513           0 :     if (((mState) == (PPluginInstance::__Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
    2514           0 :         FatalError("incoming message racing with actor deletion");
    2515           0 :         return MsgProcessed;
    2516             :     }
    2517           0 :     return MsgNotKnown;
    2518             : }
    2519             : 
    2520           0 : auto PPluginInstanceChild::OnCallReceived(
    2521             :         const Message& msg__,
    2522             :         Message*& reply__) -> PPluginInstanceChild::Result
    2523             : {
    2524           0 :     if (((mState) == (PPluginInstance::__Dying)) && ((((msg__).is_reply()) != (true)) || (((msg__).is_interrupt()) != (true)))) {
    2525           0 :         FatalError("incoming message racing with actor deletion");
    2526           0 :         return MsgProcessed;
    2527             :     }
    2528           0 :     switch ((msg__).type()) {
    2529             :     case PPluginInstance::Msg___delete____ID:
    2530             :         {
    2531           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2532           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2533             :             }
    2534           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg___delete__", OTHER);
    2535             : 
    2536           0 :             PickleIterator iter__(msg__);
    2537             :             PPluginInstanceChild* actor;
    2538             : 
    2539           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
    2540           0 :                 FatalError("Error deserializing 'PPluginInstanceChild'");
    2541           0 :                 return MsgValueError;
    2542             :             }
    2543             :             // Sentinel = 'actor'
    2544           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
    2545           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPluginInstanceChild'");
    2546           0 :                 return MsgValueError;
    2547             :             }
    2548           0 :             (msg__).EndRead(iter__, (msg__).type());
    2549           0 :             PPluginInstance::Transition(PPluginInstance::Msg___delete____ID, (&(mState)));
    2550           0 :             if ((!(Answer__delete__()))) {
    2551           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2552             :                 // Error handled in mozilla::ipc::IPCResult
    2553           0 :                 return MsgProcessingError;
    2554             :             }
    2555             : 
    2556           0 :             int32_t id__ = Id();
    2557           0 :             reply__ = PPluginInstance::Reply___delete__(id__);
    2558             : 
    2559           0 :             (reply__)->set_interrupt();
    2560           0 :             (reply__)->set_reply();
    2561             : 
    2562           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2563           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2564             :             }
    2565             : 
    2566           0 :             IProtocol* mgr = (actor)->Manager();
    2567           0 :             (actor)->DestroySubtree(Deletion);
    2568           0 :             (actor)->DeallocSubtree();
    2569           0 :             (mgr)->RemoveManagee(PPluginInstanceMsgStart, actor);
    2570             : 
    2571           0 :             return MsgProcessed;
    2572             :         }
    2573             :     case PPluginInstance::Msg_CreateChildPluginWindow__ID:
    2574             :         {
    2575           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2576           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2577             :             }
    2578           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_CreateChildPluginWindow", OTHER);
    2579             : 
    2580           0 :             PPluginInstance::Transition(PPluginInstance::Msg_CreateChildPluginWindow__ID, (&(mState)));
    2581           0 :             int32_t id__ = Id();
    2582             :             NativeWindowHandle childPluginWindow;
    2583           0 :             if ((!(AnswerCreateChildPluginWindow((&(childPluginWindow)))))) {
    2584           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2585             :                 // Error handled in mozilla::ipc::IPCResult
    2586           0 :                 return MsgProcessingError;
    2587             :             }
    2588             : 
    2589           0 :             reply__ = PPluginInstance::Reply_CreateChildPluginWindow(id__);
    2590             : 
    2591           0 :             Write(childPluginWindow, reply__);
    2592             :             // Sentinel = 'childPluginWindow'
    2593           0 :             (reply__)->WriteSentinel(3094544218);
    2594           0 :             (reply__)->set_interrupt();
    2595           0 :             (reply__)->set_reply();
    2596             : 
    2597           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2598           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2599             :             }
    2600           0 :             return MsgProcessed;
    2601             :         }
    2602             :     case PPluginInstance::Msg_NPP_SetWindow__ID:
    2603             :         {
    2604           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2605           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2606             :             }
    2607           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetWindow", OTHER);
    2608             : 
    2609           0 :             PickleIterator iter__(msg__);
    2610           0 :             NPRemoteWindow window;
    2611             : 
    2612           0 :             if ((!(Read((&(window)), (&(msg__)), (&(iter__)))))) {
    2613           0 :                 FatalError("Error deserializing 'NPRemoteWindow'");
    2614           0 :                 return MsgValueError;
    2615             :             }
    2616             :             // Sentinel = 'window'
    2617           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3032525362)))) {
    2618           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteWindow'");
    2619           0 :                 return MsgValueError;
    2620             :             }
    2621           0 :             (msg__).EndRead(iter__, (msg__).type());
    2622           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_SetWindow__ID, (&(mState)));
    2623           0 :             int32_t id__ = Id();
    2624           0 :             if ((!(AnswerNPP_SetWindow(mozilla::Move(window))))) {
    2625           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2626             :                 // Error handled in mozilla::ipc::IPCResult
    2627           0 :                 return MsgProcessingError;
    2628             :             }
    2629             : 
    2630           0 :             reply__ = PPluginInstance::Reply_NPP_SetWindow(id__);
    2631             : 
    2632           0 :             (reply__)->set_interrupt();
    2633           0 :             (reply__)->set_reply();
    2634             : 
    2635           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2636           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2637             :             }
    2638           0 :             return MsgProcessed;
    2639             :         }
    2640             :     case PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams__ID:
    2641             :         {
    2642           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2643           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2644             :             }
    2645           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams", OTHER);
    2646             : 
    2647           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_GetValue_NPPVpluginWantsAllNetworkStreams__ID, (&(mState)));
    2648           0 :             int32_t id__ = Id();
    2649             :             bool value;
    2650             :             NPError result;
    2651           0 :             if ((!(AnswerNPP_GetValue_NPPVpluginWantsAllNetworkStreams((&(value)), (&(result)))))) {
    2652           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2653             :                 // Error handled in mozilla::ipc::IPCResult
    2654           0 :                 return MsgProcessingError;
    2655             :             }
    2656             : 
    2657           0 :             reply__ = PPluginInstance::Reply_NPP_GetValue_NPPVpluginWantsAllNetworkStreams(id__);
    2658             : 
    2659           0 :             Write(value, reply__);
    2660             :             // Sentinel = 'value'
    2661           0 :             (reply__)->WriteSentinel(3456818542);
    2662           0 :             Write(result, reply__);
    2663             :             // Sentinel = 'result'
    2664           0 :             (reply__)->WriteSentinel(3991766165);
    2665           0 :             (reply__)->set_interrupt();
    2666           0 :             (reply__)->set_reply();
    2667             : 
    2668           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2669           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2670             :             }
    2671           0 :             return MsgProcessed;
    2672             :         }
    2673             :     case PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject__ID:
    2674             :         {
    2675           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2676           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2677             :             }
    2678           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject", OTHER);
    2679             : 
    2680           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_GetValue_NPPVpluginScriptableNPObject__ID, (&(mState)));
    2681           0 :             int32_t id__ = Id();
    2682             :             PPluginScriptableObjectChild* value;
    2683             :             NPError result;
    2684           0 :             if ((!(AnswerNPP_GetValue_NPPVpluginScriptableNPObject((&(value)), (&(result)))))) {
    2685           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2686             :                 // Error handled in mozilla::ipc::IPCResult
    2687           0 :                 return MsgProcessingError;
    2688             :             }
    2689             : 
    2690           0 :             reply__ = PPluginInstance::Reply_NPP_GetValue_NPPVpluginScriptableNPObject(id__);
    2691             : 
    2692           0 :             Write(value, reply__, true);
    2693             :             // Sentinel = 'value'
    2694           0 :             (reply__)->WriteSentinel(3456818542);
    2695           0 :             Write(result, reply__);
    2696             :             // Sentinel = 'result'
    2697           0 :             (reply__)->WriteSentinel(3991766165);
    2698           0 :             (reply__)->set_interrupt();
    2699           0 :             (reply__)->set_reply();
    2700             : 
    2701           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2702           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2703             :             }
    2704           0 :             return MsgProcessed;
    2705             :         }
    2706             :     case PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool__ID:
    2707             :         {
    2708           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2709           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2710             :             }
    2711           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool", OTHER);
    2712             : 
    2713           0 :             PickleIterator iter__(msg__);
    2714             :             bool value;
    2715             : 
    2716           0 :             if ((!(Read((&(value)), (&(msg__)), (&(iter__)))))) {
    2717           0 :                 FatalError("Error deserializing 'bool'");
    2718           0 :                 return MsgValueError;
    2719             :             }
    2720             :             // Sentinel = 'value'
    2721           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) {
    2722           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    2723           0 :                 return MsgValueError;
    2724             :             }
    2725           0 :             (msg__).EndRead(iter__, (msg__).type());
    2726           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_SetValue_NPNVprivateModeBool__ID, (&(mState)));
    2727           0 :             int32_t id__ = Id();
    2728             :             NPError result;
    2729           0 :             if ((!(AnswerNPP_SetValue_NPNVprivateModeBool(mozilla::Move(value), (&(result)))))) {
    2730           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2731             :                 // Error handled in mozilla::ipc::IPCResult
    2732           0 :                 return MsgProcessingError;
    2733             :             }
    2734             : 
    2735           0 :             reply__ = PPluginInstance::Reply_NPP_SetValue_NPNVprivateModeBool(id__);
    2736             : 
    2737           0 :             Write(result, reply__);
    2738             :             // Sentinel = 'result'
    2739           0 :             (reply__)->WriteSentinel(3991766165);
    2740           0 :             (reply__)->set_interrupt();
    2741           0 :             (reply__)->set_reply();
    2742             : 
    2743           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2744           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2745             :             }
    2746           0 :             return MsgProcessed;
    2747             :         }
    2748             :     case PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId__ID:
    2749             :         {
    2750           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2751           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2752             :             }
    2753           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId", OTHER);
    2754             : 
    2755           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId__ID, (&(mState)));
    2756           0 :             int32_t id__ = Id();
    2757           0 :             nsCString plug_id;
    2758             :             NPError result;
    2759           0 :             if ((!(AnswerNPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId((&(plug_id)), (&(result)))))) {
    2760           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2761             :                 // Error handled in mozilla::ipc::IPCResult
    2762           0 :                 return MsgProcessingError;
    2763             :             }
    2764             : 
    2765           0 :             reply__ = PPluginInstance::Reply_NPP_GetValue_NPPVpluginNativeAccessibleAtkPlugId(id__);
    2766             : 
    2767           0 :             Write(plug_id, reply__);
    2768             :             // Sentinel = 'plug_id'
    2769           0 :             (reply__)->WriteSentinel(3926321843);
    2770           0 :             Write(result, reply__);
    2771             :             // Sentinel = 'result'
    2772           0 :             (reply__)->WriteSentinel(3991766165);
    2773           0 :             (reply__)->set_interrupt();
    2774           0 :             (reply__)->set_reply();
    2775             : 
    2776           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2777           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2778             :             }
    2779           0 :             return MsgProcessed;
    2780             :         }
    2781             :     case PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor__ID:
    2782             :         {
    2783           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2784           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2785             :             }
    2786           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor", OTHER);
    2787             : 
    2788           0 :             PickleIterator iter__(msg__);
    2789             :             double value;
    2790             : 
    2791           0 :             if ((!(Read((&(value)), (&(msg__)), (&(iter__)))))) {
    2792           0 :                 FatalError("Error deserializing 'double'");
    2793           0 :                 return MsgValueError;
    2794             :             }
    2795             :             // Sentinel = 'value'
    2796           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) {
    2797           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'double'");
    2798           0 :                 return MsgValueError;
    2799             :             }
    2800           0 :             (msg__).EndRead(iter__, (msg__).type());
    2801           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_SetValue_NPNVCSSZoomFactor__ID, (&(mState)));
    2802           0 :             int32_t id__ = Id();
    2803             :             NPError result;
    2804           0 :             if ((!(AnswerNPP_SetValue_NPNVCSSZoomFactor(mozilla::Move(value), (&(result)))))) {
    2805           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2806             :                 // Error handled in mozilla::ipc::IPCResult
    2807           0 :                 return MsgProcessingError;
    2808             :             }
    2809             : 
    2810           0 :             reply__ = PPluginInstance::Reply_NPP_SetValue_NPNVCSSZoomFactor(id__);
    2811             : 
    2812           0 :             Write(result, reply__);
    2813             :             // Sentinel = 'result'
    2814           0 :             (reply__)->WriteSentinel(3991766165);
    2815           0 :             (reply__)->set_interrupt();
    2816           0 :             (reply__)->set_reply();
    2817             : 
    2818           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2819           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2820             :             }
    2821           0 :             return MsgProcessed;
    2822             :         }
    2823             :     case PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool__ID:
    2824             :         {
    2825           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2826           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2827             :             }
    2828           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool", OTHER);
    2829             : 
    2830           0 :             PickleIterator iter__(msg__);
    2831             :             bool muted;
    2832             : 
    2833           0 :             if ((!(Read((&(muted)), (&(msg__)), (&(iter__)))))) {
    2834           0 :                 FatalError("Error deserializing 'bool'");
    2835           0 :                 return MsgValueError;
    2836             :             }
    2837             :             // Sentinel = 'muted'
    2838           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4247164072)))) {
    2839           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    2840           0 :                 return MsgValueError;
    2841             :             }
    2842           0 :             (msg__).EndRead(iter__, (msg__).type());
    2843           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_SetValue_NPNVmuteAudioBool__ID, (&(mState)));
    2844           0 :             int32_t id__ = Id();
    2845             :             NPError result;
    2846           0 :             if ((!(AnswerNPP_SetValue_NPNVmuteAudioBool(mozilla::Move(muted), (&(result)))))) {
    2847           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2848             :                 // Error handled in mozilla::ipc::IPCResult
    2849           0 :                 return MsgProcessingError;
    2850             :             }
    2851             : 
    2852           0 :             reply__ = PPluginInstance::Reply_NPP_SetValue_NPNVmuteAudioBool(id__);
    2853             : 
    2854           0 :             Write(result, reply__);
    2855             :             // Sentinel = 'result'
    2856           0 :             (reply__)->WriteSentinel(3991766165);
    2857           0 :             (reply__)->set_interrupt();
    2858           0 :             (reply__)->set_reply();
    2859             : 
    2860           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2861           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2862             :             }
    2863           0 :             return MsgProcessed;
    2864             :         }
    2865             :     case PPluginInstance::Msg_NPP_HandleEvent__ID:
    2866             :         {
    2867           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2868           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2869             :             }
    2870           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent", OTHER);
    2871             : 
    2872           0 :             PickleIterator iter__(msg__);
    2873             :             NPRemoteEvent event;
    2874             : 
    2875           0 :             if ((!(Read((&(event)), (&(msg__)), (&(iter__)))))) {
    2876           0 :                 FatalError("Error deserializing 'NPRemoteEvent'");
    2877           0 :                 return MsgValueError;
    2878             :             }
    2879             :             // Sentinel = 'event'
    2880           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) {
    2881           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteEvent'");
    2882           0 :                 return MsgValueError;
    2883             :             }
    2884           0 :             (msg__).EndRead(iter__, (msg__).type());
    2885           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_HandleEvent__ID, (&(mState)));
    2886           0 :             int32_t id__ = Id();
    2887             :             int16_t handled;
    2888           0 :             if ((!(AnswerNPP_HandleEvent(mozilla::Move(event), (&(handled)))))) {
    2889           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2890             :                 // Error handled in mozilla::ipc::IPCResult
    2891           0 :                 return MsgProcessingError;
    2892             :             }
    2893             : 
    2894           0 :             reply__ = PPluginInstance::Reply_NPP_HandleEvent(id__);
    2895             : 
    2896           0 :             Write(handled, reply__);
    2897             :             // Sentinel = 'handled'
    2898           0 :             (reply__)->WriteSentinel(2719705381);
    2899           0 :             (reply__)->set_interrupt();
    2900           0 :             (reply__)->set_reply();
    2901             : 
    2902           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2903           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2904             :             }
    2905           0 :             return MsgProcessed;
    2906             :         }
    2907             :     case PPluginInstance::Msg_NPP_HandleEvent_Shmem__ID:
    2908             :         {
    2909           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2910           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2911             :             }
    2912           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent_Shmem", OTHER);
    2913             : 
    2914           0 :             PickleIterator iter__(msg__);
    2915             :             NPRemoteEvent event;
    2916           0 :             Shmem buffer;
    2917             : 
    2918           0 :             if ((!(Read((&(event)), (&(msg__)), (&(iter__)))))) {
    2919           0 :                 FatalError("Error deserializing 'NPRemoteEvent'");
    2920           0 :                 return MsgValueError;
    2921             :             }
    2922             :             // Sentinel = 'event'
    2923           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) {
    2924           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteEvent'");
    2925           0 :                 return MsgValueError;
    2926             :             }
    2927           0 :             if ((!(Read((&(buffer)), (&(msg__)), (&(iter__)))))) {
    2928           0 :                 FatalError("Error deserializing 'Shmem'");
    2929           0 :                 return MsgValueError;
    2930             :             }
    2931             :             // Sentinel = 'buffer'
    2932           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4093250504)))) {
    2933           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Shmem'");
    2934           0 :                 return MsgValueError;
    2935             :             }
    2936           0 :             (msg__).EndRead(iter__, (msg__).type());
    2937           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_HandleEvent_Shmem__ID, (&(mState)));
    2938           0 :             int32_t id__ = Id();
    2939             :             int16_t handled;
    2940           0 :             Shmem rtnbuffer;
    2941           0 :             if ((!(AnswerNPP_HandleEvent_Shmem(mozilla::Move(event), mozilla::Move(buffer), (&(handled)), (&(rtnbuffer)))))) {
    2942           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2943             :                 // Error handled in mozilla::ipc::IPCResult
    2944           0 :                 return MsgProcessingError;
    2945             :             }
    2946             : 
    2947           0 :             reply__ = PPluginInstance::Reply_NPP_HandleEvent_Shmem(id__);
    2948             : 
    2949           0 :             Write(handled, reply__);
    2950             :             // Sentinel = 'handled'
    2951           0 :             (reply__)->WriteSentinel(2719705381);
    2952           0 :             Write(rtnbuffer, reply__);
    2953             :             // Sentinel = 'rtnbuffer'
    2954           0 :             (reply__)->WriteSentinel(897586239);
    2955           0 :             (reply__)->set_interrupt();
    2956           0 :             (reply__)->set_reply();
    2957             : 
    2958           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2959           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    2960             :             }
    2961           0 :             return MsgProcessed;
    2962             :         }
    2963             :     case PPluginInstance::Msg_NPP_HandleEvent_IOSurface__ID:
    2964             :         {
    2965           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    2966           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    2967             :             }
    2968           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_HandleEvent_IOSurface", OTHER);
    2969             : 
    2970           0 :             PickleIterator iter__(msg__);
    2971             :             NPRemoteEvent event;
    2972             :             uint32_t surfaceid;
    2973             : 
    2974           0 :             if ((!(Read((&(event)), (&(msg__)), (&(iter__)))))) {
    2975           0 :                 FatalError("Error deserializing 'NPRemoteEvent'");
    2976           0 :                 return MsgValueError;
    2977             :             }
    2978             :             // Sentinel = 'event'
    2979           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) {
    2980           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteEvent'");
    2981           0 :                 return MsgValueError;
    2982             :             }
    2983           0 :             if ((!(Read((&(surfaceid)), (&(msg__)), (&(iter__)))))) {
    2984           0 :                 FatalError("Error deserializing 'uint32_t'");
    2985           0 :                 return MsgValueError;
    2986             :             }
    2987             :             // Sentinel = 'surfaceid'
    2988           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 4140848891)))) {
    2989           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
    2990           0 :                 return MsgValueError;
    2991             :             }
    2992           0 :             (msg__).EndRead(iter__, (msg__).type());
    2993           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_HandleEvent_IOSurface__ID, (&(mState)));
    2994           0 :             int32_t id__ = Id();
    2995             :             int16_t handled;
    2996           0 :             if ((!(AnswerNPP_HandleEvent_IOSurface(mozilla::Move(event), mozilla::Move(surfaceid), (&(handled)))))) {
    2997           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    2998             :                 // Error handled in mozilla::ipc::IPCResult
    2999           0 :                 return MsgProcessingError;
    3000             :             }
    3001             : 
    3002           0 :             reply__ = PPluginInstance::Reply_NPP_HandleEvent_IOSurface(id__);
    3003             : 
    3004           0 :             Write(handled, reply__);
    3005             :             // Sentinel = 'handled'
    3006           0 :             (reply__)->WriteSentinel(2719705381);
    3007           0 :             (reply__)->set_interrupt();
    3008           0 :             (reply__)->set_reply();
    3009             : 
    3010           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3011           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3012             :             }
    3013           0 :             return MsgProcessed;
    3014             :         }
    3015             :     case PPluginInstance::Msg_Paint__ID:
    3016             :         {
    3017           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3018           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    3019             :             }
    3020           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_Paint", OTHER);
    3021             : 
    3022           0 :             PickleIterator iter__(msg__);
    3023             :             NPRemoteEvent event;
    3024             : 
    3025           0 :             if ((!(Read((&(event)), (&(msg__)), (&(iter__)))))) {
    3026           0 :                 FatalError("Error deserializing 'NPRemoteEvent'");
    3027           0 :                 return MsgValueError;
    3028             :             }
    3029             :             // Sentinel = 'event'
    3030           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 82031261)))) {
    3031           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'NPRemoteEvent'");
    3032           0 :                 return MsgValueError;
    3033             :             }
    3034           0 :             (msg__).EndRead(iter__, (msg__).type());
    3035           0 :             PPluginInstance::Transition(PPluginInstance::Msg_Paint__ID, (&(mState)));
    3036           0 :             int32_t id__ = Id();
    3037             :             int16_t handled;
    3038           0 :             if ((!(AnswerPaint(mozilla::Move(event), (&(handled)))))) {
    3039           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    3040             :                 // Error handled in mozilla::ipc::IPCResult
    3041           0 :                 return MsgProcessingError;
    3042             :             }
    3043             : 
    3044           0 :             reply__ = PPluginInstance::Reply_Paint(id__);
    3045             : 
    3046           0 :             Write(handled, reply__);
    3047             :             // Sentinel = 'handled'
    3048           0 :             (reply__)->WriteSentinel(2719705381);
    3049           0 :             (reply__)->set_interrupt();
    3050           0 :             (reply__)->set_reply();
    3051             : 
    3052           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3053           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3054             :             }
    3055           0 :             return MsgProcessed;
    3056             :         }
    3057             :     case PPluginInstance::Msg_NPP_Destroy__ID:
    3058             :         {
    3059           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3060           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    3061             :             }
    3062           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_Destroy", OTHER);
    3063             : 
    3064           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_Destroy__ID, (&(mState)));
    3065           0 :             int32_t id__ = Id();
    3066             :             NPError rv;
    3067           0 :             if ((!(AnswerNPP_Destroy((&(rv)))))) {
    3068           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    3069             :                 // Error handled in mozilla::ipc::IPCResult
    3070           0 :                 return MsgProcessingError;
    3071             :             }
    3072             : 
    3073           0 :             reply__ = PPluginInstance::Reply_NPP_Destroy(id__);
    3074             : 
    3075           0 :             Write(rv, reply__);
    3076             :             // Sentinel = 'rv'
    3077           0 :             (reply__)->WriteSentinel(702481058);
    3078           0 :             (reply__)->set_interrupt();
    3079           0 :             (reply__)->set_reply();
    3080             : 
    3081           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3082           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3083             :             }
    3084           0 :             return MsgProcessed;
    3085             :         }
    3086             :     case PPluginInstance::Msg_NPP_NewStream__ID:
    3087             :         {
    3088           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3089           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    3090             :             }
    3091           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_NPP_NewStream", OTHER);
    3092             : 
    3093           0 :             PickleIterator iter__(msg__);
    3094             :             PBrowserStreamChild* actor;
    3095           0 :             nsCString mimeType;
    3096             :             bool seekable;
    3097             : 
    3098           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
    3099           0 :                 FatalError("Error deserializing 'PBrowserStreamChild'");
    3100           0 :                 return MsgValueError;
    3101             :             }
    3102             :             // Sentinel = 'actor'
    3103           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
    3104           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PBrowserStreamChild'");
    3105           0 :                 return MsgValueError;
    3106             :             }
    3107           0 :             if ((!(Read((&(mimeType)), (&(msg__)), (&(iter__)))))) {
    3108           0 :                 FatalError("Error deserializing 'nsCString'");
    3109           0 :                 return MsgValueError;
    3110             :             }
    3111             :             // Sentinel = 'mimeType'
    3112           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2412217216)))) {
    3113           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
    3114           0 :                 return MsgValueError;
    3115             :             }
    3116           0 :             if ((!(Read((&(seekable)), (&(msg__)), (&(iter__)))))) {
    3117           0 :                 FatalError("Error deserializing 'bool'");
    3118           0 :                 return MsgValueError;
    3119             :             }
    3120             :             // Sentinel = 'seekable'
    3121           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2767438168)))) {
    3122           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
    3123           0 :                 return MsgValueError;
    3124             :             }
    3125           0 :             (msg__).EndRead(iter__, (msg__).type());
    3126           0 :             PPluginInstance::Transition(PPluginInstance::Msg_NPP_NewStream__ID, (&(mState)));
    3127           0 :             int32_t id__ = Id();
    3128             :             NPError rv;
    3129             :             uint16_t stype;
    3130           0 :             if ((!(AnswerNPP_NewStream(mozilla::Move(actor), mozilla::Move(mimeType), mozilla::Move(seekable), (&(rv)), (&(stype)))))) {
    3131           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    3132             :                 // Error handled in mozilla::ipc::IPCResult
    3133           0 :                 return MsgProcessingError;
    3134             :             }
    3135             : 
    3136           0 :             reply__ = PPluginInstance::Reply_NPP_NewStream(id__);
    3137             : 
    3138           0 :             Write(rv, reply__);
    3139             :             // Sentinel = 'rv'
    3140           0 :             (reply__)->WriteSentinel(702481058);
    3141           0 :             Write(stype, reply__);
    3142             :             // Sentinel = 'stype'
    3143           0 :             (reply__)->WriteSentinel(1829394302);
    3144           0 :             (reply__)->set_interrupt();
    3145           0 :             (reply__)->set_reply();
    3146             : 
    3147           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3148           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3149             :             }
    3150           0 :             return MsgProcessed;
    3151             :         }
    3152             :     case PPluginInstance::Msg_SetPluginFocus__ID:
    3153             :         {
    3154           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3155           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    3156             :             }
    3157           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_SetPluginFocus", OTHER);
    3158             : 
    3159           0 :             PPluginInstance::Transition(PPluginInstance::Msg_SetPluginFocus__ID, (&(mState)));
    3160           0 :             int32_t id__ = Id();
    3161           0 :             if ((!(AnswerSetPluginFocus()))) {
    3162           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    3163             :                 // Error handled in mozilla::ipc::IPCResult
    3164           0 :                 return MsgProcessingError;
    3165             :             }
    3166             : 
    3167           0 :             reply__ = PPluginInstance::Reply_SetPluginFocus(id__);
    3168             : 
    3169           0 :             (reply__)->set_interrupt();
    3170           0 :             (reply__)->set_reply();
    3171             : 
    3172           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3173           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3174             :             }
    3175           0 :             return MsgProcessed;
    3176             :         }
    3177             :     case PPluginInstance::Msg_UpdateWindow__ID:
    3178             :         {
    3179           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3180           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    3181             :             }
    3182           0 :             AUTO_PROFILER_LABEL("PPluginInstance::Msg_UpdateWindow", OTHER);
    3183             : 
    3184           0 :             PPluginInstance::Transition(PPluginInstance::Msg_UpdateWindow__ID, (&(mState)));
    3185           0 :             int32_t id__ = Id();
    3186           0 :             if ((!(AnswerUpdateWindow()))) {
    3187           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    3188             :                 // Error handled in mozilla::ipc::IPCResult
    3189           0 :                 return MsgProcessingError;
    3190             :             }
    3191             : 
    3192           0 :             reply__ = PPluginInstance::Reply_UpdateWindow(id__);
    3193             : 
    3194           0 :             (reply__)->set_interrupt();
    3195           0 :             (reply__)->set_reply();
    3196             : 
    3197           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginInstanceChild")) {
    3198           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginInstanceChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    3199             :             }
    3200           0 :             return MsgProcessed;
    3201             :         }
    3202             :     default:
    3203             :         {
    3204           0 :             return MsgNotKnown;
    3205             :         }
    3206             :     }
    3207             : }
    3208             : 
    3209           0 : auto PPluginInstanceChild::GetProtocolTypeId() -> int32_t
    3210             : {
    3211           0 :     return PPluginInstanceMsgStart;
    3212             : }
    3213             : 
    3214           0 : auto PPluginInstanceChild::ProtocolName() const -> const char*
    3215             : {
    3216           0 :     return "PPluginInstanceChild";
    3217             : }
    3218             : 
    3219           0 : auto PPluginInstanceChild::DestroySubtree(ActorDestroyReason why) -> void
    3220             : {
    3221             :     // Unregister from our manager.
    3222           0 :     Unregister(Id());
    3223             : 
    3224           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
    3225             : 
    3226             :     {
    3227             :         // Recursively shutting down PPluginBackgroundDestroyer kids
    3228           0 :         nsTArray<PPluginBackgroundDestroyerChild*> kids;
    3229             :         // Accumulate kids into a stable structure to iterate over
    3230           0 :         ManagedPPluginBackgroundDestroyerChild(kids);
    3231           0 :         for (auto& kid : kids) {
    3232             :             // Guarding against a child removing a sibling from the list during the iteration.
    3233           0 :             if ((mManagedPPluginBackgroundDestroyerChild).Contains(kid)) {
    3234           0 :                 (kid)->DestroySubtree(subtreewhy);
    3235             :             }
    3236             :         }
    3237             :     }
    3238             :     {
    3239             :         // Recursively shutting down PPluginScriptableObject kids
    3240           0 :         nsTArray<PPluginScriptableObjectChild*> kids;
    3241             :         // Accumulate kids into a stable structure to iterate over
    3242           0 :         ManagedPPluginScriptableObjectChild(kids);
    3243           0 :         for (auto& kid : kids) {
    3244             :             // Guarding against a child removing a sibling from the list during the iteration.
    3245           0 :             if ((mManagedPPluginScriptableObjectChild).Contains(kid)) {
    3246           0 :                 (kid)->DestroySubtree(subtreewhy);
    3247             :             }
    3248             :         }
    3249             :     }
    3250             :     {
    3251             :         // Recursively shutting down PBrowserStream kids
    3252           0 :         nsTArray<PBrowserStreamChild*> kids;
    3253             :         // Accumulate kids into a stable structure to iterate over
    3254           0 :         ManagedPBrowserStreamChild(kids);
    3255           0 :         for (auto& kid : kids) {
    3256             :             // Guarding against a child removing a sibling from the list during the iteration.
    3257           0 :             if ((mManagedPBrowserStreamChild).Contains(kid)) {
    3258           0 :                 (kid)->DestroySubtree(subtreewhy);
    3259             :             }
    3260             :         }
    3261             :     }
    3262             :     {
    3263             :         // Recursively shutting down PStreamNotify kids
    3264           0 :         nsTArray<PStreamNotifyChild*> kids;
    3265             :         // Accumulate kids into a stable structure to iterate over
    3266           0 :         ManagedPStreamNotifyChild(kids);
    3267           0 :         for (auto& kid : kids) {
    3268             :             // Guarding against a child removing a sibling from the list during the iteration.
    3269           0 :             if ((mManagedPStreamNotifyChild).Contains(kid)) {
    3270           0 :                 (kid)->DestroySubtree(subtreewhy);
    3271             :             }
    3272             :         }
    3273             :     }
    3274             :     {
    3275             :         // Recursively shutting down PPluginSurface kids
    3276           0 :         nsTArray<PPluginSurfaceChild*> kids;
    3277             :         // Accumulate kids into a stable structure to iterate over
    3278           0 :         ManagedPPluginSurfaceChild(kids);
    3279           0 :         for (auto& kid : kids) {
    3280             :             // Guarding against a child removing a sibling from the list during the iteration.
    3281           0 :             if ((mManagedPPluginSurfaceChild).Contains(kid)) {
    3282           0 :                 (kid)->DestroySubtree(subtreewhy);
    3283             :             }
    3284             :         }
    3285             :     }
    3286             : 
    3287             :     // Reject owning pending promises.
    3288           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    3289             : 
    3290             :     // Finally, destroy "us".
    3291           0 :     ActorDestroy(why);
    3292           0 : }
    3293             : 
    3294           0 : auto PPluginInstanceChild::DeallocSubtree() -> void
    3295             : {
    3296             :     {
    3297             :         // Recursively deleting PPluginBackgroundDestroyer kids
    3298           0 :         for (auto iter = (mManagedPPluginBackgroundDestroyerChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3299           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    3300             :         }
    3301             : 
    3302           0 :         for (auto iter = (mManagedPPluginBackgroundDestroyerChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3303           0 :             DeallocPPluginBackgroundDestroyerChild(((iter).Get())->GetKey());
    3304             :         }
    3305           0 :         (mManagedPPluginBackgroundDestroyerChild).Clear();
    3306             :     }
    3307             :     {
    3308             :         // Recursively deleting PPluginScriptableObject kids
    3309           0 :         for (auto iter = (mManagedPPluginScriptableObjectChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3310           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    3311             :         }
    3312             : 
    3313           0 :         for (auto iter = (mManagedPPluginScriptableObjectChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3314           0 :             DeallocPPluginScriptableObjectChild(((iter).Get())->GetKey());
    3315             :         }
    3316           0 :         (mManagedPPluginScriptableObjectChild).Clear();
    3317             :     }
    3318             :     {
    3319             :         // Recursively deleting PBrowserStream kids
    3320           0 :         for (auto iter = (mManagedPBrowserStreamChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3321           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    3322             :         }
    3323             : 
    3324           0 :         for (auto iter = (mManagedPBrowserStreamChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3325           0 :             DeallocPBrowserStreamChild(((iter).Get())->GetKey());
    3326             :         }
    3327           0 :         (mManagedPBrowserStreamChild).Clear();
    3328             :     }
    3329             :     {
    3330             :         // Recursively deleting PStreamNotify kids
    3331           0 :         for (auto iter = (mManagedPStreamNotifyChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3332           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    3333             :         }
    3334             : 
    3335           0 :         for (auto iter = (mManagedPStreamNotifyChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3336           0 :             DeallocPStreamNotifyChild(((iter).Get())->GetKey());
    3337             :         }
    3338           0 :         (mManagedPStreamNotifyChild).Clear();
    3339             :     }
    3340             :     {
    3341             :         // Recursively deleting PPluginSurface kids
    3342           0 :         for (auto iter = (mManagedPPluginSurfaceChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3343           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
    3344             :         }
    3345             : 
    3346           0 :         for (auto iter = (mManagedPPluginSurfaceChild).Iter(); (!((iter).Done())); (iter).Next()) {
    3347           0 :             DeallocPPluginSurfaceChild(((iter).Get())->GetKey());
    3348             :         }
    3349           0 :         (mManagedPPluginSurfaceChild).Clear();
    3350             :     }
    3351           0 : }
    3352             : 
    3353           0 : auto PPluginInstanceChild::Write(
    3354             :         const SurfaceDescriptor& v__,
    3355             :         Message* msg__) -> void
    3356             : {
    3357             :     typedef SurfaceDescriptor type__;
    3358           0 :     Write(int((v__).type()), msg__);
    3359             :     // Sentinel = 'SurfaceDescriptor'
    3360           0 :     (msg__)->WriteSentinel(1058499359);
    3361             : 
    3362           0 :     switch ((v__).type()) {
    3363             :     case type__::TShmem:
    3364             :         {
    3365           0 :             Write((v__).get_Shmem(), msg__);
    3366             :             // Sentinel = 'TShmem'
    3367           0 :             (msg__)->WriteSentinel(3517971266);
    3368           0 :             return;
    3369             :         }
    3370             :     case type__::TSurfaceDescriptorX11:
    3371             :         {
    3372           0 :             Write((v__).get_SurfaceDescriptorX11(), msg__);
    3373             :             // Sentinel = 'TSurfaceDescriptorX11'
    3374           0 :             (msg__)->WriteSentinel(3923930613);
    3375           0 :             return;
    3376             :         }
    3377             :     case type__::TPPluginSurfaceParent:
    3378             :         {
    3379           0 :             FatalError("wrong side!");
    3380           0 :             return;
    3381             :         }
    3382             :     case type__::TPPluginSurfaceChild:
    3383             :         {
    3384           0 :             Write((v__).get_PPluginSurfaceChild(), msg__, false);
    3385             :             // Sentinel = 'TPPluginSurfaceChild'
    3386           0 :             (msg__)->WriteSentinel(4004727756);
    3387           0 :             return;
    3388             :         }
    3389             :     case type__::TIOSurfaceDescriptor:
    3390             :         {
    3391           0 :             Write((v__).get_IOSurfaceDescriptor(), msg__);
    3392             :             // Sentinel = 'TIOSurfaceDescriptor'
    3393           0 :             (msg__)->WriteSentinel(4218865066);
    3394           0 :             return;
    3395             :         }
    3396             :     case type__::Tnull_t:
    3397             :         {
    3398           0 :             Write((v__).get_null_t(), msg__);
    3399             :             // Sentinel = 'Tnull_t'
    3400           0 :             (msg__)->WriteSentinel(3731137201);
    3401           0 :             return;
    3402             :         }
    3403             :     default:
    3404             :         {
    3405           0 :             FatalError("unknown union type");
    3406           0 :             return;
    3407             :         }
    3408             :     }
    3409             : }
    3410             : 
    3411           0 : auto PPluginInstanceChild::Read(
    3412             :         SurfaceDescriptor* v__,
    3413             :         const Message* msg__,
    3414             :         PickleIterator* iter__) -> bool
    3415             : {
    3416             :     typedef SurfaceDescriptor type__;
    3417             :     int type;
    3418           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3419           0 :         mozilla::ipc::UnionTypeReadError("SurfaceDescriptor");
    3420           0 :         return false;
    3421             :     }
    3422             :     // Sentinel = 'SurfaceDescriptor'
    3423           0 :     if ((!((msg__)->ReadSentinel(iter__, 1058499359)))) {
    3424           0 :         mozilla::ipc::SentinelReadError("SurfaceDescriptor");
    3425           0 :         return false;
    3426             :     }
    3427             : 
    3428           0 :     switch (type) {
    3429             :     case type__::TShmem:
    3430             :         {
    3431           0 :             Shmem tmp = Shmem();
    3432           0 :             (*(v__)) = tmp;
    3433           0 :             if ((!(Read((&((v__)->get_Shmem())), msg__, iter__)))) {
    3434           0 :                 FatalError("Error deserializing Union type");
    3435           0 :                 return false;
    3436             :             }
    3437             :             // Sentinel = 'TShmem'
    3438           0 :             if ((!((msg__)->ReadSentinel(iter__, 3517971266)))) {
    3439           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3440           0 :                 return false;
    3441             :             }
    3442           0 :             return true;
    3443             :         }
    3444             :     case type__::TSurfaceDescriptorX11:
    3445             :         {
    3446           0 :             SurfaceDescriptorX11 tmp = SurfaceDescriptorX11();
    3447           0 :             (*(v__)) = tmp;
    3448           0 :             if ((!(Read((&((v__)->get_SurfaceDescriptorX11())), msg__, iter__)))) {
    3449           0 :                 FatalError("Error deserializing Union type");
    3450           0 :                 return false;
    3451             :             }
    3452             :             // Sentinel = 'TSurfaceDescriptorX11'
    3453           0 :             if ((!((msg__)->ReadSentinel(iter__, 3923930613)))) {
    3454           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3455           0 :                 return false;
    3456             :             }
    3457           0 :             return true;
    3458             :         }
    3459             :     case type__::TPPluginSurfaceParent:
    3460             :         {
    3461           0 :             PPluginSurfaceChild* tmp = nullptr;
    3462           0 :             (*(v__)) = tmp;
    3463           0 :             if ((!(Read((&((v__)->get_PPluginSurfaceChild())), msg__, iter__, false)))) {
    3464           0 :                 FatalError("Error deserializing Union type");
    3465           0 :                 return false;
    3466             :             }
    3467             :             // Sentinel = 'TPPluginSurfaceParent'
    3468           0 :             if ((!((msg__)->ReadSentinel(iter__, 1596158763)))) {
    3469           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3470           0 :                 return false;
    3471             :             }
    3472           0 :             return true;
    3473             :         }
    3474             :     case type__::TPPluginSurfaceChild:
    3475             :         {
    3476           0 :             return false;
    3477             :         }
    3478             :     case type__::TIOSurfaceDescriptor:
    3479             :         {
    3480           0 :             IOSurfaceDescriptor tmp = IOSurfaceDescriptor();
    3481           0 :             (*(v__)) = tmp;
    3482           0 :             if ((!(Read((&((v__)->get_IOSurfaceDescriptor())), msg__, iter__)))) {
    3483           0 :                 FatalError("Error deserializing Union type");
    3484           0 :                 return false;
    3485             :             }
    3486             :             // Sentinel = 'TIOSurfaceDescriptor'
    3487           0 :             if ((!((msg__)->ReadSentinel(iter__, 4218865066)))) {
    3488           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3489           0 :                 return false;
    3490             :             }
    3491           0 :             return true;
    3492             :         }
    3493             :     case type__::Tnull_t:
    3494             :         {
    3495             :             null_t tmp = null_t();
    3496           0 :             (*(v__)) = tmp;
    3497           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    3498           0 :                 FatalError("Error deserializing Union type");
    3499           0 :                 return false;
    3500             :             }
    3501             :             // Sentinel = 'Tnull_t'
    3502           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    3503           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3504           0 :                 return false;
    3505             :             }
    3506           0 :             return true;
    3507             :         }
    3508             :     default:
    3509             :         {
    3510           0 :             FatalError("unknown union type");
    3511           0 :             return false;
    3512             :         }
    3513             :     }
    3514             : }
    3515             : 
    3516           0 : auto PPluginInstanceChild::Write(
    3517             :         Shmem& v__,
    3518             :         Message* msg__) -> void
    3519             : {
    3520           0 :     IPC::WriteParam(msg__, v__);
    3521           0 :     (v__).RevokeRights(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    3522           0 :     (v__).forget(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    3523           0 : }
    3524             : 
    3525           0 : auto PPluginInstanceChild::Read(
    3526             :         Shmem* v__,
    3527             :         const Message* msg__,
    3528             :         PickleIterator* iter__) -> bool
    3529             : {
    3530           0 :     Shmem tmp;
    3531           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(tmp)))))) {
    3532           0 :         return false;
    3533             :     }
    3534             : 
    3535           0 :     Shmem::id_t shmemid = (tmp).Id(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead());
    3536           0 :     Shmem::SharedMemory* rawmem = LookupSharedMemory(shmemid);
    3537           0 :     if (rawmem) {
    3538           0 :         (*(v__)) = Shmem(Shmem::IHadBetterBeIPDLCodeCallingThis_OtherwiseIAmADoodyhead(), rawmem, shmemid);
    3539           0 :         return true;
    3540             :     }
    3541           0 :     (*(v__)) = Shmem();
    3542           0 :     return true;
    3543             : }
    3544             : 
    3545           0 : auto PPluginInstanceChild::Write(
    3546             :         const PPluginSurfaceChild* v__,
    3547             :         Message* msg__,
    3548             :         bool nullable__) -> void
    3549             : {
    3550             :     int32_t id;
    3551           0 :     if ((!(v__))) {
    3552           0 :         if ((!(nullable__))) {
    3553           0 :             FatalError("NULL actor value passed to non-nullable param");
    3554             :         }
    3555           0 :         id = 0;
    3556             :     }
    3557             :     else {
    3558           0 :         id = (v__)->Id();
    3559           0 :         if ((1) == (id)) {
    3560           0 :             FatalError("actor has been |delete|d");
    3561             :         }
    3562             :     }
    3563             : 
    3564           0 :     Write(id, msg__);
    3565           0 : }
    3566             : 
    3567           0 : auto PPluginInstanceChild::Read(
    3568             :         PPluginSurfaceChild** v__,
    3569             :         const Message* msg__,
    3570             :         PickleIterator* iter__,
    3571             :         bool nullable__) -> bool
    3572             : {
    3573           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginSurface", PPluginSurfaceMsgStart);
    3574           0 :     if ((actor).isNothing()) {
    3575           0 :         return false;
    3576             :     }
    3577             : 
    3578           0 :     (*(v__)) = static_cast<PPluginSurfaceChild*>((actor).value());
    3579           0 :     return true;
    3580             : }
    3581             : 
    3582           0 : auto PPluginInstanceChild::Write(
    3583             :         const PPluginBackgroundDestroyerChild* v__,
    3584             :         Message* msg__,
    3585             :         bool nullable__) -> void
    3586             : {
    3587             :     int32_t id;
    3588           0 :     if ((!(v__))) {
    3589           0 :         if ((!(nullable__))) {
    3590           0 :             FatalError("NULL actor value passed to non-nullable param");
    3591             :         }
    3592           0 :         id = 0;
    3593             :     }
    3594             :     else {
    3595           0 :         id = (v__)->Id();
    3596           0 :         if ((1) == (id)) {
    3597           0 :             FatalError("actor has been |delete|d");
    3598             :         }
    3599             :     }
    3600             : 
    3601           0 :     Write(id, msg__);
    3602           0 : }
    3603             : 
    3604           0 : auto PPluginInstanceChild::Read(
    3605             :         PPluginBackgroundDestroyerChild** v__,
    3606             :         const Message* msg__,
    3607             :         PickleIterator* iter__,
    3608             :         bool nullable__) -> bool
    3609             : {
    3610           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginBackgroundDestroyer", PPluginBackgroundDestroyerMsgStart);
    3611           0 :     if ((actor).isNothing()) {
    3612           0 :         return false;
    3613             :     }
    3614             : 
    3615           0 :     (*(v__)) = static_cast<PPluginBackgroundDestroyerChild*>((actor).value());
    3616           0 :     return true;
    3617             : }
    3618             : 
    3619           0 : auto PPluginInstanceChild::Write(
    3620             :         const IOSurfaceDescriptor& v__,
    3621             :         Message* msg__) -> void
    3622             : {
    3623           0 :     Write((v__).surfaceId(), msg__);
    3624             :     // Sentinel = 'surfaceId'
    3625           0 :     (msg__)->WriteSentinel(4108848731);
    3626           0 :     Write((v__).contentsScaleFactor(), msg__);
    3627             :     // Sentinel = 'contentsScaleFactor'
    3628           0 :     (msg__)->WriteSentinel(1302021034);
    3629           0 : }
    3630             : 
    3631           0 : auto PPluginInstanceChild::Read(
    3632             :         IOSurfaceDescriptor* v__,
    3633             :         const Message* msg__,
    3634             :         PickleIterator* iter__) -> bool
    3635             : {
    3636           0 :     if ((!(Read((&((v__)->surfaceId())), msg__, iter__)))) {
    3637           0 :         FatalError("Error deserializing 'surfaceId' (uint32_t) member of 'IOSurfaceDescriptor'");
    3638           0 :         return false;
    3639             :     }
    3640             :     // Sentinel = 'surfaceId'
    3641           0 :     if ((!((msg__)->ReadSentinel(iter__, 4108848731)))) {
    3642           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'surfaceId' (uint32_t) member of 'IOSurfaceDescriptor'");
    3643           0 :         return false;
    3644             :     }
    3645           0 :     if ((!(Read((&((v__)->contentsScaleFactor())), msg__, iter__)))) {
    3646           0 :         FatalError("Error deserializing 'contentsScaleFactor' (double) member of 'IOSurfaceDescriptor'");
    3647           0 :         return false;
    3648             :     }
    3649             :     // Sentinel = 'contentsScaleFactor'
    3650           0 :     if ((!((msg__)->ReadSentinel(iter__, 1302021034)))) {
    3651           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentsScaleFactor' (double) member of 'IOSurfaceDescriptor'");
    3652           0 :         return false;
    3653             :     }
    3654           0 :     return true;
    3655             : }
    3656             : 
    3657           0 : auto PPluginInstanceChild::Write(
    3658             :         const PBrowserStreamChild* v__,
    3659             :         Message* msg__,
    3660             :         bool nullable__) -> void
    3661             : {
    3662             :     int32_t id;
    3663           0 :     if ((!(v__))) {
    3664           0 :         if ((!(nullable__))) {
    3665           0 :             FatalError("NULL actor value passed to non-nullable param");
    3666             :         }
    3667           0 :         id = 0;
    3668             :     }
    3669             :     else {
    3670           0 :         id = (v__)->Id();
    3671           0 :         if ((1) == (id)) {
    3672           0 :             FatalError("actor has been |delete|d");
    3673             :         }
    3674             :     }
    3675             : 
    3676           0 :     Write(id, msg__);
    3677           0 : }
    3678             : 
    3679           0 : auto PPluginInstanceChild::Read(
    3680             :         PBrowserStreamChild** v__,
    3681             :         const Message* msg__,
    3682             :         PickleIterator* iter__,
    3683             :         bool nullable__) -> bool
    3684             : {
    3685           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBrowserStream", PBrowserStreamMsgStart);
    3686           0 :     if ((actor).isNothing()) {
    3687           0 :         return false;
    3688             :     }
    3689             : 
    3690           0 :     (*(v__)) = static_cast<PBrowserStreamChild*>((actor).value());
    3691           0 :     return true;
    3692             : }
    3693             : 
    3694           0 : auto PPluginInstanceChild::Write(
    3695             :         const PPluginInstanceChild* v__,
    3696             :         Message* msg__,
    3697             :         bool nullable__) -> void
    3698             : {
    3699             :     int32_t id;
    3700           0 :     if ((!(v__))) {
    3701           0 :         if ((!(nullable__))) {
    3702           0 :             FatalError("NULL actor value passed to non-nullable param");
    3703             :         }
    3704           0 :         id = 0;
    3705             :     }
    3706             :     else {
    3707           0 :         id = (v__)->Id();
    3708           0 :         if ((1) == (id)) {
    3709           0 :             FatalError("actor has been |delete|d");
    3710             :         }
    3711             :     }
    3712             : 
    3713           0 :     Write(id, msg__);
    3714           0 : }
    3715             : 
    3716           0 : auto PPluginInstanceChild::Read(
    3717             :         PPluginInstanceChild** v__,
    3718             :         const Message* msg__,
    3719             :         PickleIterator* iter__,
    3720             :         bool nullable__) -> bool
    3721             : {
    3722           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginInstance", PPluginInstanceMsgStart);
    3723           0 :     if ((actor).isNothing()) {
    3724           0 :         return false;
    3725             :     }
    3726             : 
    3727           0 :     (*(v__)) = static_cast<PPluginInstanceChild*>((actor).value());
    3728           0 :     return true;
    3729             : }
    3730             : 
    3731           0 : auto PPluginInstanceChild::Write(
    3732             :         const PStreamNotifyChild* v__,
    3733             :         Message* msg__,
    3734             :         bool nullable__) -> void
    3735             : {
    3736             :     int32_t id;
    3737           0 :     if ((!(v__))) {
    3738           0 :         if ((!(nullable__))) {
    3739           0 :             FatalError("NULL actor value passed to non-nullable param");
    3740             :         }
    3741           0 :         id = 0;
    3742             :     }
    3743             :     else {
    3744           0 :         id = (v__)->Id();
    3745           0 :         if ((1) == (id)) {
    3746           0 :             FatalError("actor has been |delete|d");
    3747             :         }
    3748             :     }
    3749             : 
    3750           0 :     Write(id, msg__);
    3751           0 : }
    3752             : 
    3753           0 : auto PPluginInstanceChild::Read(
    3754             :         PStreamNotifyChild** v__,
    3755             :         const Message* msg__,
    3756             :         PickleIterator* iter__,
    3757             :         bool nullable__) -> bool
    3758             : {
    3759           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PStreamNotify", PStreamNotifyMsgStart);
    3760           0 :     if ((actor).isNothing()) {
    3761           0 :         return false;
    3762             :     }
    3763             : 
    3764           0 :     (*(v__)) = static_cast<PStreamNotifyChild*>((actor).value());
    3765           0 :     return true;
    3766             : }
    3767             : 
    3768           0 : auto PPluginInstanceChild::Write(
    3769             :         const PPluginScriptableObjectChild* v__,
    3770             :         Message* msg__,
    3771             :         bool nullable__) -> void
    3772             : {
    3773             :     int32_t id;
    3774           0 :     if ((!(v__))) {
    3775           0 :         if ((!(nullable__))) {
    3776           0 :             FatalError("NULL actor value passed to non-nullable param");
    3777             :         }
    3778           0 :         id = 0;
    3779             :     }
    3780             :     else {
    3781           0 :         id = (v__)->Id();
    3782           0 :         if ((1) == (id)) {
    3783           0 :             FatalError("actor has been |delete|d");
    3784             :         }
    3785             :     }
    3786             : 
    3787           0 :     Write(id, msg__);
    3788           0 : }
    3789             : 
    3790           0 : auto PPluginInstanceChild::Read(
    3791             :         PPluginScriptableObjectChild** v__,
    3792             :         const Message* msg__,
    3793             :         PickleIterator* iter__,
    3794             :         bool nullable__) -> bool
    3795             : {
    3796           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginScriptableObject", PPluginScriptableObjectMsgStart);
    3797           0 :     if ((actor).isNothing()) {
    3798           0 :         return false;
    3799             :     }
    3800             : 
    3801           0 :     (*(v__)) = static_cast<PPluginScriptableObjectChild*>((actor).value());
    3802           0 :     return true;
    3803             : }
    3804             : 
    3805             : 
    3806             : 
    3807             : } // namespace plugins
    3808             : } // namespace mozilla

Generated by: LCOV version 1.13