LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PURLClassifierLocalChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 150 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 20 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/PURLClassifierLocalChild.h"
       8             : 
       9             : #include "mozilla/dom/PContentChild.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18           0 : auto PURLClassifierLocalChild::Recv__delete__(
      19             :         const MaybeInfo& info,
      20             :         const nsresult& errorCode) -> mozilla::ipc::IPCResult
      21             : {
      22           0 :     return IPC_OK();
      23             : }
      24             : 
      25           0 : auto PURLClassifierLocalChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      26             : {
      27           0 : }
      28             : 
      29           0 : MOZ_IMPLICIT PURLClassifierLocalChild::PURLClassifierLocalChild() :
      30             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      31           0 :     mState(PURLClassifierLocal::__Dead)
      32             : {
      33           0 :     MOZ_COUNT_CTOR(PURLClassifierLocalChild);
      34           0 : }
      35             : 
      36           0 : PURLClassifierLocalChild::~PURLClassifierLocalChild()
      37             : {
      38           0 :     MOZ_COUNT_DTOR(PURLClassifierLocalChild);
      39           0 : }
      40             : 
      41           0 : auto PURLClassifierLocalChild::Manager() const -> PContentChild*
      42             : {
      43           0 :     return static_cast<PContentChild*>(IProtocol::Manager());
      44             : }
      45             : 
      46           0 : auto PURLClassifierLocalChild::RemoveManagee(
      47             :         int32_t aProtocolId,
      48             :         ProtocolBase* aListener) -> void
      49             : {
      50           0 :     FatalError("unreached");
      51           0 :     return;
      52             : }
      53             : 
      54           0 : auto PURLClassifierLocalChild::OnMessageReceived(const Message& msg__) -> PURLClassifierLocalChild::Result
      55             : {
      56           0 :     switch ((msg__).type()) {
      57             :     case PURLClassifierLocal::Msg___delete____ID:
      58             :         {
      59           0 :             if (mozilla::ipc::LoggingEnabledFor("PURLClassifierLocalChild")) {
      60           0 :                 mozilla::ipc::LogMessageForProtocol("PURLClassifierLocalChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      61             :             }
      62           0 :             AUTO_PROFILER_LABEL("PURLClassifierLocal::Msg___delete__", OTHER);
      63             : 
      64           0 :             PickleIterator iter__(msg__);
      65             :             PURLClassifierLocalChild* actor;
      66           0 :             MaybeInfo info;
      67             :             nsresult errorCode;
      68             : 
      69           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
      70           0 :                 FatalError("Error deserializing 'PURLClassifierLocalChild'");
      71           0 :                 return MsgValueError;
      72             :             }
      73             :             // Sentinel = 'actor'
      74           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
      75           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PURLClassifierLocalChild'");
      76           0 :                 return MsgValueError;
      77             :             }
      78           0 :             if ((!(Read((&(info)), (&(msg__)), (&(iter__)))))) {
      79           0 :                 FatalError("Error deserializing 'MaybeInfo'");
      80           0 :                 return MsgValueError;
      81             :             }
      82             :             // Sentinel = 'info'
      83           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3750868832)))) {
      84           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'MaybeInfo'");
      85           0 :                 return MsgValueError;
      86             :             }
      87           0 :             if ((!(Read((&(errorCode)), (&(msg__)), (&(iter__)))))) {
      88           0 :                 FatalError("Error deserializing 'nsresult'");
      89           0 :                 return MsgValueError;
      90             :             }
      91             :             // Sentinel = 'errorCode'
      92           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 262143504)))) {
      93           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'nsresult'");
      94           0 :                 return MsgValueError;
      95             :             }
      96           0 :             (msg__).EndRead(iter__, (msg__).type());
      97           0 :             PURLClassifierLocal::Transition(PURLClassifierLocal::Msg___delete____ID, (&(mState)));
      98           0 :             if ((!(Recv__delete__(mozilla::Move(info), mozilla::Move(errorCode))))) {
      99           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     100             :                 // Error handled in mozilla::ipc::IPCResult
     101           0 :                 return MsgProcessingError;
     102             :             }
     103             : 
     104             : 
     105           0 :             IProtocol* mgr = (actor)->Manager();
     106           0 :             (actor)->DestroySubtree(Deletion);
     107           0 :             (actor)->DeallocSubtree();
     108           0 :             (mgr)->RemoveManagee(PURLClassifierLocalMsgStart, actor);
     109             : 
     110           0 :             return MsgProcessed;
     111             :         }
     112             :     default:
     113             :         {
     114           0 :             return MsgNotKnown;
     115             :         }
     116             :     }
     117             : }
     118             : 
     119           0 : auto PURLClassifierLocalChild::OnMessageReceived(
     120             :         const Message& msg__,
     121             :         Message*& reply__) -> PURLClassifierLocalChild::Result
     122             : {
     123           0 :     return MsgNotKnown;
     124             : }
     125             : 
     126           0 : auto PURLClassifierLocalChild::OnCallReceived(
     127             :         const Message& msg__,
     128             :         Message*& reply__) -> PURLClassifierLocalChild::Result
     129             : {
     130           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     131             :     return MsgNotKnown;
     132             : }
     133             : 
     134           0 : auto PURLClassifierLocalChild::GetProtocolTypeId() -> int32_t
     135             : {
     136           0 :     return PURLClassifierLocalMsgStart;
     137             : }
     138             : 
     139           0 : auto PURLClassifierLocalChild::ProtocolName() const -> const char*
     140             : {
     141           0 :     return "PURLClassifierLocalChild";
     142             : }
     143             : 
     144           0 : auto PURLClassifierLocalChild::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 PURLClassifierLocalChild::DeallocSubtree() -> void
     157             : {
     158           0 : }
     159             : 
     160           0 : auto PURLClassifierLocalChild::Write(
     161             :         const PURLClassifierLocalChild* 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 PURLClassifierLocalChild::Read(
     183             :         PURLClassifierLocalChild** v__,
     184             :         const Message* msg__,
     185             :         PickleIterator* iter__,
     186             :         bool nullable__) -> bool
     187             : {
     188           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PURLClassifierLocal", PURLClassifierLocalMsgStart);
     189           0 :     if ((actor).isNothing()) {
     190           0 :         return false;
     191             :     }
     192             : 
     193           0 :     (*(v__)) = static_cast<PURLClassifierLocalChild*>((actor).value());
     194           0 :     return true;
     195             : }
     196             : 
     197           0 : auto PURLClassifierLocalChild::Write(
     198             :         const ClassifierInfo& v__,
     199             :         Message* msg__) -> void
     200             : {
     201           0 :     Write((v__).list(), msg__);
     202             :     // Sentinel = 'list'
     203           0 :     (msg__)->WriteSentinel(1914335340);
     204           0 :     Write((v__).provider(), msg__);
     205             :     // Sentinel = 'provider'
     206           0 :     (msg__)->WriteSentinel(3034771127);
     207           0 :     Write((v__).prefix(), msg__);
     208             :     // Sentinel = 'prefix'
     209           0 :     (msg__)->WriteSentinel(4169957394);
     210           0 : }
     211             : 
     212           0 : auto PURLClassifierLocalChild::Read(
     213             :         ClassifierInfo* v__,
     214             :         const Message* msg__,
     215             :         PickleIterator* iter__) -> bool
     216             : {
     217           0 :     if ((!(Read((&((v__)->list())), msg__, iter__)))) {
     218           0 :         FatalError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     219           0 :         return false;
     220             :     }
     221             :     // Sentinel = 'list'
     222           0 :     if ((!((msg__)->ReadSentinel(iter__, 1914335340)))) {
     223           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'list' (nsCString) member of 'ClassifierInfo'");
     224           0 :         return false;
     225             :     }
     226           0 :     if ((!(Read((&((v__)->provider())), msg__, iter__)))) {
     227           0 :         FatalError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     228           0 :         return false;
     229             :     }
     230             :     // Sentinel = 'provider'
     231           0 :     if ((!((msg__)->ReadSentinel(iter__, 3034771127)))) {
     232           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'provider' (nsCString) member of 'ClassifierInfo'");
     233           0 :         return false;
     234             :     }
     235           0 :     if ((!(Read((&((v__)->prefix())), msg__, iter__)))) {
     236           0 :         FatalError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     237           0 :         return false;
     238             :     }
     239             :     // Sentinel = 'prefix'
     240           0 :     if ((!((msg__)->ReadSentinel(iter__, 4169957394)))) {
     241           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'prefix' (nsCString) member of 'ClassifierInfo'");
     242           0 :         return false;
     243             :     }
     244           0 :     return true;
     245             : }
     246             : 
     247           0 : auto PURLClassifierLocalChild::Write(
     248             :         const MaybeInfo& v__,
     249             :         Message* msg__) -> void
     250             : {
     251             :     typedef MaybeInfo type__;
     252           0 :     Write(int((v__).type()), msg__);
     253             :     // Sentinel = 'MaybeInfo'
     254           0 :     (msg__)->WriteSentinel(3293711665);
     255             : 
     256           0 :     switch ((v__).type()) {
     257             :     case type__::TClassifierInfo:
     258             :         {
     259           0 :             Write((v__).get_ClassifierInfo(), msg__);
     260             :             // Sentinel = 'TClassifierInfo'
     261           0 :             (msg__)->WriteSentinel(1454833332);
     262           0 :             return;
     263             :         }
     264             :     case type__::Tvoid_t:
     265             :         {
     266           0 :             Write((v__).get_void_t(), msg__);
     267             :             // Sentinel = 'Tvoid_t'
     268           0 :             (msg__)->WriteSentinel(3041273328);
     269           0 :             return;
     270             :         }
     271             :     default:
     272             :         {
     273           0 :             FatalError("unknown union type");
     274           0 :             return;
     275             :         }
     276             :     }
     277             : }
     278             : 
     279           0 : auto PURLClassifierLocalChild::Read(
     280             :         MaybeInfo* v__,
     281             :         const Message* msg__,
     282             :         PickleIterator* iter__) -> bool
     283             : {
     284             :     typedef MaybeInfo type__;
     285             :     int type;
     286           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     287           0 :         mozilla::ipc::UnionTypeReadError("MaybeInfo");
     288           0 :         return false;
     289             :     }
     290             :     // Sentinel = 'MaybeInfo'
     291           0 :     if ((!((msg__)->ReadSentinel(iter__, 3293711665)))) {
     292           0 :         mozilla::ipc::SentinelReadError("MaybeInfo");
     293           0 :         return false;
     294             :     }
     295             : 
     296           0 :     switch (type) {
     297             :     case type__::TClassifierInfo:
     298             :         {
     299           0 :             ClassifierInfo tmp = ClassifierInfo();
     300           0 :             (*(v__)) = tmp;
     301           0 :             if ((!(Read((&((v__)->get_ClassifierInfo())), msg__, iter__)))) {
     302           0 :                 FatalError("Error deserializing Union type");
     303           0 :                 return false;
     304             :             }
     305             :             // Sentinel = 'TClassifierInfo'
     306           0 :             if ((!((msg__)->ReadSentinel(iter__, 1454833332)))) {
     307           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     308           0 :                 return false;
     309             :             }
     310           0 :             return true;
     311             :         }
     312             :     case type__::Tvoid_t:
     313             :         {
     314             :             void_t tmp = void_t();
     315           0 :             (*(v__)) = tmp;
     316           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     317           0 :                 FatalError("Error deserializing Union type");
     318           0 :                 return false;
     319             :             }
     320             :             // Sentinel = 'Tvoid_t'
     321           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     322           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     323           0 :                 return false;
     324             :             }
     325           0 :             return true;
     326             :         }
     327             :     default:
     328             :         {
     329           0 :             FatalError("unknown union type");
     330           0 :             return false;
     331             :         }
     332             :     }
     333             : }
     334             : 
     335             : 
     336             : 
     337             : } // namespace dom
     338             : } // namespace mozilla

Generated by: LCOV version 1.13