LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PPresentationBuilderParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 184 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 18 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/PPresentationBuilderParent.h"
       8             : 
       9             : #include "mozilla/dom/PPresentationParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18             : 
      19           0 : MOZ_IMPLICIT PPresentationBuilderParent::PPresentationBuilderParent() :
      20             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      21           0 :     mState(PPresentationBuilder::__Dead)
      22             : {
      23           0 :     MOZ_COUNT_CTOR(PPresentationBuilderParent);
      24           0 : }
      25             : 
      26           0 : PPresentationBuilderParent::~PPresentationBuilderParent()
      27             : {
      28           0 :     MOZ_COUNT_DTOR(PPresentationBuilderParent);
      29           0 : }
      30             : 
      31           0 : auto PPresentationBuilderParent::Manager() const -> PPresentationParent*
      32             : {
      33           0 :     return static_cast<PPresentationParent*>(IProtocol::Manager());
      34             : }
      35             : 
      36           0 : auto PPresentationBuilderParent::SendOnOffer(const nsString& aSDP) -> bool
      37             : {
      38           0 :     IPC::Message* msg__ = PPresentationBuilder::Msg_OnOffer(Id());
      39             : 
      40           0 :     Write(aSDP, msg__);
      41             :     // Sentinel = 'aSDP'
      42           0 :     (msg__)->WriteSentinel(2098818728);
      43             : 
      44             : 
      45             : 
      46             : 
      47           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
      48           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      49             :     }
      50           0 :     AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_OnOffer", OTHER);
      51           0 :     PPresentationBuilder::Transition(PPresentationBuilder::Msg_OnOffer__ID, (&(mState)));
      52             : 
      53           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      54           0 :     return sendok__;
      55             : }
      56             : 
      57           0 : auto PPresentationBuilderParent::SendOnAnswer(const nsString& aSDP) -> bool
      58             : {
      59           0 :     IPC::Message* msg__ = PPresentationBuilder::Msg_OnAnswer(Id());
      60             : 
      61           0 :     Write(aSDP, msg__);
      62             :     // Sentinel = 'aSDP'
      63           0 :     (msg__)->WriteSentinel(2098818728);
      64             : 
      65             : 
      66             : 
      67             : 
      68           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
      69           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      70             :     }
      71           0 :     AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_OnAnswer", OTHER);
      72           0 :     PPresentationBuilder::Transition(PPresentationBuilder::Msg_OnAnswer__ID, (&(mState)));
      73             : 
      74           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      75           0 :     return sendok__;
      76             : }
      77             : 
      78           0 : auto PPresentationBuilderParent::SendOnIceCandidate(const nsString& aCandidate) -> bool
      79             : {
      80           0 :     IPC::Message* msg__ = PPresentationBuilder::Msg_OnIceCandidate(Id());
      81             : 
      82           0 :     Write(aCandidate, msg__);
      83             :     // Sentinel = 'aCandidate'
      84           0 :     (msg__)->WriteSentinel(3277043990);
      85             : 
      86             : 
      87             : 
      88             : 
      89           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
      90           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      91             :     }
      92           0 :     AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_OnIceCandidate", OTHER);
      93           0 :     PPresentationBuilder::Transition(PPresentationBuilder::Msg_OnIceCandidate__ID, (&(mState)));
      94             : 
      95           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      96           0 :     return sendok__;
      97             : }
      98             : 
      99           0 : auto PPresentationBuilderParent::Send__delete__(PPresentationBuilderParent* actor) -> bool
     100             : {
     101           0 :     if ((!(actor))) {
     102           0 :         return false;
     103             :     }
     104             : 
     105           0 :     IPC::Message* msg__ = PPresentationBuilder::Msg___delete__((actor)->Id());
     106             : 
     107           0 :     (actor)->Write(actor, msg__, false);
     108             :     // Sentinel = 'actor'
     109           0 :     (msg__)->WriteSentinel(875202478);
     110             : 
     111             : 
     112             : 
     113           0 :     if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     114           0 :         mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     115             :     }
     116           0 :     AUTO_PROFILER_LABEL("PPresentationBuilder::Msg___delete__", OTHER);
     117           0 :     PPresentationBuilder::Transition(PPresentationBuilder::Msg___delete____ID, (&((actor)->mState)));
     118             : 
     119           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
     120             : 
     121           0 :     IProtocol* mgr = (actor)->Manager();
     122           0 :     (actor)->DestroySubtree(Deletion);
     123           0 :     (actor)->DeallocSubtree();
     124           0 :     (mgr)->RemoveManagee(PPresentationBuilderMsgStart, actor);
     125           0 :     return sendok__;
     126             : }
     127             : 
     128           0 : auto PPresentationBuilderParent::RemoveManagee(
     129             :         int32_t aProtocolId,
     130             :         ProtocolBase* aListener) -> void
     131             : {
     132           0 :     FatalError("unreached");
     133           0 :     return;
     134             : }
     135             : 
     136           0 : auto PPresentationBuilderParent::OnMessageReceived(const Message& msg__) -> PPresentationBuilderParent::Result
     137             : {
     138           0 :     switch ((msg__).type()) {
     139             :     case PPresentationBuilder::Msg_SendOffer__ID:
     140             :         {
     141           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     142           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     143             :             }
     144           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_SendOffer", OTHER);
     145             : 
     146           0 :             PickleIterator iter__(msg__);
     147           0 :             nsString aSDP;
     148             : 
     149           0 :             if ((!(Read((&(aSDP)), (&(msg__)), (&(iter__)))))) {
     150           0 :                 FatalError("Error deserializing 'nsString'");
     151           0 :                 return MsgValueError;
     152             :             }
     153             :             // Sentinel = 'aSDP'
     154           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2098818728)))) {
     155           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     156           0 :                 return MsgValueError;
     157             :             }
     158           0 :             (msg__).EndRead(iter__, (msg__).type());
     159           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_SendOffer__ID, (&(mState)));
     160           0 :             if ((!(RecvSendOffer(mozilla::Move(aSDP))))) {
     161           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     162             :                 // Error handled in mozilla::ipc::IPCResult
     163           0 :                 return MsgProcessingError;
     164             :             }
     165             : 
     166           0 :             return MsgProcessed;
     167             :         }
     168             :     case PPresentationBuilder::Msg_SendAnswer__ID:
     169             :         {
     170           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     171           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     172             :             }
     173           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_SendAnswer", OTHER);
     174             : 
     175           0 :             PickleIterator iter__(msg__);
     176           0 :             nsString aSDP;
     177             : 
     178           0 :             if ((!(Read((&(aSDP)), (&(msg__)), (&(iter__)))))) {
     179           0 :                 FatalError("Error deserializing 'nsString'");
     180           0 :                 return MsgValueError;
     181             :             }
     182             :             // Sentinel = 'aSDP'
     183           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2098818728)))) {
     184           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     185           0 :                 return MsgValueError;
     186             :             }
     187           0 :             (msg__).EndRead(iter__, (msg__).type());
     188           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_SendAnswer__ID, (&(mState)));
     189           0 :             if ((!(RecvSendAnswer(mozilla::Move(aSDP))))) {
     190           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     191             :                 // Error handled in mozilla::ipc::IPCResult
     192           0 :                 return MsgProcessingError;
     193             :             }
     194             : 
     195           0 :             return MsgProcessed;
     196             :         }
     197             :     case PPresentationBuilder::Msg_SendIceCandidate__ID:
     198             :         {
     199           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     200           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     201             :             }
     202           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_SendIceCandidate", OTHER);
     203             : 
     204           0 :             PickleIterator iter__(msg__);
     205           0 :             nsString aCandidate;
     206             : 
     207           0 :             if ((!(Read((&(aCandidate)), (&(msg__)), (&(iter__)))))) {
     208           0 :                 FatalError("Error deserializing 'nsString'");
     209           0 :                 return MsgValueError;
     210             :             }
     211             :             // Sentinel = 'aCandidate'
     212           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3277043990)))) {
     213           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
     214           0 :                 return MsgValueError;
     215             :             }
     216           0 :             (msg__).EndRead(iter__, (msg__).type());
     217           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_SendIceCandidate__ID, (&(mState)));
     218           0 :             if ((!(RecvSendIceCandidate(mozilla::Move(aCandidate))))) {
     219           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     220             :                 // Error handled in mozilla::ipc::IPCResult
     221           0 :                 return MsgProcessingError;
     222             :             }
     223             : 
     224           0 :             return MsgProcessed;
     225             :         }
     226             :     case PPresentationBuilder::Msg_Close__ID:
     227             :         {
     228           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     229           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     230             :             }
     231           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_Close", OTHER);
     232             : 
     233           0 :             PickleIterator iter__(msg__);
     234             :             nsresult aReason;
     235             : 
     236           0 :             if ((!(Read((&(aReason)), (&(msg__)), (&(iter__)))))) {
     237           0 :                 FatalError("Error deserializing 'nsresult'");
     238           0 :                 return MsgValueError;
     239             :             }
     240             :             // Sentinel = 'aReason'
     241           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 829905706)))) {
     242           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     243           0 :                 return MsgValueError;
     244             :             }
     245           0 :             (msg__).EndRead(iter__, (msg__).type());
     246           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_Close__ID, (&(mState)));
     247           0 :             if ((!(RecvClose(mozilla::Move(aReason))))) {
     248           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     249             :                 // Error handled in mozilla::ipc::IPCResult
     250           0 :                 return MsgProcessingError;
     251             :             }
     252             : 
     253           0 :             return MsgProcessed;
     254             :         }
     255             :     case PPresentationBuilder::Msg_OnSessionTransport__ID:
     256             :         {
     257           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     258           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     259             :             }
     260           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_OnSessionTransport", OTHER);
     261             : 
     262           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_OnSessionTransport__ID, (&(mState)));
     263           0 :             if ((!(RecvOnSessionTransport()))) {
     264           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     265             :                 // Error handled in mozilla::ipc::IPCResult
     266           0 :                 return MsgProcessingError;
     267             :             }
     268             : 
     269           0 :             return MsgProcessed;
     270             :         }
     271             :     case PPresentationBuilder::Msg_OnSessionTransportError__ID:
     272             :         {
     273           0 :             if (mozilla::ipc::LoggingEnabledFor("PPresentationBuilderParent")) {
     274           0 :                 mozilla::ipc::LogMessageForProtocol("PPresentationBuilderParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     275             :             }
     276           0 :             AUTO_PROFILER_LABEL("PPresentationBuilder::Msg_OnSessionTransportError", OTHER);
     277             : 
     278           0 :             PickleIterator iter__(msg__);
     279             :             nsresult aReason;
     280             : 
     281           0 :             if ((!(Read((&(aReason)), (&(msg__)), (&(iter__)))))) {
     282           0 :                 FatalError("Error deserializing 'nsresult'");
     283           0 :                 return MsgValueError;
     284             :             }
     285             :             // Sentinel = 'aReason'
     286           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 829905706)))) {
     287           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
     288           0 :                 return MsgValueError;
     289             :             }
     290           0 :             (msg__).EndRead(iter__, (msg__).type());
     291           0 :             PPresentationBuilder::Transition(PPresentationBuilder::Msg_OnSessionTransportError__ID, (&(mState)));
     292           0 :             if ((!(RecvOnSessionTransportError(mozilla::Move(aReason))))) {
     293           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     294             :                 // Error handled in mozilla::ipc::IPCResult
     295           0 :                 return MsgProcessingError;
     296             :             }
     297             : 
     298           0 :             return MsgProcessed;
     299             :         }
     300             :     case PPresentationBuilder::Reply___delete____ID:
     301             :         {
     302           0 :             return MsgProcessed;
     303             :         }
     304             :     default:
     305             :         {
     306           0 :             return MsgNotKnown;
     307             :         }
     308             :     }
     309             : }
     310             : 
     311           0 : auto PPresentationBuilderParent::OnMessageReceived(
     312             :         const Message& msg__,
     313             :         Message*& reply__) -> PPresentationBuilderParent::Result
     314             : {
     315           0 :     return MsgNotKnown;
     316             : }
     317             : 
     318           0 : auto PPresentationBuilderParent::OnCallReceived(
     319             :         const Message& msg__,
     320             :         Message*& reply__) -> PPresentationBuilderParent::Result
     321             : {
     322           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     323             :     return MsgNotKnown;
     324             : }
     325             : 
     326           0 : auto PPresentationBuilderParent::GetProtocolTypeId() -> int32_t
     327             : {
     328           0 :     return PPresentationBuilderMsgStart;
     329             : }
     330             : 
     331           0 : auto PPresentationBuilderParent::ProtocolName() const -> const char*
     332             : {
     333           0 :     return "PPresentationBuilderParent";
     334             : }
     335             : 
     336           0 : auto PPresentationBuilderParent::DestroySubtree(ActorDestroyReason why) -> void
     337             : {
     338             :     // Unregister from our manager.
     339           0 :     Unregister(Id());
     340             : 
     341             :     // Reject owning pending promises.
     342           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     343             : 
     344             :     // Finally, destroy "us".
     345           0 :     ActorDestroy(why);
     346           0 : }
     347             : 
     348           0 : auto PPresentationBuilderParent::DeallocSubtree() -> void
     349             : {
     350           0 : }
     351             : 
     352           0 : auto PPresentationBuilderParent::Write(
     353             :         const PPresentationBuilderParent* v__,
     354             :         Message* msg__,
     355             :         bool nullable__) -> void
     356             : {
     357             :     int32_t id;
     358           0 :     if ((!(v__))) {
     359           0 :         if ((!(nullable__))) {
     360           0 :             FatalError("NULL actor value passed to non-nullable param");
     361             :         }
     362           0 :         id = 0;
     363             :     }
     364             :     else {
     365           0 :         id = (v__)->Id();
     366           0 :         if ((1) == (id)) {
     367           0 :             FatalError("actor has been |delete|d");
     368             :         }
     369             :     }
     370             : 
     371           0 :     Write(id, msg__);
     372           0 : }
     373             : 
     374           0 : auto PPresentationBuilderParent::Read(
     375             :         PPresentationBuilderParent** v__,
     376             :         const Message* msg__,
     377             :         PickleIterator* iter__,
     378             :         bool nullable__) -> bool
     379             : {
     380           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PPresentationBuilder", PPresentationBuilderMsgStart);
     381           0 :     if ((actor).isNothing()) {
     382           0 :         return false;
     383             :     }
     384             : 
     385           0 :     (*(v__)) = static_cast<PPresentationBuilderParent*>((actor).value());
     386           0 :     return true;
     387             : }
     388             : 
     389             : 
     390             : 
     391             : } // namespace dom
     392             : } // namespace mozilla

Generated by: LCOV version 1.13