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

Generated by: LCOV version 1.13