LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PURLClassifierLocalParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 134 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 19 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/PURLClassifierLocalParent.h"
       8             : 
       9             : #include "mozilla/dom/PContentParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18             : 
      19           0 : MOZ_IMPLICIT PURLClassifierLocalParent::PURLClassifierLocalParent() :
      20             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      21           0 :     mState(PURLClassifierLocal::__Dead)
      22             : {
      23           0 :     MOZ_COUNT_CTOR(PURLClassifierLocalParent);
      24           0 : }
      25             : 
      26           0 : PURLClassifierLocalParent::~PURLClassifierLocalParent()
      27             : {
      28           0 :     MOZ_COUNT_DTOR(PURLClassifierLocalParent);
      29           0 : }
      30             : 
      31           0 : auto PURLClassifierLocalParent::Manager() const -> PContentParent*
      32             : {
      33           0 :     return static_cast<PContentParent*>(IProtocol::Manager());
      34             : }
      35             : 
      36           0 : auto PURLClassifierLocalParent::Send__delete__(
      37             :         PURLClassifierLocalParent* actor,
      38             :         const MaybeInfo& info,
      39             :         const nsresult& errorCode) -> bool
      40             : {
      41           0 :     if ((!(actor))) {
      42           0 :         return false;
      43             :     }
      44             : 
      45           0 :     IPC::Message* msg__ = PURLClassifierLocal::Msg___delete__((actor)->Id());
      46             : 
      47           0 :     (actor)->Write(actor, msg__, false);
      48             :     // Sentinel = 'actor'
      49           0 :     (msg__)->WriteSentinel(875202478);
      50           0 :     (actor)->Write(info, msg__);
      51             :     // Sentinel = 'info'
      52           0 :     (msg__)->WriteSentinel(3750868832);
      53           0 :     (actor)->Write(errorCode, msg__);
      54             :     // Sentinel = 'errorCode'
      55           0 :     (msg__)->WriteSentinel(262143504);
      56             : 
      57             : 
      58             : 
      59           0 :     if (mozilla::ipc::LoggingEnabledFor("PURLClassifierLocalParent")) {
      60           0 :         mozilla::ipc::LogMessageForProtocol("PURLClassifierLocalParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      61             :     }
      62           0 :     AUTO_PROFILER_LABEL("PURLClassifierLocal::Msg___delete__", OTHER);
      63           0 :     PURLClassifierLocal::Transition(PURLClassifierLocal::Msg___delete____ID, (&((actor)->mState)));
      64             : 
      65           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      66             : 
      67           0 :     IProtocol* mgr = (actor)->Manager();
      68           0 :     (actor)->DestroySubtree(Deletion);
      69           0 :     (actor)->DeallocSubtree();
      70           0 :     (mgr)->RemoveManagee(PURLClassifierLocalMsgStart, actor);
      71           0 :     return sendok__;
      72             : }
      73             : 
      74           0 : auto PURLClassifierLocalParent::RemoveManagee(
      75             :         int32_t aProtocolId,
      76             :         ProtocolBase* aListener) -> void
      77             : {
      78           0 :     FatalError("unreached");
      79           0 :     return;
      80             : }
      81             : 
      82           0 : auto PURLClassifierLocalParent::OnMessageReceived(const Message& msg__) -> PURLClassifierLocalParent::Result
      83             : {
      84           0 :     switch ((msg__).type()) {
      85             :     case PURLClassifierLocal::Reply___delete____ID:
      86             :         {
      87           0 :             return MsgProcessed;
      88             :         }
      89             :     default:
      90             :         {
      91           0 :             return MsgNotKnown;
      92             :         }
      93             :     }
      94             : }
      95             : 
      96           0 : auto PURLClassifierLocalParent::OnMessageReceived(
      97             :         const Message& msg__,
      98             :         Message*& reply__) -> PURLClassifierLocalParent::Result
      99             : {
     100           0 :     return MsgNotKnown;
     101             : }
     102             : 
     103           0 : auto PURLClassifierLocalParent::OnCallReceived(
     104             :         const Message& msg__,
     105             :         Message*& reply__) -> PURLClassifierLocalParent::Result
     106             : {
     107           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     108             :     return MsgNotKnown;
     109             : }
     110             : 
     111           0 : auto PURLClassifierLocalParent::GetProtocolTypeId() -> int32_t
     112             : {
     113           0 :     return PURLClassifierLocalMsgStart;
     114             : }
     115             : 
     116           0 : auto PURLClassifierLocalParent::ProtocolName() const -> const char*
     117             : {
     118           0 :     return "PURLClassifierLocalParent";
     119             : }
     120             : 
     121           0 : auto PURLClassifierLocalParent::DestroySubtree(ActorDestroyReason why) -> void
     122             : {
     123             :     // Unregister from our manager.
     124           0 :     Unregister(Id());
     125             : 
     126             :     // Reject owning pending promises.
     127           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     128             : 
     129             :     // Finally, destroy "us".
     130           0 :     ActorDestroy(why);
     131           0 : }
     132             : 
     133           0 : auto PURLClassifierLocalParent::DeallocSubtree() -> void
     134             : {
     135           0 : }
     136             : 
     137           0 : auto PURLClassifierLocalParent::Write(
     138             :         const PURLClassifierLocalParent* v__,
     139             :         Message* msg__,
     140             :         bool nullable__) -> void
     141             : {
     142             :     int32_t id;
     143           0 :     if ((!(v__))) {
     144           0 :         if ((!(nullable__))) {
     145           0 :             FatalError("NULL actor value passed to non-nullable param");
     146             :         }
     147           0 :         id = 0;
     148             :     }
     149             :     else {
     150           0 :         id = (v__)->Id();
     151           0 :         if ((1) == (id)) {
     152           0 :             FatalError("actor has been |delete|d");
     153             :         }
     154             :     }
     155             : 
     156           0 :     Write(id, msg__);
     157           0 : }
     158             : 
     159           0 : auto PURLClassifierLocalParent::Read(
     160             :         PURLClassifierLocalParent** v__,
     161             :         const Message* msg__,
     162             :         PickleIterator* iter__,
     163             :         bool nullable__) -> bool
     164             : {
     165           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PURLClassifierLocal", PURLClassifierLocalMsgStart);
     166           0 :     if ((actor).isNothing()) {
     167           0 :         return false;
     168             :     }
     169             : 
     170           0 :     (*(v__)) = static_cast<PURLClassifierLocalParent*>((actor).value());
     171           0 :     return true;
     172             : }
     173             : 
     174           0 : auto PURLClassifierLocalParent::Write(
     175             :         const ClassifierInfo& v__,
     176             :         Message* msg__) -> void
     177             : {
     178           0 :     Write((v__).list(), msg__);
     179             :     // Sentinel = 'list'
     180           0 :     (msg__)->WriteSentinel(1914335340);
     181           0 :     Write((v__).provider(), msg__);
     182             :     // Sentinel = 'provider'
     183           0 :     (msg__)->WriteSentinel(3034771127);
     184           0 :     Write((v__).prefix(), msg__);
     185             :     // Sentinel = 'prefix'
     186           0 :     (msg__)->WriteSentinel(4169957394);
     187           0 : }
     188             : 
     189           0 : auto PURLClassifierLocalParent::Read(
     190             :         ClassifierInfo* v__,
     191             :         const Message* msg__,
     192             :         PickleIterator* iter__) -> bool
     193             : {
     194           0 :     if ((!(Read((&((v__)->list())), msg__, iter__)))) {
     195           0 :         FatalError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     196           0 :         return false;
     197             :     }
     198             :     // Sentinel = 'list'
     199           0 :     if ((!((msg__)->ReadSentinel(iter__, 1914335340)))) {
     200           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     201           0 :         return false;
     202             :     }
     203           0 :     if ((!(Read((&((v__)->provider())), msg__, iter__)))) {
     204           0 :         FatalError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     205           0 :         return false;
     206             :     }
     207             :     // Sentinel = 'provider'
     208           0 :     if ((!((msg__)->ReadSentinel(iter__, 3034771127)))) {
     209           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     210           0 :         return false;
     211             :     }
     212           0 :     if ((!(Read((&((v__)->prefix())), msg__, iter__)))) {
     213           0 :         FatalError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     214           0 :         return false;
     215             :     }
     216             :     // Sentinel = 'prefix'
     217           0 :     if ((!((msg__)->ReadSentinel(iter__, 4169957394)))) {
     218           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     219           0 :         return false;
     220             :     }
     221           0 :     return true;
     222             : }
     223             : 
     224           0 : auto PURLClassifierLocalParent::Write(
     225             :         const MaybeInfo& v__,
     226             :         Message* msg__) -> void
     227             : {
     228             :     typedef MaybeInfo type__;
     229           0 :     Write(int((v__).type()), msg__);
     230             :     // Sentinel = 'MaybeInfo'
     231           0 :     (msg__)->WriteSentinel(3293711665);
     232             : 
     233           0 :     switch ((v__).type()) {
     234             :     case type__::TClassifierInfo:
     235             :         {
     236           0 :             Write((v__).get_ClassifierInfo(), msg__);
     237             :             // Sentinel = 'TClassifierInfo'
     238           0 :             (msg__)->WriteSentinel(1454833332);
     239           0 :             return;
     240             :         }
     241             :     case type__::Tvoid_t:
     242             :         {
     243           0 :             Write((v__).get_void_t(), msg__);
     244             :             // Sentinel = 'Tvoid_t'
     245           0 :             (msg__)->WriteSentinel(3041273328);
     246           0 :             return;
     247             :         }
     248             :     default:
     249             :         {
     250           0 :             FatalError("unknown union type");
     251           0 :             return;
     252             :         }
     253             :     }
     254             : }
     255             : 
     256           0 : auto PURLClassifierLocalParent::Read(
     257             :         MaybeInfo* v__,
     258             :         const Message* msg__,
     259             :         PickleIterator* iter__) -> bool
     260             : {
     261             :     typedef MaybeInfo type__;
     262             :     int type;
     263           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     264           0 :         mozilla::ipc::UnionTypeReadError("MaybeInfo");
     265           0 :         return false;
     266             :     }
     267             :     // Sentinel = 'MaybeInfo'
     268           0 :     if ((!((msg__)->ReadSentinel(iter__, 3293711665)))) {
     269           0 :         mozilla::ipc::SentinelReadError("MaybeInfo");
     270           0 :         return false;
     271             :     }
     272             : 
     273           0 :     switch (type) {
     274             :     case type__::TClassifierInfo:
     275             :         {
     276           0 :             ClassifierInfo tmp = ClassifierInfo();
     277           0 :             (*(v__)) = tmp;
     278           0 :             if ((!(Read((&((v__)->get_ClassifierInfo())), msg__, iter__)))) {
     279           0 :                 FatalError("Error deserializing Union type");
     280           0 :                 return false;
     281             :             }
     282             :             // Sentinel = 'TClassifierInfo'
     283           0 :             if ((!((msg__)->ReadSentinel(iter__, 1454833332)))) {
     284           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     285           0 :                 return false;
     286             :             }
     287           0 :             return true;
     288             :         }
     289             :     case type__::Tvoid_t:
     290             :         {
     291             :             void_t tmp = void_t();
     292           0 :             (*(v__)) = tmp;
     293           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     294           0 :                 FatalError("Error deserializing Union type");
     295           0 :                 return false;
     296             :             }
     297             :             // Sentinel = 'Tvoid_t'
     298           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     299           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     300           0 :                 return false;
     301             :             }
     302           0 :             return true;
     303             :         }
     304             :     default:
     305             :         {
     306           0 :             FatalError("unknown union type");
     307           0 :             return false;
     308             :         }
     309             :     }
     310             : }
     311             : 
     312             : 
     313             : 
     314             : } // namespace dom
     315             : } // namespace mozilla

Generated by: LCOV version 1.13