LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPluginScriptableObjectChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 864 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 37 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/PPluginScriptableObjectChild.h"
       8             : #include "ipc/IPCMessageUtils.h"
       9             : 
      10             : #include "mozilla/plugins/PPluginInstanceChild.h"
      11             : 
      12             : #include "nsIFile.h"
      13             : #include "GeckoProfiler.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace plugins {
      17             : 
      18             : 
      19           0 : auto PPluginScriptableObjectChild::Recv__delete__() -> mozilla::ipc::IPCResult
      20             : {
      21           0 :     return IPC_OK();
      22             : }
      23             : 
      24           0 : auto PPluginScriptableObjectChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      25             : {
      26           0 : }
      27             : 
      28           0 : MOZ_IMPLICIT PPluginScriptableObjectChild::PPluginScriptableObjectChild() :
      29             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      30           0 :     mState(PPluginScriptableObject::__Dead)
      31             : {
      32           0 :     MOZ_COUNT_CTOR(PPluginScriptableObjectChild);
      33           0 : }
      34             : 
      35           0 : PPluginScriptableObjectChild::~PPluginScriptableObjectChild()
      36             : {
      37           0 :     MOZ_COUNT_DTOR(PPluginScriptableObjectChild);
      38           0 : }
      39             : 
      40           0 : auto PPluginScriptableObjectChild::Manager() const -> PPluginInstanceChild*
      41             : {
      42           0 :     return static_cast<PPluginInstanceChild*>(IProtocol::Manager());
      43             : }
      44             : 
      45           0 : auto PPluginScriptableObjectChild::Send__delete__(PPluginScriptableObjectChild* actor) -> bool
      46             : {
      47           0 :     if ((!(actor))) {
      48           0 :         return false;
      49             :     }
      50             : 
      51           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg___delete__((actor)->Id());
      52             : 
      53           0 :     (actor)->Write(actor, msg__, false);
      54             :     // Sentinel = 'actor'
      55           0 :     (msg__)->WriteSentinel(875202478);
      56             : 
      57             : 
      58             : 
      59           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
      60           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      61             :     }
      62           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
      63           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg___delete____ID, (&((actor)->mState)));
      64             : 
      65           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      66             : 
      67           0 :     IProtocol* mgr = (actor)->Manager();
      68           0 :     (actor)->DestroySubtree(Deletion);
      69           0 :     (actor)->DeallocSubtree();
      70           0 :     (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
      71           0 :     return sendok__;
      72             : }
      73             : 
      74           0 : auto PPluginScriptableObjectChild::CallNPN_Evaluate(
      75             :         const nsCString& aScript,
      76             :         Variant* aResult,
      77             :         bool* aSuccess) -> bool
      78             : {
      79           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_NPN_Evaluate(Id());
      80             : 
      81           0 :     Write(aScript, msg__);
      82             :     // Sentinel = 'aScript'
      83           0 :     (msg__)->WriteSentinel(579042475);
      84             : 
      85           0 :     (msg__)->set_interrupt();
      86             : 
      87             : 
      88           0 :     Message reply__;
      89             : 
      90           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
      91           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      92             :     }
      93           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_NPN_Evaluate", OTHER);
      94           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_NPN_Evaluate__ID, (&(mState)));
      95             : 
      96             :     bool sendok__;
      97             :     {
      98             :         AutoProfilerTracing syncIPCTracer(
      99             :                 "IPC",
     100           0 :                 "PPluginScriptableObject::Msg_NPN_Evaluate");
     101           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     102             :     }
     103           0 :     if ((!(sendok__))) {
     104           0 :         return false;
     105             :     }
     106             : 
     107           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     108           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     109             :     }
     110             : 
     111           0 :     PickleIterator iter__(reply__);
     112             : 
     113           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     114           0 :         FatalError("Error deserializing 'Variant'");
     115           0 :         return false;
     116             :     }
     117             :     // Sentinel = 'aResult'
     118           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     119           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
     120           0 :         return false;
     121             :     }
     122           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     123           0 :         FatalError("Error deserializing 'bool'");
     124           0 :         return false;
     125             :     }
     126             :     // Sentinel = 'aSuccess'
     127           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     128           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     129           0 :         return false;
     130             :     }
     131           0 :     (reply__).EndRead(iter__, (reply__).type());
     132             : 
     133           0 :     return true;
     134             : }
     135             : 
     136           0 : auto PPluginScriptableObjectChild::CallHasMethod(
     137             :         const PluginIdentifier& aId,
     138             :         bool* aHasMethod) -> bool
     139             : {
     140           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_HasMethod(Id());
     141             : 
     142           0 :     Write(aId, msg__);
     143             :     // Sentinel = 'aId'
     144           0 :     (msg__)->WriteSentinel(2735041817);
     145             : 
     146           0 :     (msg__)->set_interrupt();
     147             : 
     148             : 
     149           0 :     Message reply__;
     150             : 
     151           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     152           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     153             :     }
     154           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
     155           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasMethod__ID, (&(mState)));
     156             : 
     157             :     bool sendok__;
     158             :     {
     159             :         AutoProfilerTracing syncIPCTracer(
     160             :                 "IPC",
     161           0 :                 "PPluginScriptableObject::Msg_HasMethod");
     162           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     163             :     }
     164           0 :     if ((!(sendok__))) {
     165           0 :         return false;
     166             :     }
     167             : 
     168           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     169           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     170             :     }
     171             : 
     172           0 :     PickleIterator iter__(reply__);
     173             : 
     174           0 :     if ((!(Read(aHasMethod, (&(reply__)), (&(iter__)))))) {
     175           0 :         FatalError("Error deserializing 'bool'");
     176           0 :         return false;
     177             :     }
     178             :     // Sentinel = 'aHasMethod'
     179           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3301641726)))) {
     180           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     181           0 :         return false;
     182             :     }
     183           0 :     (reply__).EndRead(iter__, (reply__).type());
     184             : 
     185           0 :     return true;
     186             : }
     187             : 
     188           0 : auto PPluginScriptableObjectChild::CallInvoke(
     189             :         const PluginIdentifier& aId,
     190             :         const nsTArray<Variant>& aArgs,
     191             :         Variant* aResult,
     192             :         bool* aSuccess) -> bool
     193             : {
     194           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_Invoke(Id());
     195             : 
     196           0 :     Write(aId, msg__);
     197             :     // Sentinel = 'aId'
     198           0 :     (msg__)->WriteSentinel(2735041817);
     199           0 :     Write(aArgs, msg__);
     200             :     // Sentinel = 'aArgs'
     201           0 :     (msg__)->WriteSentinel(424150951);
     202             : 
     203           0 :     (msg__)->set_interrupt();
     204             : 
     205             : 
     206           0 :     Message reply__;
     207             : 
     208           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     209           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     210             :     }
     211           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
     212           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invoke__ID, (&(mState)));
     213             : 
     214             :     bool sendok__;
     215             :     {
     216             :         AutoProfilerTracing syncIPCTracer(
     217             :                 "IPC",
     218           0 :                 "PPluginScriptableObject::Msg_Invoke");
     219           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     220             :     }
     221           0 :     if ((!(sendok__))) {
     222           0 :         return false;
     223             :     }
     224             : 
     225           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     226           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     227             :     }
     228             : 
     229           0 :     PickleIterator iter__(reply__);
     230             : 
     231           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     232           0 :         FatalError("Error deserializing 'Variant'");
     233           0 :         return false;
     234             :     }
     235             :     // Sentinel = 'aResult'
     236           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     237           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
     238           0 :         return false;
     239             :     }
     240           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     241           0 :         FatalError("Error deserializing 'bool'");
     242           0 :         return false;
     243             :     }
     244             :     // Sentinel = 'aSuccess'
     245           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     246           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     247           0 :         return false;
     248             :     }
     249           0 :     (reply__).EndRead(iter__, (reply__).type());
     250             : 
     251           0 :     return true;
     252             : }
     253             : 
     254           0 : auto PPluginScriptableObjectChild::CallInvokeDefault(
     255             :         const nsTArray<Variant>& aArgs,
     256             :         Variant* aResult,
     257             :         bool* aSuccess) -> bool
     258             : {
     259           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_InvokeDefault(Id());
     260             : 
     261           0 :     Write(aArgs, msg__);
     262             :     // Sentinel = 'aArgs'
     263           0 :     (msg__)->WriteSentinel(424150951);
     264             : 
     265           0 :     (msg__)->set_interrupt();
     266             : 
     267             : 
     268           0 :     Message reply__;
     269             : 
     270           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     271           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     272             :     }
     273           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
     274           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_InvokeDefault__ID, (&(mState)));
     275             : 
     276             :     bool sendok__;
     277             :     {
     278             :         AutoProfilerTracing syncIPCTracer(
     279             :                 "IPC",
     280           0 :                 "PPluginScriptableObject::Msg_InvokeDefault");
     281           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     282             :     }
     283           0 :     if ((!(sendok__))) {
     284           0 :         return false;
     285             :     }
     286             : 
     287           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     288           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     289             :     }
     290             : 
     291           0 :     PickleIterator iter__(reply__);
     292             : 
     293           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     294           0 :         FatalError("Error deserializing 'Variant'");
     295           0 :         return false;
     296             :     }
     297             :     // Sentinel = 'aResult'
     298           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     299           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
     300           0 :         return false;
     301             :     }
     302           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     303           0 :         FatalError("Error deserializing 'bool'");
     304           0 :         return false;
     305             :     }
     306             :     // Sentinel = 'aSuccess'
     307           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     308           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     309           0 :         return false;
     310             :     }
     311           0 :     (reply__).EndRead(iter__, (reply__).type());
     312             : 
     313           0 :     return true;
     314             : }
     315             : 
     316           0 : auto PPluginScriptableObjectChild::CallHasProperty(
     317             :         const PluginIdentifier& aId,
     318             :         bool* aHasProperty) -> bool
     319             : {
     320           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_HasProperty(Id());
     321             : 
     322           0 :     Write(aId, msg__);
     323             :     // Sentinel = 'aId'
     324           0 :     (msg__)->WriteSentinel(2735041817);
     325             : 
     326           0 :     (msg__)->set_interrupt();
     327             : 
     328             : 
     329           0 :     Message reply__;
     330             : 
     331           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     332           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     333             :     }
     334           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
     335           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasProperty__ID, (&(mState)));
     336             : 
     337             :     bool sendok__;
     338             :     {
     339             :         AutoProfilerTracing syncIPCTracer(
     340             :                 "IPC",
     341           0 :                 "PPluginScriptableObject::Msg_HasProperty");
     342           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     343             :     }
     344           0 :     if ((!(sendok__))) {
     345           0 :         return false;
     346             :     }
     347             : 
     348           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     349           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     350             :     }
     351             : 
     352           0 :     PickleIterator iter__(reply__);
     353             : 
     354           0 :     if ((!(Read(aHasProperty, (&(reply__)), (&(iter__)))))) {
     355           0 :         FatalError("Error deserializing 'bool'");
     356           0 :         return false;
     357             :     }
     358             :     // Sentinel = 'aHasProperty'
     359           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 581499552)))) {
     360           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     361           0 :         return false;
     362             :     }
     363           0 :     (reply__).EndRead(iter__, (reply__).type());
     364             : 
     365           0 :     return true;
     366             : }
     367             : 
     368           0 : auto PPluginScriptableObjectChild::CallSetProperty(
     369             :         const PluginIdentifier& aId,
     370             :         const Variant& aValue,
     371             :         bool* aSuccess) -> bool
     372             : {
     373           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_SetProperty(Id());
     374             : 
     375           0 :     Write(aId, msg__);
     376             :     // Sentinel = 'aId'
     377           0 :     (msg__)->WriteSentinel(2735041817);
     378           0 :     Write(aValue, msg__);
     379             :     // Sentinel = 'aValue'
     380           0 :     (msg__)->WriteSentinel(2522186438);
     381             : 
     382           0 :     (msg__)->set_interrupt();
     383             : 
     384             : 
     385           0 :     Message reply__;
     386             : 
     387           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     388           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     389             :     }
     390           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
     391           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_SetProperty__ID, (&(mState)));
     392             : 
     393             :     bool sendok__;
     394             :     {
     395             :         AutoProfilerTracing syncIPCTracer(
     396             :                 "IPC",
     397           0 :                 "PPluginScriptableObject::Msg_SetProperty");
     398           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     399             :     }
     400           0 :     if ((!(sendok__))) {
     401           0 :         return false;
     402             :     }
     403             : 
     404           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     405           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     406             :     }
     407             : 
     408           0 :     PickleIterator iter__(reply__);
     409             : 
     410           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     411           0 :         FatalError("Error deserializing 'bool'");
     412           0 :         return false;
     413             :     }
     414             :     // Sentinel = 'aSuccess'
     415           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     416           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     417           0 :         return false;
     418             :     }
     419           0 :     (reply__).EndRead(iter__, (reply__).type());
     420             : 
     421           0 :     return true;
     422             : }
     423             : 
     424           0 : auto PPluginScriptableObjectChild::CallRemoveProperty(
     425             :         const PluginIdentifier& aId,
     426             :         bool* aSuccess) -> bool
     427             : {
     428           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_RemoveProperty(Id());
     429             : 
     430           0 :     Write(aId, msg__);
     431             :     // Sentinel = 'aId'
     432           0 :     (msg__)->WriteSentinel(2735041817);
     433             : 
     434           0 :     (msg__)->set_interrupt();
     435             : 
     436             : 
     437           0 :     Message reply__;
     438             : 
     439           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     440           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     441             :     }
     442           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
     443           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_RemoveProperty__ID, (&(mState)));
     444             : 
     445             :     bool sendok__;
     446             :     {
     447             :         AutoProfilerTracing syncIPCTracer(
     448             :                 "IPC",
     449           0 :                 "PPluginScriptableObject::Msg_RemoveProperty");
     450           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     451             :     }
     452           0 :     if ((!(sendok__))) {
     453           0 :         return false;
     454             :     }
     455             : 
     456           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     457           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     458             :     }
     459             : 
     460           0 :     PickleIterator iter__(reply__);
     461             : 
     462           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     463           0 :         FatalError("Error deserializing 'bool'");
     464           0 :         return false;
     465             :     }
     466             :     // Sentinel = 'aSuccess'
     467           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     468           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     469           0 :         return false;
     470             :     }
     471           0 :     (reply__).EndRead(iter__, (reply__).type());
     472             : 
     473           0 :     return true;
     474             : }
     475             : 
     476           0 : auto PPluginScriptableObjectChild::CallEnumerate(
     477             :         nsTArray<PluginIdentifier>* aProperties,
     478             :         bool* aSuccess) -> bool
     479             : {
     480           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_Enumerate(Id());
     481             : 
     482             : 
     483           0 :     (msg__)->set_interrupt();
     484             : 
     485             : 
     486           0 :     Message reply__;
     487             : 
     488           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     489           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     490             :     }
     491           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
     492           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Enumerate__ID, (&(mState)));
     493             : 
     494             :     bool sendok__;
     495             :     {
     496             :         AutoProfilerTracing syncIPCTracer(
     497             :                 "IPC",
     498           0 :                 "PPluginScriptableObject::Msg_Enumerate");
     499           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     500             :     }
     501           0 :     if ((!(sendok__))) {
     502           0 :         return false;
     503             :     }
     504             : 
     505           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     506           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     507             :     }
     508             : 
     509           0 :     PickleIterator iter__(reply__);
     510             : 
     511           0 :     if ((!(Read(aProperties, (&(reply__)), (&(iter__)))))) {
     512           0 :         FatalError("Error deserializing 'nsTArray'");
     513           0 :         return false;
     514             :     }
     515             :     // Sentinel = 'aProperties'
     516           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 4118837589)))) {
     517           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     518           0 :         return false;
     519             :     }
     520           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     521           0 :         FatalError("Error deserializing 'bool'");
     522           0 :         return false;
     523             :     }
     524             :     // Sentinel = 'aSuccess'
     525           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     526           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     527           0 :         return false;
     528             :     }
     529           0 :     (reply__).EndRead(iter__, (reply__).type());
     530             : 
     531           0 :     return true;
     532             : }
     533             : 
     534           0 : auto PPluginScriptableObjectChild::CallConstruct(
     535             :         const nsTArray<Variant>& aArgs,
     536             :         Variant* aResult,
     537             :         bool* aSuccess) -> bool
     538             : {
     539           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_Construct(Id());
     540             : 
     541           0 :     Write(aArgs, msg__);
     542             :     // Sentinel = 'aArgs'
     543           0 :     (msg__)->WriteSentinel(424150951);
     544             : 
     545           0 :     (msg__)->set_interrupt();
     546             : 
     547             : 
     548           0 :     Message reply__;
     549             : 
     550           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     551           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     552             :     }
     553           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
     554           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Construct__ID, (&(mState)));
     555             : 
     556             :     bool sendok__;
     557             :     {
     558             :         AutoProfilerTracing syncIPCTracer(
     559             :                 "IPC",
     560           0 :                 "PPluginScriptableObject::Msg_Construct");
     561           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     562             :     }
     563           0 :     if ((!(sendok__))) {
     564           0 :         return false;
     565             :     }
     566             : 
     567           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     568           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     569             :     }
     570             : 
     571           0 :     PickleIterator iter__(reply__);
     572             : 
     573           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     574           0 :         FatalError("Error deserializing 'Variant'");
     575           0 :         return false;
     576             :     }
     577             :     // Sentinel = 'aResult'
     578           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     579           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
     580           0 :         return false;
     581             :     }
     582           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     583           0 :         FatalError("Error deserializing 'bool'");
     584           0 :         return false;
     585             :     }
     586             :     // Sentinel = 'aSuccess'
     587           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     588           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     589           0 :         return false;
     590             :     }
     591           0 :     (reply__).EndRead(iter__, (reply__).type());
     592             : 
     593           0 :     return true;
     594             : }
     595             : 
     596           0 : auto PPluginScriptableObjectChild::SendProtect() -> bool
     597             : {
     598           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_Protect(Id());
     599             : 
     600             : 
     601             : 
     602             : 
     603             : 
     604           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     605           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     606             :     }
     607           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
     608           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Protect__ID, (&(mState)));
     609             : 
     610           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     611           0 :     return sendok__;
     612             : }
     613             : 
     614           0 : auto PPluginScriptableObjectChild::SendUnprotect() -> bool
     615             : {
     616           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_Unprotect(Id());
     617             : 
     618             : 
     619             : 
     620             : 
     621             : 
     622           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     623           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     624             :     }
     625           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
     626           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Unprotect__ID, (&(mState)));
     627             : 
     628           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     629           0 :     return sendok__;
     630             : }
     631             : 
     632           0 : auto PPluginScriptableObjectChild::CallGetParentProperty(
     633             :         const PluginIdentifier& aId,
     634             :         Variant* aResult,
     635             :         bool* aSuccess) -> bool
     636             : {
     637           0 :     IPC::Message* msg__ = PPluginScriptableObject::Msg_GetParentProperty(Id());
     638             : 
     639           0 :     Write(aId, msg__);
     640             :     // Sentinel = 'aId'
     641           0 :     (msg__)->WriteSentinel(2735041817);
     642             : 
     643           0 :     (msg__)->set_interrupt();
     644             : 
     645             : 
     646           0 :     Message reply__;
     647             : 
     648           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     649           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     650             :     }
     651           0 :     AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetParentProperty", OTHER);
     652           0 :     PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_GetParentProperty__ID, (&(mState)));
     653             : 
     654             :     bool sendok__;
     655             :     {
     656             :         AutoProfilerTracing syncIPCTracer(
     657             :                 "IPC",
     658           0 :                 "PPluginScriptableObject::Msg_GetParentProperty");
     659           0 :         sendok__ = (GetIPCChannel())->Call(msg__, (&(reply__)));
     660             :     }
     661           0 :     if ((!(sendok__))) {
     662           0 :         return false;
     663             :     }
     664             : 
     665           0 :     if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     666           0 :         mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     667             :     }
     668             : 
     669           0 :     PickleIterator iter__(reply__);
     670             : 
     671           0 :     if ((!(Read(aResult, (&(reply__)), (&(iter__)))))) {
     672           0 :         FatalError("Error deserializing 'Variant'");
     673           0 :         return false;
     674             :     }
     675             :     // Sentinel = 'aResult'
     676           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3888726089)))) {
     677           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
     678           0 :         return false;
     679             :     }
     680           0 :     if ((!(Read(aSuccess, (&(reply__)), (&(iter__)))))) {
     681           0 :         FatalError("Error deserializing 'bool'");
     682           0 :         return false;
     683             :     }
     684             :     // Sentinel = 'aSuccess'
     685           0 :     if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2132928722)))) {
     686           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     687           0 :         return false;
     688             :     }
     689           0 :     (reply__).EndRead(iter__, (reply__).type());
     690             : 
     691           0 :     return true;
     692             : }
     693             : 
     694           0 : auto PPluginScriptableObjectChild::RemoveManagee(
     695             :         int32_t aProtocolId,
     696             :         ProtocolBase* aListener) -> void
     697             : {
     698           0 :     FatalError("unreached");
     699           0 :     return;
     700             : }
     701             : 
     702           0 : auto PPluginScriptableObjectChild::OnMessageReceived(const Message& msg__) -> PPluginScriptableObjectChild::Result
     703             : {
     704           0 :     switch ((msg__).type()) {
     705             :     case PPluginScriptableObject::Reply___delete____ID:
     706             :         {
     707           0 :             return MsgProcessed;
     708             :         }
     709             :     case PPluginScriptableObject::Msg___delete____ID:
     710             :         {
     711           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     712           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     713             :             }
     714           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg___delete__", OTHER);
     715             : 
     716           0 :             PickleIterator iter__(msg__);
     717             :             PPluginScriptableObjectChild* actor;
     718             : 
     719           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     720           0 :                 FatalError("Error deserializing 'PPluginScriptableObjectChild'");
     721           0 :                 return MsgValueError;
     722             :             }
     723             :             // Sentinel = 'actor'
     724           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     725           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PPluginScriptableObjectChild'");
     726           0 :                 return MsgValueError;
     727             :             }
     728           0 :             (msg__).EndRead(iter__, (msg__).type());
     729           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg___delete____ID, (&(mState)));
     730           0 :             if ((!(Recv__delete__()))) {
     731           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     732             :                 // Error handled in mozilla::ipc::IPCResult
     733           0 :                 return MsgProcessingError;
     734             :             }
     735             : 
     736             : 
     737           0 :             IProtocol* mgr = (actor)->Manager();
     738           0 :             (actor)->DestroySubtree(Deletion);
     739           0 :             (actor)->DeallocSubtree();
     740           0 :             (mgr)->RemoveManagee(PPluginScriptableObjectMsgStart, actor);
     741             : 
     742           0 :             return MsgProcessed;
     743             :         }
     744             :     case PPluginScriptableObject::Msg_Protect__ID:
     745             :         {
     746           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     747           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     748             :             }
     749           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Protect", OTHER);
     750             : 
     751           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Protect__ID, (&(mState)));
     752           0 :             if ((!(RecvProtect()))) {
     753           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     754             :                 // Error handled in mozilla::ipc::IPCResult
     755           0 :                 return MsgProcessingError;
     756             :             }
     757             : 
     758           0 :             return MsgProcessed;
     759             :         }
     760             :     case PPluginScriptableObject::Msg_Unprotect__ID:
     761             :         {
     762           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     763           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     764             :             }
     765           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Unprotect", OTHER);
     766             : 
     767           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Unprotect__ID, (&(mState)));
     768           0 :             if ((!(RecvUnprotect()))) {
     769           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     770             :                 // Error handled in mozilla::ipc::IPCResult
     771           0 :                 return MsgProcessingError;
     772             :             }
     773             : 
     774           0 :             return MsgProcessed;
     775             :         }
     776             :     default:
     777             :         {
     778           0 :             return MsgNotKnown;
     779             :         }
     780             :     }
     781             : }
     782             : 
     783           0 : auto PPluginScriptableObjectChild::OnMessageReceived(
     784             :         const Message& msg__,
     785             :         Message*& reply__) -> PPluginScriptableObjectChild::Result
     786             : {
     787           0 :     return MsgNotKnown;
     788             : }
     789             : 
     790           0 : auto PPluginScriptableObjectChild::OnCallReceived(
     791             :         const Message& msg__,
     792             :         Message*& reply__) -> PPluginScriptableObjectChild::Result
     793             : {
     794           0 :     switch ((msg__).type()) {
     795             :     case PPluginScriptableObject::Msg_Invalidate__ID:
     796             :         {
     797           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     798           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     799             :             }
     800           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invalidate", OTHER);
     801             : 
     802           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invalidate__ID, (&(mState)));
     803           0 :             int32_t id__ = Id();
     804           0 :             if ((!(AnswerInvalidate()))) {
     805           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     806             :                 // Error handled in mozilla::ipc::IPCResult
     807           0 :                 return MsgProcessingError;
     808             :             }
     809             : 
     810           0 :             reply__ = PPluginScriptableObject::Reply_Invalidate(id__);
     811             : 
     812           0 :             (reply__)->set_interrupt();
     813           0 :             (reply__)->set_reply();
     814             : 
     815           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     816           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     817             :             }
     818           0 :             return MsgProcessed;
     819             :         }
     820             :     case PPluginScriptableObject::Msg_HasMethod__ID:
     821             :         {
     822           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     823           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     824             :             }
     825           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasMethod", OTHER);
     826             : 
     827           0 :             PickleIterator iter__(msg__);
     828           0 :             PluginIdentifier aId;
     829             : 
     830           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
     831           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
     832           0 :                 return MsgValueError;
     833             :             }
     834             :             // Sentinel = 'aId'
     835           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
     836           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
     837           0 :                 return MsgValueError;
     838             :             }
     839           0 :             (msg__).EndRead(iter__, (msg__).type());
     840           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasMethod__ID, (&(mState)));
     841           0 :             int32_t id__ = Id();
     842             :             bool aHasMethod;
     843           0 :             if ((!(AnswerHasMethod(mozilla::Move(aId), (&(aHasMethod)))))) {
     844           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     845             :                 // Error handled in mozilla::ipc::IPCResult
     846           0 :                 return MsgProcessingError;
     847             :             }
     848             : 
     849           0 :             reply__ = PPluginScriptableObject::Reply_HasMethod(id__);
     850             : 
     851           0 :             Write(aHasMethod, reply__);
     852             :             // Sentinel = 'aHasMethod'
     853           0 :             (reply__)->WriteSentinel(3301641726);
     854           0 :             (reply__)->set_interrupt();
     855           0 :             (reply__)->set_reply();
     856             : 
     857           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     858           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     859             :             }
     860           0 :             return MsgProcessed;
     861             :         }
     862             :     case PPluginScriptableObject::Msg_Invoke__ID:
     863             :         {
     864           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     865           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     866             :             }
     867           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Invoke", OTHER);
     868             : 
     869           0 :             PickleIterator iter__(msg__);
     870           0 :             PluginIdentifier aId;
     871           0 :             nsTArray<Variant> aArgs;
     872             : 
     873           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
     874           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
     875           0 :                 return MsgValueError;
     876             :             }
     877             :             // Sentinel = 'aId'
     878           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
     879           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
     880           0 :                 return MsgValueError;
     881             :             }
     882           0 :             if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
     883           0 :                 FatalError("Error deserializing 'nsTArray'");
     884           0 :                 return MsgValueError;
     885             :             }
     886             :             // Sentinel = 'aArgs'
     887           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
     888           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     889           0 :                 return MsgValueError;
     890             :             }
     891           0 :             (msg__).EndRead(iter__, (msg__).type());
     892           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Invoke__ID, (&(mState)));
     893           0 :             int32_t id__ = Id();
     894           0 :             Variant aResult;
     895             :             bool aSuccess;
     896           0 :             if ((!(AnswerInvoke(mozilla::Move(aId), mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
     897           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     898             :                 // Error handled in mozilla::ipc::IPCResult
     899           0 :                 return MsgProcessingError;
     900             :             }
     901             : 
     902           0 :             reply__ = PPluginScriptableObject::Reply_Invoke(id__);
     903             : 
     904           0 :             Write(aResult, reply__);
     905             :             // Sentinel = 'aResult'
     906           0 :             (reply__)->WriteSentinel(3888726089);
     907           0 :             Write(aSuccess, reply__);
     908             :             // Sentinel = 'aSuccess'
     909           0 :             (reply__)->WriteSentinel(2132928722);
     910           0 :             (reply__)->set_interrupt();
     911           0 :             (reply__)->set_reply();
     912             : 
     913           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     914           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     915             :             }
     916           0 :             return MsgProcessed;
     917             :         }
     918             :     case PPluginScriptableObject::Msg_InvokeDefault__ID:
     919             :         {
     920           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     921           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     922             :             }
     923           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_InvokeDefault", OTHER);
     924             : 
     925           0 :             PickleIterator iter__(msg__);
     926           0 :             nsTArray<Variant> aArgs;
     927             : 
     928           0 :             if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
     929           0 :                 FatalError("Error deserializing 'nsTArray'");
     930           0 :                 return MsgValueError;
     931             :             }
     932             :             // Sentinel = 'aArgs'
     933           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
     934           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
     935           0 :                 return MsgValueError;
     936             :             }
     937           0 :             (msg__).EndRead(iter__, (msg__).type());
     938           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_InvokeDefault__ID, (&(mState)));
     939           0 :             int32_t id__ = Id();
     940           0 :             Variant aResult;
     941             :             bool aSuccess;
     942           0 :             if ((!(AnswerInvokeDefault(mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
     943           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     944             :                 // Error handled in mozilla::ipc::IPCResult
     945           0 :                 return MsgProcessingError;
     946             :             }
     947             : 
     948           0 :             reply__ = PPluginScriptableObject::Reply_InvokeDefault(id__);
     949             : 
     950           0 :             Write(aResult, reply__);
     951             :             // Sentinel = 'aResult'
     952           0 :             (reply__)->WriteSentinel(3888726089);
     953           0 :             Write(aSuccess, reply__);
     954             :             // Sentinel = 'aSuccess'
     955           0 :             (reply__)->WriteSentinel(2132928722);
     956           0 :             (reply__)->set_interrupt();
     957           0 :             (reply__)->set_reply();
     958             : 
     959           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     960           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
     961             :             }
     962           0 :             return MsgProcessed;
     963             :         }
     964             :     case PPluginScriptableObject::Msg_HasProperty__ID:
     965             :         {
     966           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
     967           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     968             :             }
     969           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_HasProperty", OTHER);
     970             : 
     971           0 :             PickleIterator iter__(msg__);
     972           0 :             PluginIdentifier aId;
     973             : 
     974           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
     975           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
     976           0 :                 return MsgValueError;
     977             :             }
     978             :             // Sentinel = 'aId'
     979           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
     980           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
     981           0 :                 return MsgValueError;
     982             :             }
     983           0 :             (msg__).EndRead(iter__, (msg__).type());
     984           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_HasProperty__ID, (&(mState)));
     985           0 :             int32_t id__ = Id();
     986             :             bool aHasProperty;
     987           0 :             if ((!(AnswerHasProperty(mozilla::Move(aId), (&(aHasProperty)))))) {
     988           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     989             :                 // Error handled in mozilla::ipc::IPCResult
     990           0 :                 return MsgProcessingError;
     991             :             }
     992             : 
     993           0 :             reply__ = PPluginScriptableObject::Reply_HasProperty(id__);
     994             : 
     995           0 :             Write(aHasProperty, reply__);
     996             :             // Sentinel = 'aHasProperty'
     997           0 :             (reply__)->WriteSentinel(581499552);
     998           0 :             (reply__)->set_interrupt();
     999           0 :             (reply__)->set_reply();
    1000             : 
    1001           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1002           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1003             :             }
    1004           0 :             return MsgProcessed;
    1005             :         }
    1006             :     case PPluginScriptableObject::Msg_SetProperty__ID:
    1007             :         {
    1008           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1009           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1010             :             }
    1011           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_SetProperty", OTHER);
    1012             : 
    1013           0 :             PickleIterator iter__(msg__);
    1014           0 :             PluginIdentifier aId;
    1015           0 :             Variant aValue;
    1016             : 
    1017           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
    1018           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
    1019           0 :                 return MsgValueError;
    1020             :             }
    1021             :             // Sentinel = 'aId'
    1022           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
    1023           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
    1024           0 :                 return MsgValueError;
    1025             :             }
    1026           0 :             if ((!(Read((&(aValue)), (&(msg__)), (&(iter__)))))) {
    1027           0 :                 FatalError("Error deserializing 'Variant'");
    1028           0 :                 return MsgValueError;
    1029             :             }
    1030             :             // Sentinel = 'aValue'
    1031           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2522186438)))) {
    1032           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'Variant'");
    1033           0 :                 return MsgValueError;
    1034             :             }
    1035           0 :             (msg__).EndRead(iter__, (msg__).type());
    1036           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_SetProperty__ID, (&(mState)));
    1037           0 :             int32_t id__ = Id();
    1038             :             bool aSuccess;
    1039           0 :             if ((!(AnswerSetProperty(mozilla::Move(aId), mozilla::Move(aValue), (&(aSuccess)))))) {
    1040           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1041             :                 // Error handled in mozilla::ipc::IPCResult
    1042           0 :                 return MsgProcessingError;
    1043             :             }
    1044             : 
    1045           0 :             reply__ = PPluginScriptableObject::Reply_SetProperty(id__);
    1046             : 
    1047           0 :             Write(aSuccess, reply__);
    1048             :             // Sentinel = 'aSuccess'
    1049           0 :             (reply__)->WriteSentinel(2132928722);
    1050           0 :             (reply__)->set_interrupt();
    1051           0 :             (reply__)->set_reply();
    1052             : 
    1053           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1054           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1055             :             }
    1056           0 :             return MsgProcessed;
    1057             :         }
    1058             :     case PPluginScriptableObject::Msg_RemoveProperty__ID:
    1059             :         {
    1060           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1061           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1062             :             }
    1063           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_RemoveProperty", OTHER);
    1064             : 
    1065           0 :             PickleIterator iter__(msg__);
    1066           0 :             PluginIdentifier aId;
    1067             : 
    1068           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
    1069           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
    1070           0 :                 return MsgValueError;
    1071             :             }
    1072             :             // Sentinel = 'aId'
    1073           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
    1074           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
    1075           0 :                 return MsgValueError;
    1076             :             }
    1077           0 :             (msg__).EndRead(iter__, (msg__).type());
    1078           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_RemoveProperty__ID, (&(mState)));
    1079           0 :             int32_t id__ = Id();
    1080             :             bool aSuccess;
    1081           0 :             if ((!(AnswerRemoveProperty(mozilla::Move(aId), (&(aSuccess)))))) {
    1082           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1083             :                 // Error handled in mozilla::ipc::IPCResult
    1084           0 :                 return MsgProcessingError;
    1085             :             }
    1086             : 
    1087           0 :             reply__ = PPluginScriptableObject::Reply_RemoveProperty(id__);
    1088             : 
    1089           0 :             Write(aSuccess, reply__);
    1090             :             // Sentinel = 'aSuccess'
    1091           0 :             (reply__)->WriteSentinel(2132928722);
    1092           0 :             (reply__)->set_interrupt();
    1093           0 :             (reply__)->set_reply();
    1094             : 
    1095           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1096           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1097             :             }
    1098           0 :             return MsgProcessed;
    1099             :         }
    1100             :     case PPluginScriptableObject::Msg_Enumerate__ID:
    1101             :         {
    1102           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1103           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1104             :             }
    1105           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Enumerate", OTHER);
    1106             : 
    1107           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Enumerate__ID, (&(mState)));
    1108           0 :             int32_t id__ = Id();
    1109           0 :             nsTArray<PluginIdentifier> aProperties;
    1110             :             bool aSuccess;
    1111           0 :             if ((!(AnswerEnumerate((&(aProperties)), (&(aSuccess)))))) {
    1112           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1113             :                 // Error handled in mozilla::ipc::IPCResult
    1114           0 :                 return MsgProcessingError;
    1115             :             }
    1116             : 
    1117           0 :             reply__ = PPluginScriptableObject::Reply_Enumerate(id__);
    1118             : 
    1119           0 :             Write(aProperties, reply__);
    1120             :             // Sentinel = 'aProperties'
    1121           0 :             (reply__)->WriteSentinel(4118837589);
    1122           0 :             Write(aSuccess, reply__);
    1123             :             // Sentinel = 'aSuccess'
    1124           0 :             (reply__)->WriteSentinel(2132928722);
    1125           0 :             (reply__)->set_interrupt();
    1126           0 :             (reply__)->set_reply();
    1127             : 
    1128           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1129           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1130             :             }
    1131           0 :             return MsgProcessed;
    1132             :         }
    1133             :     case PPluginScriptableObject::Msg_Construct__ID:
    1134             :         {
    1135           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1136           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1137             :             }
    1138           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_Construct", OTHER);
    1139             : 
    1140           0 :             PickleIterator iter__(msg__);
    1141           0 :             nsTArray<Variant> aArgs;
    1142             : 
    1143           0 :             if ((!(Read((&(aArgs)), (&(msg__)), (&(iter__)))))) {
    1144           0 :                 FatalError("Error deserializing 'nsTArray'");
    1145           0 :                 return MsgValueError;
    1146             :             }
    1147             :             // Sentinel = 'aArgs'
    1148           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 424150951)))) {
    1149           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
    1150           0 :                 return MsgValueError;
    1151             :             }
    1152           0 :             (msg__).EndRead(iter__, (msg__).type());
    1153           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_Construct__ID, (&(mState)));
    1154           0 :             int32_t id__ = Id();
    1155           0 :             Variant aResult;
    1156             :             bool aSuccess;
    1157           0 :             if ((!(AnswerConstruct(mozilla::Move(aArgs), (&(aResult)), (&(aSuccess)))))) {
    1158           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1159             :                 // Error handled in mozilla::ipc::IPCResult
    1160           0 :                 return MsgProcessingError;
    1161             :             }
    1162             : 
    1163           0 :             reply__ = PPluginScriptableObject::Reply_Construct(id__);
    1164             : 
    1165           0 :             Write(aResult, reply__);
    1166             :             // Sentinel = 'aResult'
    1167           0 :             (reply__)->WriteSentinel(3888726089);
    1168           0 :             Write(aSuccess, reply__);
    1169             :             // Sentinel = 'aSuccess'
    1170           0 :             (reply__)->WriteSentinel(2132928722);
    1171           0 :             (reply__)->set_interrupt();
    1172           0 :             (reply__)->set_reply();
    1173             : 
    1174           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1175           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1176             :             }
    1177           0 :             return MsgProcessed;
    1178             :         }
    1179             :     case PPluginScriptableObject::Msg_GetChildProperty__ID:
    1180             :         {
    1181           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1182           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
    1183             :             }
    1184           0 :             AUTO_PROFILER_LABEL("PPluginScriptableObject::Msg_GetChildProperty", OTHER);
    1185             : 
    1186           0 :             PickleIterator iter__(msg__);
    1187           0 :             PluginIdentifier aId;
    1188             : 
    1189           0 :             if ((!(Read((&(aId)), (&(msg__)), (&(iter__)))))) {
    1190           0 :                 FatalError("Error deserializing 'PluginIdentifier'");
    1191           0 :                 return MsgValueError;
    1192             :             }
    1193             :             // Sentinel = 'aId'
    1194           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2735041817)))) {
    1195           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier'");
    1196           0 :                 return MsgValueError;
    1197             :             }
    1198           0 :             (msg__).EndRead(iter__, (msg__).type());
    1199           0 :             PPluginScriptableObject::Transition(PPluginScriptableObject::Msg_GetChildProperty__ID, (&(mState)));
    1200           0 :             int32_t id__ = Id();
    1201             :             bool aHasProperty;
    1202             :             bool aHasMethod;
    1203           0 :             Variant aResult;
    1204             :             bool aSuccess;
    1205           0 :             if ((!(AnswerGetChildProperty(mozilla::Move(aId), (&(aHasProperty)), (&(aHasMethod)), (&(aResult)), (&(aSuccess)))))) {
    1206           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
    1207             :                 // Error handled in mozilla::ipc::IPCResult
    1208           0 :                 return MsgProcessingError;
    1209             :             }
    1210             : 
    1211           0 :             reply__ = PPluginScriptableObject::Reply_GetChildProperty(id__);
    1212             : 
    1213           0 :             Write(aHasProperty, reply__);
    1214             :             // Sentinel = 'aHasProperty'
    1215           0 :             (reply__)->WriteSentinel(581499552);
    1216           0 :             Write(aHasMethod, reply__);
    1217             :             // Sentinel = 'aHasMethod'
    1218           0 :             (reply__)->WriteSentinel(3301641726);
    1219           0 :             Write(aResult, reply__);
    1220             :             // Sentinel = 'aResult'
    1221           0 :             (reply__)->WriteSentinel(3888726089);
    1222           0 :             Write(aSuccess, reply__);
    1223             :             // Sentinel = 'aSuccess'
    1224           0 :             (reply__)->WriteSentinel(2132928722);
    1225           0 :             (reply__)->set_interrupt();
    1226           0 :             (reply__)->set_reply();
    1227             : 
    1228           0 :             if (mozilla::ipc::LoggingEnabledFor("PPluginScriptableObjectChild")) {
    1229           0 :                 mozilla::ipc::LogMessageForProtocol("PPluginScriptableObjectChild", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
    1230             :             }
    1231           0 :             return MsgProcessed;
    1232             :         }
    1233             :     default:
    1234             :         {
    1235           0 :             return MsgNotKnown;
    1236             :         }
    1237             :     }
    1238             : }
    1239             : 
    1240           0 : auto PPluginScriptableObjectChild::GetProtocolTypeId() -> int32_t
    1241             : {
    1242           0 :     return PPluginScriptableObjectMsgStart;
    1243             : }
    1244             : 
    1245           0 : auto PPluginScriptableObjectChild::ProtocolName() const -> const char*
    1246             : {
    1247           0 :     return "PPluginScriptableObjectChild";
    1248             : }
    1249             : 
    1250           0 : auto PPluginScriptableObjectChild::DestroySubtree(ActorDestroyReason why) -> void
    1251             : {
    1252             :     // Unregister from our manager.
    1253           0 :     Unregister(Id());
    1254             : 
    1255             :     // Reject owning pending promises.
    1256           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
    1257             : 
    1258             :     // Finally, destroy "us".
    1259           0 :     ActorDestroy(why);
    1260           0 : }
    1261             : 
    1262           0 : auto PPluginScriptableObjectChild::DeallocSubtree() -> void
    1263             : {
    1264           0 : }
    1265             : 
    1266           0 : auto PPluginScriptableObjectChild::Write(
    1267             :         const nsTArray<PluginIdentifier>& v__,
    1268             :         Message* msg__) -> void
    1269             : {
    1270           0 :     uint32_t length = (v__).Length();
    1271           0 :     Write(length, msg__);
    1272             :     // Sentinel = ('length', 'PluginIdentifier[]')
    1273           0 :     (msg__)->WriteSentinel(4289331859);
    1274             : 
    1275           0 :     for (auto& elem : v__) {
    1276           0 :         Write(elem, msg__);
    1277             :         // Sentinel = 'PluginIdentifier[]'
    1278           0 :         (msg__)->WriteSentinel(2171637862);
    1279             :     }
    1280           0 : }
    1281             : 
    1282           0 : auto PPluginScriptableObjectChild::Read(
    1283             :         nsTArray<PluginIdentifier>* v__,
    1284             :         const Message* msg__,
    1285             :         PickleIterator* iter__) -> bool
    1286             : {
    1287           0 :     nsTArray<PluginIdentifier> fa;
    1288             :     uint32_t length;
    1289           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1290           0 :         mozilla::ipc::ArrayLengthReadError("PluginIdentifier[]");
    1291           0 :         return false;
    1292             :     }
    1293             :     // Sentinel = ('length', 'PluginIdentifier[]')
    1294           0 :     if ((!((msg__)->ReadSentinel(iter__, 4289331859)))) {
    1295           0 :         mozilla::ipc::SentinelReadError("PluginIdentifier[]");
    1296           0 :         return false;
    1297             :     }
    1298             : 
    1299           0 :     PluginIdentifier* elems = (fa).AppendElements(length);
    1300           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1301           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1302           0 :             FatalError("Error deserializing 'PluginIdentifier[i]'");
    1303           0 :             return false;
    1304             :         }
    1305             :         // Sentinel = 'PluginIdentifier[]'
    1306           0 :         if ((!((msg__)->ReadSentinel(iter__, 2171637862)))) {
    1307           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PluginIdentifier[i]'");
    1308           0 :             return false;
    1309             :         }
    1310             :     }
    1311           0 :     (v__)->SwapElements(fa);
    1312           0 :     return true;
    1313             : }
    1314             : 
    1315           0 : auto PPluginScriptableObjectChild::Write(
    1316             :         const nsTArray<Variant>& v__,
    1317             :         Message* msg__) -> void
    1318             : {
    1319           0 :     uint32_t length = (v__).Length();
    1320           0 :     Write(length, msg__);
    1321             :     // Sentinel = ('length', 'Variant[]')
    1322           0 :     (msg__)->WriteSentinel(2816733807);
    1323             : 
    1324           0 :     for (auto& elem : v__) {
    1325           0 :         Write(elem, msg__);
    1326             :         // Sentinel = 'Variant[]'
    1327           0 :         (msg__)->WriteSentinel(1087857434);
    1328             :     }
    1329           0 : }
    1330             : 
    1331           0 : auto PPluginScriptableObjectChild::Read(
    1332             :         nsTArray<Variant>* v__,
    1333             :         const Message* msg__,
    1334             :         PickleIterator* iter__) -> bool
    1335             : {
    1336           0 :     nsTArray<Variant> fa;
    1337             :     uint32_t length;
    1338           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1339           0 :         mozilla::ipc::ArrayLengthReadError("Variant[]");
    1340           0 :         return false;
    1341             :     }
    1342             :     // Sentinel = ('length', 'Variant[]')
    1343           0 :     if ((!((msg__)->ReadSentinel(iter__, 2816733807)))) {
    1344           0 :         mozilla::ipc::SentinelReadError("Variant[]");
    1345           0 :         return false;
    1346             :     }
    1347             : 
    1348           0 :     Variant* elems = (fa).AppendElements(length);
    1349           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1350           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1351           0 :             FatalError("Error deserializing 'Variant[i]'");
    1352           0 :             return false;
    1353             :         }
    1354             :         // Sentinel = 'Variant[]'
    1355           0 :         if ((!((msg__)->ReadSentinel(iter__, 1087857434)))) {
    1356           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'Variant[i]'");
    1357           0 :             return false;
    1358             :         }
    1359             :     }
    1360           0 :     (v__)->SwapElements(fa);
    1361           0 :     return true;
    1362             : }
    1363             : 
    1364           0 : auto PPluginScriptableObjectChild::Write(
    1365             :         const PPluginScriptableObjectChild* v__,
    1366             :         Message* msg__,
    1367             :         bool nullable__) -> void
    1368             : {
    1369             :     int32_t id;
    1370           0 :     if ((!(v__))) {
    1371           0 :         if ((!(nullable__))) {
    1372           0 :             FatalError("NULL actor value passed to non-nullable param");
    1373             :         }
    1374           0 :         id = 0;
    1375             :     }
    1376             :     else {
    1377           0 :         id = (v__)->Id();
    1378           0 :         if ((1) == (id)) {
    1379           0 :             FatalError("actor has been |delete|d");
    1380             :         }
    1381             :     }
    1382             : 
    1383           0 :     Write(id, msg__);
    1384           0 : }
    1385             : 
    1386           0 : auto PPluginScriptableObjectChild::Read(
    1387             :         PPluginScriptableObjectChild** v__,
    1388             :         const Message* msg__,
    1389             :         PickleIterator* iter__,
    1390             :         bool nullable__) -> bool
    1391             : {
    1392           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPluginScriptableObject", PPluginScriptableObjectMsgStart);
    1393           0 :     if ((actor).isNothing()) {
    1394           0 :         return false;
    1395             :     }
    1396             : 
    1397           0 :     (*(v__)) = static_cast<PPluginScriptableObjectChild*>((actor).value());
    1398           0 :     return true;
    1399             : }
    1400             : 
    1401           0 : auto PPluginScriptableObjectChild::Write(
    1402             :         const PluginIdentifier& v__,
    1403             :         Message* msg__) -> void
    1404             : {
    1405             :     typedef PluginIdentifier type__;
    1406           0 :     Write(int((v__).type()), msg__);
    1407             :     // Sentinel = 'PluginIdentifier'
    1408           0 :     (msg__)->WriteSentinel(2215615288);
    1409             : 
    1410           0 :     switch ((v__).type()) {
    1411             :     case type__::TnsCString:
    1412             :         {
    1413           0 :             Write((v__).get_nsCString(), msg__);
    1414             :             // Sentinel = 'TnsCString'
    1415           0 :             (msg__)->WriteSentinel(2427411293);
    1416           0 :             return;
    1417             :         }
    1418             :     case type__::Tint32_t:
    1419             :         {
    1420           0 :             Write((v__).get_int32_t(), msg__);
    1421             :             // Sentinel = 'Tint32_t'
    1422           0 :             (msg__)->WriteSentinel(4219052577);
    1423           0 :             return;
    1424             :         }
    1425             :     default:
    1426             :         {
    1427           0 :             FatalError("unknown union type");
    1428           0 :             return;
    1429             :         }
    1430             :     }
    1431             : }
    1432             : 
    1433           0 : auto PPluginScriptableObjectChild::Read(
    1434             :         PluginIdentifier* v__,
    1435             :         const Message* msg__,
    1436             :         PickleIterator* iter__) -> bool
    1437             : {
    1438             :     typedef PluginIdentifier type__;
    1439             :     int type;
    1440           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1441           0 :         mozilla::ipc::UnionTypeReadError("PluginIdentifier");
    1442           0 :         return false;
    1443             :     }
    1444             :     // Sentinel = 'PluginIdentifier'
    1445           0 :     if ((!((msg__)->ReadSentinel(iter__, 2215615288)))) {
    1446           0 :         mozilla::ipc::SentinelReadError("PluginIdentifier");
    1447           0 :         return false;
    1448             :     }
    1449             : 
    1450           0 :     switch (type) {
    1451             :     case type__::TnsCString:
    1452             :         {
    1453           0 :             nsCString tmp = nsCString();
    1454           0 :             (*(v__)) = tmp;
    1455           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    1456           0 :                 FatalError("Error deserializing Union type");
    1457           0 :                 return false;
    1458             :             }
    1459             :             // Sentinel = 'TnsCString'
    1460           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    1461           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1462           0 :                 return false;
    1463             :             }
    1464           0 :             return true;
    1465             :         }
    1466             :     case type__::Tint32_t:
    1467             :         {
    1468           0 :             int32_t tmp = int32_t();
    1469           0 :             (*(v__)) = tmp;
    1470           0 :             if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
    1471           0 :                 FatalError("Error deserializing Union type");
    1472           0 :                 return false;
    1473             :             }
    1474             :             // Sentinel = 'Tint32_t'
    1475           0 :             if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
    1476           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1477           0 :                 return false;
    1478             :             }
    1479           0 :             return true;
    1480             :         }
    1481             :     default:
    1482             :         {
    1483           0 :             FatalError("unknown union type");
    1484           0 :             return false;
    1485             :         }
    1486             :     }
    1487             : }
    1488             : 
    1489           0 : auto PPluginScriptableObjectChild::Write(
    1490             :         const Variant& v__,
    1491             :         Message* msg__) -> void
    1492             : {
    1493             :     typedef Variant type__;
    1494           0 :     Write(int((v__).type()), msg__);
    1495             :     // Sentinel = 'Variant'
    1496           0 :     (msg__)->WriteSentinel(2341468588);
    1497             : 
    1498           0 :     switch ((v__).type()) {
    1499             :     case type__::Tvoid_t:
    1500             :         {
    1501           0 :             Write((v__).get_void_t(), msg__);
    1502             :             // Sentinel = 'Tvoid_t'
    1503           0 :             (msg__)->WriteSentinel(3041273328);
    1504           0 :             return;
    1505             :         }
    1506             :     case type__::Tnull_t:
    1507             :         {
    1508           0 :             Write((v__).get_null_t(), msg__);
    1509             :             // Sentinel = 'Tnull_t'
    1510           0 :             (msg__)->WriteSentinel(3731137201);
    1511           0 :             return;
    1512             :         }
    1513             :     case type__::Tbool:
    1514             :         {
    1515           0 :             Write((v__).get_bool(), msg__);
    1516             :             // Sentinel = 'Tbool'
    1517           0 :             (msg__)->WriteSentinel(1958350201);
    1518           0 :             return;
    1519             :         }
    1520             :     case type__::Tint:
    1521             :         {
    1522           0 :             Write((v__).get_int(), msg__);
    1523             :             // Sentinel = 'Tint'
    1524           0 :             (msg__)->WriteSentinel(1229956739);
    1525           0 :             return;
    1526             :         }
    1527             :     case type__::Tdouble:
    1528             :         {
    1529           0 :             Write((v__).get_double(), msg__);
    1530             :             // Sentinel = 'Tdouble'
    1531           0 :             (msg__)->WriteSentinel(3456933244);
    1532           0 :             return;
    1533             :         }
    1534             :     case type__::TnsCString:
    1535             :         {
    1536           0 :             Write((v__).get_nsCString(), msg__);
    1537             :             // Sentinel = 'TnsCString'
    1538           0 :             (msg__)->WriteSentinel(2427411293);
    1539           0 :             return;
    1540             :         }
    1541             :     case type__::TPPluginScriptableObjectParent:
    1542             :         {
    1543           0 :             FatalError("wrong side!");
    1544           0 :             return;
    1545             :         }
    1546             :     case type__::TPPluginScriptableObjectChild:
    1547             :         {
    1548           0 :             Write((v__).get_PPluginScriptableObjectChild(), msg__, true);
    1549             :             // Sentinel = 'TPPluginScriptableObjectChild'
    1550           0 :             (msg__)->WriteSentinel(4061745976);
    1551           0 :             return;
    1552             :         }
    1553             :     default:
    1554             :         {
    1555           0 :             FatalError("unknown union type");
    1556           0 :             return;
    1557             :         }
    1558             :     }
    1559             : }
    1560             : 
    1561           0 : auto PPluginScriptableObjectChild::Read(
    1562             :         Variant* v__,
    1563             :         const Message* msg__,
    1564             :         PickleIterator* iter__) -> bool
    1565             : {
    1566             :     typedef Variant type__;
    1567             :     int type;
    1568           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1569           0 :         mozilla::ipc::UnionTypeReadError("Variant");
    1570           0 :         return false;
    1571             :     }
    1572             :     // Sentinel = 'Variant'
    1573           0 :     if ((!((msg__)->ReadSentinel(iter__, 2341468588)))) {
    1574           0 :         mozilla::ipc::SentinelReadError("Variant");
    1575           0 :         return false;
    1576             :     }
    1577             : 
    1578           0 :     switch (type) {
    1579             :     case type__::Tvoid_t:
    1580             :         {
    1581             :             void_t tmp = void_t();
    1582           0 :             (*(v__)) = tmp;
    1583           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1584           0 :                 FatalError("Error deserializing Union type");
    1585           0 :                 return false;
    1586             :             }
    1587             :             // Sentinel = 'Tvoid_t'
    1588           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1589           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1590           0 :                 return false;
    1591             :             }
    1592           0 :             return true;
    1593             :         }
    1594             :     case type__::Tnull_t:
    1595             :         {
    1596             :             null_t tmp = null_t();
    1597           0 :             (*(v__)) = tmp;
    1598           0 :             if ((!(Read((&((v__)->get_null_t())), msg__, iter__)))) {
    1599           0 :                 FatalError("Error deserializing Union type");
    1600           0 :                 return false;
    1601             :             }
    1602             :             // Sentinel = 'Tnull_t'
    1603           0 :             if ((!((msg__)->ReadSentinel(iter__, 3731137201)))) {
    1604           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1605           0 :                 return false;
    1606             :             }
    1607           0 :             return true;
    1608             :         }
    1609             :     case type__::Tbool:
    1610             :         {
    1611           0 :             bool tmp = bool();
    1612           0 :             (*(v__)) = tmp;
    1613           0 :             if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
    1614           0 :                 FatalError("Error deserializing Union type");
    1615           0 :                 return false;
    1616             :             }
    1617             :             // Sentinel = 'Tbool'
    1618           0 :             if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
    1619           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1620           0 :                 return false;
    1621             :             }
    1622           0 :             return true;
    1623             :         }
    1624             :     case type__::Tint:
    1625             :         {
    1626           0 :             int tmp = int();
    1627           0 :             (*(v__)) = tmp;
    1628           0 :             if ((!(Read((&((v__)->get_int())), msg__, iter__)))) {
    1629           0 :                 FatalError("Error deserializing Union type");
    1630           0 :                 return false;
    1631             :             }
    1632             :             // Sentinel = 'Tint'
    1633           0 :             if ((!((msg__)->ReadSentinel(iter__, 1229956739)))) {
    1634           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1635           0 :                 return false;
    1636             :             }
    1637           0 :             return true;
    1638             :         }
    1639             :     case type__::Tdouble:
    1640             :         {
    1641           0 :             double tmp = double();
    1642           0 :             (*(v__)) = tmp;
    1643           0 :             if ((!(Read((&((v__)->get_double())), msg__, iter__)))) {
    1644           0 :                 FatalError("Error deserializing Union type");
    1645           0 :                 return false;
    1646             :             }
    1647             :             // Sentinel = 'Tdouble'
    1648           0 :             if ((!((msg__)->ReadSentinel(iter__, 3456933244)))) {
    1649           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1650           0 :                 return false;
    1651             :             }
    1652           0 :             return true;
    1653             :         }
    1654             :     case type__::TnsCString:
    1655             :         {
    1656           0 :             nsCString tmp = nsCString();
    1657           0 :             (*(v__)) = tmp;
    1658           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
    1659           0 :                 FatalError("Error deserializing Union type");
    1660           0 :                 return false;
    1661             :             }
    1662             :             // Sentinel = 'TnsCString'
    1663           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
    1664           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1665           0 :                 return false;
    1666             :             }
    1667           0 :             return true;
    1668             :         }
    1669             :     case type__::TPPluginScriptableObjectParent:
    1670             :         {
    1671           0 :             PPluginScriptableObjectChild* tmp = nullptr;
    1672           0 :             (*(v__)) = tmp;
    1673           0 :             if ((!(Read((&((v__)->get_PPluginScriptableObjectChild())), msg__, iter__, true)))) {
    1674           0 :                 FatalError("Error deserializing Union type");
    1675           0 :                 return false;
    1676             :             }
    1677             :             // Sentinel = 'TPPluginScriptableObjectParent'
    1678           0 :             if ((!((msg__)->ReadSentinel(iter__, 4046794731)))) {
    1679           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1680           0 :                 return false;
    1681             :             }
    1682           0 :             return true;
    1683             :         }
    1684             :     case type__::TPPluginScriptableObjectChild:
    1685             :         {
    1686           0 :             return false;
    1687             :         }
    1688             :     default:
    1689             :         {
    1690           0 :             FatalError("unknown union type");
    1691           0 :             return false;
    1692             :         }
    1693             :     }
    1694             : }
    1695             : 
    1696             : 
    1697             : 
    1698             : } // namespace plugins
    1699             : } // namespace mozilla

Generated by: LCOV version 1.13