LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PURLClassifierParent.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/PURLClassifierParent.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 PURLClassifierParent::PURLClassifierParent() :
      20             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      21           0 :     mState(PURLClassifier::__Dead)
      22             : {
      23           0 :     MOZ_COUNT_CTOR(PURLClassifierParent);
      24           0 : }
      25             : 
      26           0 : PURLClassifierParent::~PURLClassifierParent()
      27             : {
      28           0 :     MOZ_COUNT_DTOR(PURLClassifierParent);
      29           0 : }
      30             : 
      31           0 : auto PURLClassifierParent::Manager() const -> PContentParent*
      32             : {
      33           0 :     return static_cast<PContentParent*>(IProtocol::Manager());
      34             : }
      35             : 
      36           0 : auto PURLClassifierParent::Send__delete__(
      37             :         PURLClassifierParent* 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__ = PURLClassifier::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("PURLClassifierParent")) {
      60           0 :         mozilla::ipc::LogMessageForProtocol("PURLClassifierParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      61             :     }
      62           0 :     AUTO_PROFILER_LABEL("PURLClassifier::Msg___delete__", OTHER);
      63           0 :     PURLClassifier::Transition(PURLClassifier::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(PURLClassifierMsgStart, actor);
      71           0 :     return sendok__;
      72             : }
      73             : 
      74           0 : auto PURLClassifierParent::RemoveManagee(
      75             :         int32_t aProtocolId,
      76             :         ProtocolBase* aListener) -> void
      77             : {
      78           0 :     FatalError("unreached");
      79           0 :     return;
      80             : }
      81             : 
      82           0 : auto PURLClassifierParent::OnMessageReceived(const Message& msg__) -> PURLClassifierParent::Result
      83             : {
      84           0 :     switch ((msg__).type()) {
      85             :     case PURLClassifier::Reply___delete____ID:
      86             :         {
      87           0 :             return MsgProcessed;
      88             :         }
      89             :     default:
      90             :         {
      91           0 :             return MsgNotKnown;
      92             :         }
      93             :     }
      94             : }
      95             : 
      96           0 : auto PURLClassifierParent::OnMessageReceived(
      97             :         const Message& msg__,
      98             :         Message*& reply__) -> PURLClassifierParent::Result
      99             : {
     100           0 :     return MsgNotKnown;
     101             : }
     102             : 
     103           0 : auto PURLClassifierParent::OnCallReceived(
     104             :         const Message& msg__,
     105             :         Message*& reply__) -> PURLClassifierParent::Result
     106             : {
     107           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     108             :     return MsgNotKnown;
     109             : }
     110             : 
     111           0 : auto PURLClassifierParent::GetProtocolTypeId() -> int32_t
     112             : {
     113           0 :     return PURLClassifierMsgStart;
     114             : }
     115             : 
     116           0 : auto PURLClassifierParent::ProtocolName() const -> const char*
     117             : {
     118           0 :     return "PURLClassifierParent";
     119             : }
     120             : 
     121           0 : auto PURLClassifierParent::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 PURLClassifierParent::DeallocSubtree() -> void
     134             : {
     135           0 : }
     136             : 
     137           0 : auto PURLClassifierParent::Write(
     138             :         const ClassifierInfo& v__,
     139             :         Message* msg__) -> void
     140             : {
     141           0 :     Write((v__).list(), msg__);
     142             :     // Sentinel = 'list'
     143           0 :     (msg__)->WriteSentinel(1914335340);
     144           0 :     Write((v__).provider(), msg__);
     145             :     // Sentinel = 'provider'
     146           0 :     (msg__)->WriteSentinel(3034771127);
     147           0 :     Write((v__).prefix(), msg__);
     148             :     // Sentinel = 'prefix'
     149           0 :     (msg__)->WriteSentinel(4169957394);
     150           0 : }
     151             : 
     152           0 : auto PURLClassifierParent::Read(
     153             :         ClassifierInfo* v__,
     154             :         const Message* msg__,
     155             :         PickleIterator* iter__) -> bool
     156             : {
     157           0 :     if ((!(Read((&((v__)->list())), msg__, iter__)))) {
     158           0 :         FatalError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     159           0 :         return false;
     160             :     }
     161             :     // Sentinel = 'list'
     162           0 :     if ((!((msg__)->ReadSentinel(iter__, 1914335340)))) {
     163           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     164           0 :         return false;
     165             :     }
     166           0 :     if ((!(Read((&((v__)->provider())), msg__, iter__)))) {
     167           0 :         FatalError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     168           0 :         return false;
     169             :     }
     170             :     // Sentinel = 'provider'
     171           0 :     if ((!((msg__)->ReadSentinel(iter__, 3034771127)))) {
     172           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     173           0 :         return false;
     174             :     }
     175           0 :     if ((!(Read((&((v__)->prefix())), msg__, iter__)))) {
     176           0 :         FatalError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     177           0 :         return false;
     178             :     }
     179             :     // Sentinel = 'prefix'
     180           0 :     if ((!((msg__)->ReadSentinel(iter__, 4169957394)))) {
     181           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     182           0 :         return false;
     183             :     }
     184           0 :     return true;
     185             : }
     186             : 
     187           0 : auto PURLClassifierParent::Write(
     188             :         const PURLClassifierParent* v__,
     189             :         Message* msg__,
     190             :         bool nullable__) -> void
     191             : {
     192             :     int32_t id;
     193           0 :     if ((!(v__))) {
     194           0 :         if ((!(nullable__))) {
     195           0 :             FatalError("NULL actor value passed to non-nullable param");
     196             :         }
     197           0 :         id = 0;
     198             :     }
     199             :     else {
     200           0 :         id = (v__)->Id();
     201           0 :         if ((1) == (id)) {
     202           0 :             FatalError("actor has been |delete|d");
     203             :         }
     204             :     }
     205             : 
     206           0 :     Write(id, msg__);
     207           0 : }
     208             : 
     209           0 : auto PURLClassifierParent::Read(
     210             :         PURLClassifierParent** v__,
     211             :         const Message* msg__,
     212             :         PickleIterator* iter__,
     213             :         bool nullable__) -> bool
     214             : {
     215           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PURLClassifier", PURLClassifierMsgStart);
     216           0 :     if ((actor).isNothing()) {
     217           0 :         return false;
     218             :     }
     219             : 
     220           0 :     (*(v__)) = static_cast<PURLClassifierParent*>((actor).value());
     221           0 :     return true;
     222             : }
     223             : 
     224           0 : auto PURLClassifierParent::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 PURLClassifierParent::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