LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PWebBrowserPersistSerializeChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 79 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 17 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/PWebBrowserPersistSerializeChild.h"
       8             : 
       9             : #include "mozilla/PWebBrowserPersistDocumentChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : 
      16             : 
      17           0 : auto PWebBrowserPersistSerializeChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      18             : {
      19           0 : }
      20             : 
      21           0 : MOZ_IMPLICIT PWebBrowserPersistSerializeChild::PWebBrowserPersistSerializeChild() :
      22             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      23           0 :     mState(PWebBrowserPersistSerialize::__Dead)
      24             : {
      25           0 :     MOZ_COUNT_CTOR(PWebBrowserPersistSerializeChild);
      26           0 : }
      27             : 
      28           0 : PWebBrowserPersistSerializeChild::~PWebBrowserPersistSerializeChild()
      29             : {
      30           0 :     MOZ_COUNT_DTOR(PWebBrowserPersistSerializeChild);
      31           0 : }
      32             : 
      33           0 : auto PWebBrowserPersistSerializeChild::Manager() const -> PWebBrowserPersistDocumentChild*
      34             : {
      35           0 :     return static_cast<PWebBrowserPersistDocumentChild*>(IProtocol::Manager());
      36             : }
      37             : 
      38           0 : auto PWebBrowserPersistSerializeChild::SendWriteData(const nsTArray<uint8_t>& aData) -> bool
      39             : {
      40           0 :     IPC::Message* msg__ = PWebBrowserPersistSerialize::Msg_WriteData(Id());
      41             : 
      42           0 :     Write(aData, msg__);
      43             :     // Sentinel = 'aData'
      44           0 :     (msg__)->WriteSentinel(3285075324);
      45             : 
      46             : 
      47             : 
      48             : 
      49           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistSerializeChild")) {
      50           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistSerializeChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      51             :     }
      52           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistSerialize::Msg_WriteData", OTHER);
      53           0 :     PWebBrowserPersistSerialize::Transition(PWebBrowserPersistSerialize::Msg_WriteData__ID, (&(mState)));
      54             : 
      55           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      56           0 :     return sendok__;
      57             : }
      58             : 
      59           0 : auto PWebBrowserPersistSerializeChild::Send__delete__(
      60             :         PWebBrowserPersistSerializeChild* actor,
      61             :         const nsCString& aContentType,
      62             :         const nsresult& aStatus) -> bool
      63             : {
      64           0 :     if ((!(actor))) {
      65           0 :         return false;
      66             :     }
      67             : 
      68           0 :     IPC::Message* msg__ = PWebBrowserPersistSerialize::Msg___delete__((actor)->Id());
      69             : 
      70           0 :     (actor)->Write(actor, msg__, false);
      71             :     // Sentinel = 'actor'
      72           0 :     (msg__)->WriteSentinel(875202478);
      73           0 :     (actor)->Write(aContentType, msg__);
      74             :     // Sentinel = 'aContentType'
      75           0 :     (msg__)->WriteSentinel(694407768);
      76           0 :     (actor)->Write(aStatus, msg__);
      77             :     // Sentinel = 'aStatus'
      78           0 :     (msg__)->WriteSentinel(236002576);
      79             : 
      80             : 
      81             : 
      82           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebBrowserPersistSerializeChild")) {
      83           0 :         mozilla::ipc::LogMessageForProtocol("PWebBrowserPersistSerializeChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      84             :     }
      85           0 :     AUTO_PROFILER_LABEL("PWebBrowserPersistSerialize::Msg___delete__", OTHER);
      86           0 :     PWebBrowserPersistSerialize::Transition(PWebBrowserPersistSerialize::Msg___delete____ID, (&((actor)->mState)));
      87             : 
      88           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      89             : 
      90           0 :     IProtocol* mgr = (actor)->Manager();
      91           0 :     (actor)->DestroySubtree(Deletion);
      92           0 :     (actor)->DeallocSubtree();
      93           0 :     (mgr)->RemoveManagee(PWebBrowserPersistSerializeMsgStart, actor);
      94           0 :     return sendok__;
      95             : }
      96             : 
      97           0 : auto PWebBrowserPersistSerializeChild::RemoveManagee(
      98             :         int32_t aProtocolId,
      99             :         ProtocolBase* aListener) -> void
     100             : {
     101           0 :     FatalError("unreached");
     102           0 :     return;
     103             : }
     104             : 
     105           0 : auto PWebBrowserPersistSerializeChild::OnMessageReceived(const Message& msg__) -> PWebBrowserPersistSerializeChild::Result
     106             : {
     107           0 :     switch ((msg__).type()) {
     108             :     case PWebBrowserPersistSerialize::Reply___delete____ID:
     109             :         {
     110           0 :             return MsgProcessed;
     111             :         }
     112             :     default:
     113             :         {
     114           0 :             return MsgNotKnown;
     115             :         }
     116             :     }
     117             : }
     118             : 
     119           0 : auto PWebBrowserPersistSerializeChild::OnMessageReceived(
     120             :         const Message& msg__,
     121             :         Message*& reply__) -> PWebBrowserPersistSerializeChild::Result
     122             : {
     123           0 :     return MsgNotKnown;
     124             : }
     125             : 
     126           0 : auto PWebBrowserPersistSerializeChild::OnCallReceived(
     127             :         const Message& msg__,
     128             :         Message*& reply__) -> PWebBrowserPersistSerializeChild::Result
     129             : {
     130           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     131             :     return MsgNotKnown;
     132             : }
     133             : 
     134           0 : auto PWebBrowserPersistSerializeChild::GetProtocolTypeId() -> int32_t
     135             : {
     136           0 :     return PWebBrowserPersistSerializeMsgStart;
     137             : }
     138             : 
     139           0 : auto PWebBrowserPersistSerializeChild::ProtocolName() const -> const char*
     140             : {
     141           0 :     return "PWebBrowserPersistSerializeChild";
     142             : }
     143             : 
     144           0 : auto PWebBrowserPersistSerializeChild::DestroySubtree(ActorDestroyReason why) -> void
     145             : {
     146             :     // Unregister from our manager.
     147           0 :     Unregister(Id());
     148             : 
     149             :     // Reject owning pending promises.
     150           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     151             : 
     152             :     // Finally, destroy "us".
     153           0 :     ActorDestroy(why);
     154           0 : }
     155             : 
     156           0 : auto PWebBrowserPersistSerializeChild::DeallocSubtree() -> void
     157             : {
     158           0 : }
     159             : 
     160           0 : auto PWebBrowserPersistSerializeChild::Write(
     161             :         const PWebBrowserPersistSerializeChild* v__,
     162             :         Message* msg__,
     163             :         bool nullable__) -> void
     164             : {
     165             :     int32_t id;
     166           0 :     if ((!(v__))) {
     167           0 :         if ((!(nullable__))) {
     168           0 :             FatalError("NULL actor value passed to non-nullable param");
     169             :         }
     170           0 :         id = 0;
     171             :     }
     172             :     else {
     173           0 :         id = (v__)->Id();
     174           0 :         if ((1) == (id)) {
     175           0 :             FatalError("actor has been |delete|d");
     176             :         }
     177             :     }
     178             : 
     179           0 :     Write(id, msg__);
     180           0 : }
     181             : 
     182           0 : auto PWebBrowserPersistSerializeChild::Read(
     183             :         PWebBrowserPersistSerializeChild** v__,
     184             :         const Message* msg__,
     185             :         PickleIterator* iter__,
     186             :         bool nullable__) -> bool
     187             : {
     188           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebBrowserPersistSerialize", PWebBrowserPersistSerializeMsgStart);
     189           0 :     if ((actor).isNothing()) {
     190           0 :         return false;
     191             :     }
     192             : 
     193           0 :     (*(v__)) = static_cast<PWebBrowserPersistSerializeChild*>((actor).value());
     194           0 :     return true;
     195             : }
     196             : 
     197             : 
     198             : 
     199             : } // namespace mozilla

Generated by: LCOV version 1.13