LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PSpeechSynthesisRequestChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 266 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 21 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/dom/PSpeechSynthesisRequestChild.h"
       8             : 
       9             : #include "mozilla/dom/PSpeechSynthesisChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18           0 : auto PSpeechSynthesisRequestChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      19             : {
      20           0 : }
      21             : 
      22           0 : MOZ_IMPLICIT PSpeechSynthesisRequestChild::PSpeechSynthesisRequestChild() :
      23             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      24           0 :     mState(PSpeechSynthesisRequest::__Dead)
      25             : {
      26           0 :     MOZ_COUNT_CTOR(PSpeechSynthesisRequestChild);
      27           0 : }
      28             : 
      29           0 : PSpeechSynthesisRequestChild::~PSpeechSynthesisRequestChild()
      30             : {
      31           0 :     MOZ_COUNT_DTOR(PSpeechSynthesisRequestChild);
      32           0 : }
      33             : 
      34           0 : auto PSpeechSynthesisRequestChild::Manager() const -> PSpeechSynthesisChild*
      35             : {
      36           0 :     return static_cast<PSpeechSynthesisChild*>(IProtocol::Manager());
      37             : }
      38             : 
      39           0 : auto PSpeechSynthesisRequestChild::Send__delete__(PSpeechSynthesisRequestChild* actor) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg___delete__((actor)->Id());
      46             : 
      47           0 :     (actor)->Write(actor, msg__, false);
      48             :     // Sentinel = 'actor'
      49           0 :     (msg__)->WriteSentinel(875202478);
      50             : 
      51             : 
      52             : 
      53           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
      54           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      55             :     }
      56           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg___delete__", OTHER);
      57           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg___delete____ID, (&((actor)->mState)));
      58             : 
      59           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      60             : 
      61           0 :     IProtocol* mgr = (actor)->Manager();
      62           0 :     (actor)->DestroySubtree(Deletion);
      63           0 :     (actor)->DeallocSubtree();
      64           0 :     (mgr)->RemoveManagee(PSpeechSynthesisRequestMsgStart, actor);
      65           0 :     return sendok__;
      66             : }
      67             : 
      68           0 : auto PSpeechSynthesisRequestChild::SendPause() -> bool
      69             : {
      70           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Pause(Id());
      71             : 
      72             : 
      73             : 
      74             : 
      75             : 
      76           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
      77           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      78             :     }
      79           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Pause", OTHER);
      80           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_Pause__ID, (&(mState)));
      81             : 
      82           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      83           0 :     return sendok__;
      84             : }
      85             : 
      86           0 : auto PSpeechSynthesisRequestChild::SendResume() -> bool
      87             : {
      88           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Resume(Id());
      89             : 
      90             : 
      91             : 
      92             : 
      93             : 
      94           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
      95           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      96             :     }
      97           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Resume", OTHER);
      98           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_Resume__ID, (&(mState)));
      99             : 
     100           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     101           0 :     return sendok__;
     102             : }
     103             : 
     104           0 : auto PSpeechSynthesisRequestChild::SendCancel() -> bool
     105             : {
     106           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_Cancel(Id());
     107             : 
     108             : 
     109             : 
     110             : 
     111             : 
     112           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     113           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     114             :     }
     115           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_Cancel", OTHER);
     116           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_Cancel__ID, (&(mState)));
     117             : 
     118           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     119           0 :     return sendok__;
     120             : }
     121             : 
     122           0 : auto PSpeechSynthesisRequestChild::SendForceEnd() -> bool
     123             : {
     124           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_ForceEnd(Id());
     125             : 
     126             : 
     127             : 
     128             : 
     129             : 
     130           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     131           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     132             :     }
     133           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_ForceEnd", OTHER);
     134           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_ForceEnd__ID, (&(mState)));
     135             : 
     136           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     137           0 :     return sendok__;
     138             : }
     139             : 
     140           0 : auto PSpeechSynthesisRequestChild::SendSetAudioOutputVolume(const float& aVolume) -> bool
     141             : {
     142           0 :     IPC::Message* msg__ = PSpeechSynthesisRequest::Msg_SetAudioOutputVolume(Id());
     143             : 
     144           0 :     Write(aVolume, msg__);
     145             :     // Sentinel = 'aVolume'
     146           0 :     (msg__)->WriteSentinel(3908369896);
     147             : 
     148             : 
     149             : 
     150             : 
     151           0 :     if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     152           0 :         mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     153             :     }
     154           0 :     AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_SetAudioOutputVolume", OTHER);
     155           0 :     PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_SetAudioOutputVolume__ID, (&(mState)));
     156             : 
     157           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     158           0 :     return sendok__;
     159             : }
     160             : 
     161           0 : auto PSpeechSynthesisRequestChild::RemoveManagee(
     162             :         int32_t aProtocolId,
     163             :         ProtocolBase* aListener) -> void
     164             : {
     165           0 :     FatalError("unreached");
     166           0 :     return;
     167             : }
     168             : 
     169           0 : auto PSpeechSynthesisRequestChild::OnMessageReceived(const Message& msg__) -> PSpeechSynthesisRequestChild::Result
     170             : {
     171           0 :     switch ((msg__).type()) {
     172             :     case PSpeechSynthesisRequest::Reply___delete____ID:
     173             :         {
     174           0 :             return MsgProcessed;
     175             :         }
     176             :     case PSpeechSynthesisRequest::Msg_OnEnd__ID:
     177             :         {
     178           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     179           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     180             :             }
     181           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnEnd", OTHER);
     182             : 
     183           0 :             PickleIterator iter__(msg__);
     184             :             bool aIsError;
     185             :             float aElapsedTime;
     186             :             uint32_t aCharIndex;
     187             : 
     188           0 :             if ((!(Read((&(aIsError)), (&(msg__)), (&(iter__)))))) {
     189           0 :                 FatalError("Error deserializing 'bool'");
     190           0 :                 return MsgValueError;
     191             :             }
     192             :             // Sentinel = 'aIsError'
     193           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3979019701)))) {
     194           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
     195           0 :                 return MsgValueError;
     196             :             }
     197           0 :             if ((!(Read((&(aElapsedTime)), (&(msg__)), (&(iter__)))))) {
     198           0 :                 FatalError("Error deserializing 'float'");
     199           0 :                 return MsgValueError;
     200             :             }
     201             :             // Sentinel = 'aElapsedTime'
     202           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
     203           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     204           0 :                 return MsgValueError;
     205             :             }
     206           0 :             if ((!(Read((&(aCharIndex)), (&(msg__)), (&(iter__)))))) {
     207           0 :                 FatalError("Error deserializing 'uint32_t'");
     208           0 :                 return MsgValueError;
     209             :             }
     210             :             // Sentinel = 'aCharIndex'
     211           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
     212           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     213           0 :                 return MsgValueError;
     214             :             }
     215           0 :             (msg__).EndRead(iter__, (msg__).type());
     216           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnEnd__ID, (&(mState)));
     217           0 :             if ((!(RecvOnEnd(mozilla::Move(aIsError), mozilla::Move(aElapsedTime), mozilla::Move(aCharIndex))))) {
     218           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     219             :                 // Error handled in mozilla::ipc::IPCResult
     220           0 :                 return MsgProcessingError;
     221             :             }
     222             : 
     223           0 :             return MsgProcessed;
     224             :         }
     225             :     case PSpeechSynthesisRequest::Msg_OnStart__ID:
     226             :         {
     227           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     228           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     229             :             }
     230           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnStart", OTHER);
     231             : 
     232           0 :             PickleIterator iter__(msg__);
     233           0 :             nsString aUri;
     234             : 
     235           0 :             if ((!(Read((&(aUri)), (&(msg__)), (&(iter__)))))) {
     236           0 :                 FatalError("Error deserializing 'nsString'");
     237           0 :                 return MsgValueError;
     238             :             }
     239             :             // Sentinel = 'aUri'
     240           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2043506205)))) {
     241           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     242           0 :                 return MsgValueError;
     243             :             }
     244           0 :             (msg__).EndRead(iter__, (msg__).type());
     245           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnStart__ID, (&(mState)));
     246           0 :             if ((!(RecvOnStart(mozilla::Move(aUri))))) {
     247           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     248             :                 // Error handled in mozilla::ipc::IPCResult
     249           0 :                 return MsgProcessingError;
     250             :             }
     251             : 
     252           0 :             return MsgProcessed;
     253             :         }
     254             :     case PSpeechSynthesisRequest::Msg_OnPause__ID:
     255             :         {
     256           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     257           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     258             :             }
     259           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnPause", OTHER);
     260             : 
     261           0 :             PickleIterator iter__(msg__);
     262             :             float aElapsedTime;
     263             :             uint32_t aCharIndex;
     264             : 
     265           0 :             if ((!(Read((&(aElapsedTime)), (&(msg__)), (&(iter__)))))) {
     266           0 :                 FatalError("Error deserializing 'float'");
     267           0 :                 return MsgValueError;
     268             :             }
     269             :             // Sentinel = 'aElapsedTime'
     270           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
     271           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     272           0 :                 return MsgValueError;
     273             :             }
     274           0 :             if ((!(Read((&(aCharIndex)), (&(msg__)), (&(iter__)))))) {
     275           0 :                 FatalError("Error deserializing 'uint32_t'");
     276           0 :                 return MsgValueError;
     277             :             }
     278             :             // Sentinel = 'aCharIndex'
     279           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
     280           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     281           0 :                 return MsgValueError;
     282             :             }
     283           0 :             (msg__).EndRead(iter__, (msg__).type());
     284           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnPause__ID, (&(mState)));
     285           0 :             if ((!(RecvOnPause(mozilla::Move(aElapsedTime), mozilla::Move(aCharIndex))))) {
     286           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     287             :                 // Error handled in mozilla::ipc::IPCResult
     288           0 :                 return MsgProcessingError;
     289             :             }
     290             : 
     291           0 :             return MsgProcessed;
     292             :         }
     293             :     case PSpeechSynthesisRequest::Msg_OnResume__ID:
     294             :         {
     295           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     296           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     297             :             }
     298           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnResume", OTHER);
     299             : 
     300           0 :             PickleIterator iter__(msg__);
     301             :             float aElapsedTime;
     302             :             uint32_t aCharIndex;
     303             : 
     304           0 :             if ((!(Read((&(aElapsedTime)), (&(msg__)), (&(iter__)))))) {
     305           0 :                 FatalError("Error deserializing 'float'");
     306           0 :                 return MsgValueError;
     307             :             }
     308             :             // Sentinel = 'aElapsedTime'
     309           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
     310           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     311           0 :                 return MsgValueError;
     312             :             }
     313           0 :             if ((!(Read((&(aCharIndex)), (&(msg__)), (&(iter__)))))) {
     314           0 :                 FatalError("Error deserializing 'uint32_t'");
     315           0 :                 return MsgValueError;
     316             :             }
     317             :             // Sentinel = 'aCharIndex'
     318           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
     319           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     320           0 :                 return MsgValueError;
     321             :             }
     322           0 :             (msg__).EndRead(iter__, (msg__).type());
     323           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnResume__ID, (&(mState)));
     324           0 :             if ((!(RecvOnResume(mozilla::Move(aElapsedTime), mozilla::Move(aCharIndex))))) {
     325           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     326             :                 // Error handled in mozilla::ipc::IPCResult
     327           0 :                 return MsgProcessingError;
     328             :             }
     329             : 
     330           0 :             return MsgProcessed;
     331             :         }
     332             :     case PSpeechSynthesisRequest::Msg_OnBoundary__ID:
     333             :         {
     334           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     335           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     336             :             }
     337           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnBoundary", OTHER);
     338             : 
     339           0 :             PickleIterator iter__(msg__);
     340           0 :             nsString aName;
     341             :             float aElapsedTime;
     342             :             uint32_t aCharIndex;
     343             :             uint32_t aCharLength;
     344             :             uint8_t argc;
     345             : 
     346           0 :             if ((!(Read((&(aName)), (&(msg__)), (&(iter__)))))) {
     347           0 :                 FatalError("Error deserializing 'nsString'");
     348           0 :                 return MsgValueError;
     349             :             }
     350             :             // Sentinel = 'aName'
     351           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
     352           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     353           0 :                 return MsgValueError;
     354             :             }
     355           0 :             if ((!(Read((&(aElapsedTime)), (&(msg__)), (&(iter__)))))) {
     356           0 :                 FatalError("Error deserializing 'float'");
     357           0 :                 return MsgValueError;
     358             :             }
     359             :             // Sentinel = 'aElapsedTime'
     360           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
     361           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     362           0 :                 return MsgValueError;
     363             :             }
     364           0 :             if ((!(Read((&(aCharIndex)), (&(msg__)), (&(iter__)))))) {
     365           0 :                 FatalError("Error deserializing 'uint32_t'");
     366           0 :                 return MsgValueError;
     367             :             }
     368             :             // Sentinel = 'aCharIndex'
     369           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
     370           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     371           0 :                 return MsgValueError;
     372             :             }
     373           0 :             if ((!(Read((&(aCharLength)), (&(msg__)), (&(iter__)))))) {
     374           0 :                 FatalError("Error deserializing 'uint32_t'");
     375           0 :                 return MsgValueError;
     376             :             }
     377             :             // Sentinel = 'aCharLength'
     378           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1167657610)))) {
     379           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     380           0 :                 return MsgValueError;
     381             :             }
     382           0 :             if ((!(Read((&(argc)), (&(msg__)), (&(iter__)))))) {
     383           0 :                 FatalError("Error deserializing 'uint8_t'");
     384           0 :                 return MsgValueError;
     385             :             }
     386             :             // Sentinel = 'argc'
     387           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760603)))) {
     388           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint8_t'");
     389           0 :                 return MsgValueError;
     390             :             }
     391           0 :             (msg__).EndRead(iter__, (msg__).type());
     392           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnBoundary__ID, (&(mState)));
     393           0 :             if ((!(RecvOnBoundary(mozilla::Move(aName), mozilla::Move(aElapsedTime), mozilla::Move(aCharIndex), mozilla::Move(aCharLength), mozilla::Move(argc))))) {
     394           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     395             :                 // Error handled in mozilla::ipc::IPCResult
     396           0 :                 return MsgProcessingError;
     397             :             }
     398             : 
     399           0 :             return MsgProcessed;
     400             :         }
     401             :     case PSpeechSynthesisRequest::Msg_OnMark__ID:
     402             :         {
     403           0 :             if (mozilla::ipc::LoggingEnabledFor("PSpeechSynthesisRequestChild")) {
     404           0 :                 mozilla::ipc::LogMessageForProtocol("PSpeechSynthesisRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     405             :             }
     406           0 :             AUTO_PROFILER_LABEL("PSpeechSynthesisRequest::Msg_OnMark", OTHER);
     407             : 
     408           0 :             PickleIterator iter__(msg__);
     409           0 :             nsString aName;
     410             :             float aElapsedTime;
     411             :             uint32_t aCharIndex;
     412             : 
     413           0 :             if ((!(Read((&(aName)), (&(msg__)), (&(iter__)))))) {
     414           0 :                 FatalError("Error deserializing 'nsString'");
     415           0 :                 return MsgValueError;
     416             :             }
     417             :             // Sentinel = 'aName'
     418           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1450162941)))) {
     419           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     420           0 :                 return MsgValueError;
     421             :             }
     422           0 :             if ((!(Read((&(aElapsedTime)), (&(msg__)), (&(iter__)))))) {
     423           0 :                 FatalError("Error deserializing 'float'");
     424           0 :                 return MsgValueError;
     425             :             }
     426             :             // Sentinel = 'aElapsedTime'
     427           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 45978708)))) {
     428           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'float'");
     429           0 :                 return MsgValueError;
     430             :             }
     431           0 :             if ((!(Read((&(aCharIndex)), (&(msg__)), (&(iter__)))))) {
     432           0 :                 FatalError("Error deserializing 'uint32_t'");
     433           0 :                 return MsgValueError;
     434             :             }
     435             :             // Sentinel = 'aCharIndex'
     436           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3951557473)))) {
     437           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
     438           0 :                 return MsgValueError;
     439             :             }
     440           0 :             (msg__).EndRead(iter__, (msg__).type());
     441           0 :             PSpeechSynthesisRequest::Transition(PSpeechSynthesisRequest::Msg_OnMark__ID, (&(mState)));
     442           0 :             if ((!(RecvOnMark(mozilla::Move(aName), mozilla::Move(aElapsedTime), mozilla::Move(aCharIndex))))) {
     443           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     444             :                 // Error handled in mozilla::ipc::IPCResult
     445           0 :                 return MsgProcessingError;
     446             :             }
     447             : 
     448           0 :             return MsgProcessed;
     449             :         }
     450             :     default:
     451             :         {
     452           0 :             return MsgNotKnown;
     453             :         }
     454             :     }
     455             : }
     456             : 
     457           0 : auto PSpeechSynthesisRequestChild::OnMessageReceived(
     458             :         const Message& msg__,
     459             :         Message*& reply__) -> PSpeechSynthesisRequestChild::Result
     460             : {
     461           0 :     return MsgNotKnown;
     462             : }
     463             : 
     464           0 : auto PSpeechSynthesisRequestChild::OnCallReceived(
     465             :         const Message& msg__,
     466             :         Message*& reply__) -> PSpeechSynthesisRequestChild::Result
     467             : {
     468           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     469             :     return MsgNotKnown;
     470             : }
     471             : 
     472           0 : auto PSpeechSynthesisRequestChild::GetProtocolTypeId() -> int32_t
     473             : {
     474           0 :     return PSpeechSynthesisRequestMsgStart;
     475             : }
     476             : 
     477           0 : auto PSpeechSynthesisRequestChild::ProtocolName() const -> const char*
     478             : {
     479           0 :     return "PSpeechSynthesisRequestChild";
     480             : }
     481             : 
     482           0 : auto PSpeechSynthesisRequestChild::DestroySubtree(ActorDestroyReason why) -> void
     483             : {
     484             :     // Unregister from our manager.
     485           0 :     Unregister(Id());
     486             : 
     487             :     // Reject owning pending promises.
     488           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     489             : 
     490             :     // Finally, destroy "us".
     491           0 :     ActorDestroy(why);
     492           0 : }
     493             : 
     494           0 : auto PSpeechSynthesisRequestChild::DeallocSubtree() -> void
     495             : {
     496           0 : }
     497             : 
     498           0 : auto PSpeechSynthesisRequestChild::Write(
     499             :         const PSpeechSynthesisRequestChild* v__,
     500             :         Message* msg__,
     501             :         bool nullable__) -> void
     502             : {
     503             :     int32_t id;
     504           0 :     if ((!(v__))) {
     505           0 :         if ((!(nullable__))) {
     506           0 :             FatalError("NULL actor value passed to non-nullable param");
     507             :         }
     508           0 :         id = 0;
     509             :     }
     510             :     else {
     511           0 :         id = (v__)->Id();
     512           0 :         if ((1) == (id)) {
     513           0 :             FatalError("actor has been |delete|d");
     514             :         }
     515             :     }
     516             : 
     517           0 :     Write(id, msg__);
     518           0 : }
     519             : 
     520           0 : auto PSpeechSynthesisRequestChild::Read(
     521             :         PSpeechSynthesisRequestChild** v__,
     522             :         const Message* msg__,
     523             :         PickleIterator* iter__,
     524             :         bool nullable__) -> bool
     525             : {
     526           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PSpeechSynthesisRequest", PSpeechSynthesisRequestMsgStart);
     527           0 :     if ((actor).isNothing()) {
     528           0 :         return false;
     529             :     }
     530             : 
     531           0 :     (*(v__)) = static_cast<PSpeechSynthesisRequestChild*>((actor).value());
     532           0 :     return true;
     533             : }
     534             : 
     535             : 
     536             : 
     537             : } // namespace dom
     538             : } // namespace mozilla

Generated by: LCOV version 1.13