LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PQuotaChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 700 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 68 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/quota/PQuotaChild.h"
       8             : 
       9             : #include "mozilla/ipc/PBackgroundChild.h"
      10             : #include "mozilla/dom/quota/PQuotaRequestChild.h"
      11             : #include "mozilla/dom/quota/PQuotaUsageRequestChild.h"
      12             : 
      13             : #include "nsIFile.h"
      14             : #include "GeckoProfiler.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace dom {
      18             : namespace quota {
      19             : 
      20             : 
      21           0 : auto PQuotaChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      22             : {
      23           0 : }
      24             : 
      25           0 : MOZ_IMPLICIT PQuotaChild::PQuotaChild() :
      26             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      27           0 :     mState(PQuota::__Dead)
      28             : {
      29           0 :     MOZ_COUNT_CTOR(PQuotaChild);
      30           0 : }
      31             : 
      32           0 : PQuotaChild::~PQuotaChild()
      33             : {
      34           0 :     MOZ_COUNT_DTOR(PQuotaChild);
      35           0 : }
      36             : 
      37           0 : auto PQuotaChild::Manager() const -> PBackgroundChild*
      38             : {
      39           0 :     return static_cast<PBackgroundChild*>(IProtocol::Manager());
      40             : }
      41             : 
      42           0 : auto PQuotaChild::ManagedPQuotaRequestChild(nsTArray<PQuotaRequestChild*>& aArr) const -> void
      43             : {
      44           0 :     (mManagedPQuotaRequestChild).ToArray(aArr);
      45           0 : }
      46             : 
      47           0 : auto PQuotaChild::ManagedPQuotaRequestChild() const -> const ManagedContainer<PQuotaRequestChild>&
      48             : {
      49           0 :     return mManagedPQuotaRequestChild;
      50             : }
      51             : 
      52           0 : auto PQuotaChild::ManagedPQuotaUsageRequestChild(nsTArray<PQuotaUsageRequestChild*>& aArr) const -> void
      53             : {
      54           0 :     (mManagedPQuotaUsageRequestChild).ToArray(aArr);
      55           0 : }
      56             : 
      57           0 : auto PQuotaChild::ManagedPQuotaUsageRequestChild() const -> const ManagedContainer<PQuotaUsageRequestChild>&
      58             : {
      59           0 :     return mManagedPQuotaUsageRequestChild;
      60             : }
      61             : 
      62           0 : auto PQuotaChild::Send__delete__(PQuotaChild* actor) -> bool
      63             : {
      64           0 :     if ((!(actor))) {
      65           0 :         return false;
      66             :     }
      67             : 
      68           0 :     IPC::Message* msg__ = PQuota::Msg___delete__((actor)->Id());
      69             : 
      70           0 :     (actor)->Write(actor, msg__, false);
      71             :     // Sentinel = 'actor'
      72           0 :     (msg__)->WriteSentinel(875202478);
      73             : 
      74             : 
      75             : 
      76           0 :     if (mozilla::ipc::LoggingEnabledFor("PQuotaChild")) {
      77           0 :         mozilla::ipc::LogMessageForProtocol("PQuotaChild", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      78             :     }
      79           0 :     AUTO_PROFILER_LABEL("PQuota::Msg___delete__", OTHER);
      80           0 :     PQuota::Transition(PQuota::Msg___delete____ID, (&((actor)->mState)));
      81             : 
      82           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      83             : 
      84           0 :     IProtocol* mgr = (actor)->Manager();
      85           0 :     (actor)->DestroySubtree(Deletion);
      86           0 :     (actor)->DeallocSubtree();
      87           0 :     (mgr)->RemoveManagee(PQuotaMsgStart, actor);
      88           0 :     return sendok__;
      89             : }
      90             : 
      91           0 : auto PQuotaChild::SendPQuotaUsageRequestConstructor(const UsageRequestParams& params) -> PQuotaUsageRequestChild*
      92             : {
      93           0 :     return SendPQuotaUsageRequestConstructor(AllocPQuotaUsageRequestChild(params), params);
      94             : }
      95             : 
      96           0 : auto PQuotaChild::SendPQuotaUsageRequestConstructor(
      97             :         PQuotaUsageRequestChild* actor,
      98             :         const UsageRequestParams& params) -> PQuotaUsageRequestChild*
      99             : {
     100           0 :     if ((!(actor))) {
     101           0 :         NS_WARNING("Error constructing actor PQuotaUsageRequestChild");
     102           0 :         return nullptr;
     103             :     }
     104           0 :     (actor)->SetManager(this);
     105           0 :     Register(actor);
     106           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     107           0 :     (mManagedPQuotaUsageRequestChild).PutEntry(actor);
     108           0 :     (actor)->mState = mozilla::dom::quota::PQuotaUsageRequest::__Start;
     109             : 
     110           0 :     IPC::Message* msg__ = PQuota::Msg_PQuotaUsageRequestConstructor(Id());
     111             : 
     112           0 :     Write(actor, msg__, false);
     113             :     // Sentinel = 'actor'
     114           0 :     (msg__)->WriteSentinel(875202478);
     115           0 :     Write(params, msg__);
     116             :     // Sentinel = 'params'
     117           0 :     (msg__)->WriteSentinel(1677790004);
     118             : 
     119           0 :     (msg__)->set_constructor();
     120             : 
     121             : 
     122           0 :     if (mozilla::ipc::LoggingEnabledFor("PQuotaChild")) {
     123           0 :         mozilla::ipc::LogMessageForProtocol("PQuotaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     124             :     }
     125           0 :     AUTO_PROFILER_LABEL("PQuota::Msg_PQuotaUsageRequestConstructor", OTHER);
     126           0 :     PQuota::Transition(PQuota::Msg_PQuotaUsageRequestConstructor__ID, (&(mState)));
     127             : 
     128           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     129           0 :     if ((!(sendok__))) {
     130           0 :         FatalError("constructor for actor failed");
     131           0 :         return nullptr;
     132             :     }
     133           0 :     return actor;
     134             : }
     135             : 
     136           0 : auto PQuotaChild::SendPQuotaRequestConstructor(const RequestParams& params) -> PQuotaRequestChild*
     137             : {
     138           0 :     return SendPQuotaRequestConstructor(AllocPQuotaRequestChild(params), params);
     139             : }
     140             : 
     141           0 : auto PQuotaChild::SendPQuotaRequestConstructor(
     142             :         PQuotaRequestChild* actor,
     143             :         const RequestParams& params) -> PQuotaRequestChild*
     144             : {
     145           0 :     if ((!(actor))) {
     146           0 :         NS_WARNING("Error constructing actor PQuotaRequestChild");
     147           0 :         return nullptr;
     148             :     }
     149           0 :     (actor)->SetManager(this);
     150           0 :     Register(actor);
     151           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     152           0 :     (mManagedPQuotaRequestChild).PutEntry(actor);
     153           0 :     (actor)->mState = mozilla::dom::quota::PQuotaRequest::__Start;
     154             : 
     155           0 :     IPC::Message* msg__ = PQuota::Msg_PQuotaRequestConstructor(Id());
     156             : 
     157           0 :     Write(actor, msg__, false);
     158             :     // Sentinel = 'actor'
     159           0 :     (msg__)->WriteSentinel(875202478);
     160           0 :     Write(params, msg__);
     161             :     // Sentinel = 'params'
     162           0 :     (msg__)->WriteSentinel(1677790004);
     163             : 
     164           0 :     (msg__)->set_constructor();
     165             : 
     166             : 
     167           0 :     if (mozilla::ipc::LoggingEnabledFor("PQuotaChild")) {
     168           0 :         mozilla::ipc::LogMessageForProtocol("PQuotaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     169             :     }
     170           0 :     AUTO_PROFILER_LABEL("PQuota::Msg_PQuotaRequestConstructor", OTHER);
     171           0 :     PQuota::Transition(PQuota::Msg_PQuotaRequestConstructor__ID, (&(mState)));
     172             : 
     173           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     174           0 :     if ((!(sendok__))) {
     175           0 :         FatalError("constructor for actor failed");
     176           0 :         return nullptr;
     177             :     }
     178           0 :     return actor;
     179             : }
     180             : 
     181           0 : auto PQuotaChild::SendStartIdleMaintenance() -> bool
     182             : {
     183           0 :     IPC::Message* msg__ = PQuota::Msg_StartIdleMaintenance(Id());
     184             : 
     185             : 
     186             : 
     187             : 
     188             : 
     189           0 :     if (mozilla::ipc::LoggingEnabledFor("PQuotaChild")) {
     190           0 :         mozilla::ipc::LogMessageForProtocol("PQuotaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     191             :     }
     192           0 :     AUTO_PROFILER_LABEL("PQuota::Msg_StartIdleMaintenance", OTHER);
     193           0 :     PQuota::Transition(PQuota::Msg_StartIdleMaintenance__ID, (&(mState)));
     194             : 
     195           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     196           0 :     return sendok__;
     197             : }
     198             : 
     199           0 : auto PQuotaChild::SendStopIdleMaintenance() -> bool
     200             : {
     201           0 :     IPC::Message* msg__ = PQuota::Msg_StopIdleMaintenance(Id());
     202             : 
     203             : 
     204             : 
     205             : 
     206             : 
     207           0 :     if (mozilla::ipc::LoggingEnabledFor("PQuotaChild")) {
     208           0 :         mozilla::ipc::LogMessageForProtocol("PQuotaChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     209             :     }
     210           0 :     AUTO_PROFILER_LABEL("PQuota::Msg_StopIdleMaintenance", OTHER);
     211           0 :     PQuota::Transition(PQuota::Msg_StopIdleMaintenance__ID, (&(mState)));
     212             : 
     213           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     214           0 :     return sendok__;
     215             : }
     216             : 
     217           0 : auto PQuotaChild::RemoveManagee(
     218             :         int32_t aProtocolId,
     219             :         ProtocolBase* aListener) -> void
     220             : {
     221           0 :     switch (aProtocolId) {
     222             :     case PQuotaRequestMsgStart:
     223             :         {
     224           0 :             PQuotaRequestChild* actor = static_cast<PQuotaRequestChild*>(aListener);
     225           0 :             auto& container = mManagedPQuotaRequestChild;
     226           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     227             : 
     228           0 :             (container).RemoveEntry(actor);
     229           0 :             DeallocPQuotaRequestChild(actor);
     230           0 :             return;
     231             :         }
     232             :     case PQuotaUsageRequestMsgStart:
     233             :         {
     234           0 :             PQuotaUsageRequestChild* actor = static_cast<PQuotaUsageRequestChild*>(aListener);
     235           0 :             auto& container = mManagedPQuotaUsageRequestChild;
     236           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     237             : 
     238           0 :             (container).RemoveEntry(actor);
     239           0 :             DeallocPQuotaUsageRequestChild(actor);
     240           0 :             return;
     241             :         }
     242             :     default:
     243             :         {
     244           0 :             FatalError("unreached");
     245           0 :             return;
     246             :         }
     247             :     }
     248             : }
     249             : 
     250           0 : auto PQuotaChild::OnMessageReceived(const Message& msg__) -> PQuotaChild::Result
     251             : {
     252           0 :     switch ((msg__).type()) {
     253             :     case PQuota::Reply___delete____ID:
     254             :         {
     255           0 :             return MsgProcessed;
     256             :         }
     257             :     case PQuota::Reply_PQuotaUsageRequestConstructor__ID:
     258             :         {
     259           0 :             return MsgProcessed;
     260             :         }
     261             :     case PQuota::Reply_PQuotaRequestConstructor__ID:
     262             :         {
     263           0 :             return MsgProcessed;
     264             :         }
     265             :     default:
     266             :         {
     267           0 :             return MsgNotKnown;
     268             :         }
     269             :     }
     270             : }
     271             : 
     272           0 : auto PQuotaChild::OnMessageReceived(
     273             :         const Message& msg__,
     274             :         Message*& reply__) -> PQuotaChild::Result
     275             : {
     276           0 :     return MsgNotKnown;
     277             : }
     278             : 
     279           0 : auto PQuotaChild::OnCallReceived(
     280             :         const Message& msg__,
     281             :         Message*& reply__) -> PQuotaChild::Result
     282             : {
     283           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     284             :     return MsgNotKnown;
     285             : }
     286             : 
     287           0 : auto PQuotaChild::GetProtocolTypeId() -> int32_t
     288             : {
     289           0 :     return PQuotaMsgStart;
     290             : }
     291             : 
     292           0 : auto PQuotaChild::ProtocolName() const -> const char*
     293             : {
     294           0 :     return "PQuotaChild";
     295             : }
     296             : 
     297           0 : auto PQuotaChild::DestroySubtree(ActorDestroyReason why) -> void
     298             : {
     299             :     // Unregister from our manager.
     300           0 :     Unregister(Id());
     301             : 
     302           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     303             : 
     304             :     {
     305             :         // Recursively shutting down PQuotaRequest kids
     306           0 :         nsTArray<PQuotaRequestChild*> kids;
     307             :         // Accumulate kids into a stable structure to iterate over
     308           0 :         ManagedPQuotaRequestChild(kids);
     309           0 :         for (auto& kid : kids) {
     310             :             // Guarding against a child removing a sibling from the list during the iteration.
     311           0 :             if ((mManagedPQuotaRequestChild).Contains(kid)) {
     312           0 :                 (kid)->DestroySubtree(subtreewhy);
     313             :             }
     314             :         }
     315             :     }
     316             :     {
     317             :         // Recursively shutting down PQuotaUsageRequest kids
     318           0 :         nsTArray<PQuotaUsageRequestChild*> kids;
     319             :         // Accumulate kids into a stable structure to iterate over
     320           0 :         ManagedPQuotaUsageRequestChild(kids);
     321           0 :         for (auto& kid : kids) {
     322             :             // Guarding against a child removing a sibling from the list during the iteration.
     323           0 :             if ((mManagedPQuotaUsageRequestChild).Contains(kid)) {
     324           0 :                 (kid)->DestroySubtree(subtreewhy);
     325             :             }
     326             :         }
     327             :     }
     328             : 
     329             :     // Reject owning pending promises.
     330           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     331             : 
     332             :     // Finally, destroy "us".
     333           0 :     ActorDestroy(why);
     334           0 : }
     335             : 
     336           0 : auto PQuotaChild::DeallocSubtree() -> void
     337             : {
     338             :     {
     339             :         // Recursively deleting PQuotaRequest kids
     340           0 :         for (auto iter = (mManagedPQuotaRequestChild).Iter(); (!((iter).Done())); (iter).Next()) {
     341           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     342             :         }
     343             : 
     344           0 :         for (auto iter = (mManagedPQuotaRequestChild).Iter(); (!((iter).Done())); (iter).Next()) {
     345           0 :             DeallocPQuotaRequestChild(((iter).Get())->GetKey());
     346             :         }
     347           0 :         (mManagedPQuotaRequestChild).Clear();
     348             :     }
     349             :     {
     350             :         // Recursively deleting PQuotaUsageRequest kids
     351           0 :         for (auto iter = (mManagedPQuotaUsageRequestChild).Iter(); (!((iter).Done())); (iter).Next()) {
     352           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     353             :         }
     354             : 
     355           0 :         for (auto iter = (mManagedPQuotaUsageRequestChild).Iter(); (!((iter).Done())); (iter).Next()) {
     356           0 :             DeallocPQuotaUsageRequestChild(((iter).Get())->GetKey());
     357             :         }
     358           0 :         (mManagedPQuotaUsageRequestChild).Clear();
     359             :     }
     360           0 : }
     361             : 
     362           0 : auto PQuotaChild::Write(
     363             :         const SystemPrincipalInfo& v__,
     364             :         Message* msg__) -> void
     365             : {
     366           0 : }
     367             : 
     368           0 : auto PQuotaChild::Read(
     369             :         SystemPrincipalInfo* v__,
     370             :         const Message* msg__,
     371             :         PickleIterator* iter__) -> bool
     372             : {
     373           0 :     return true;
     374             : }
     375             : 
     376           0 : auto PQuotaChild::Write(
     377             :         const nsTArray<PrincipalInfo>& v__,
     378             :         Message* msg__) -> void
     379             : {
     380           0 :     uint32_t length = (v__).Length();
     381           0 :     Write(length, msg__);
     382             :     // Sentinel = ('length', 'PrincipalInfo[]')
     383           0 :     (msg__)->WriteSentinel(1032188126);
     384             : 
     385           0 :     for (auto& elem : v__) {
     386           0 :         Write(elem, msg__);
     387             :         // Sentinel = 'PrincipalInfo[]'
     388           0 :         (msg__)->WriteSentinel(413380193);
     389             :     }
     390           0 : }
     391             : 
     392           0 : auto PQuotaChild::Read(
     393             :         nsTArray<PrincipalInfo>* v__,
     394             :         const Message* msg__,
     395             :         PickleIterator* iter__) -> bool
     396             : {
     397           0 :     nsTArray<PrincipalInfo> fa;
     398             :     uint32_t length;
     399           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     400           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     401           0 :         return false;
     402             :     }
     403             :     // Sentinel = ('length', 'PrincipalInfo[]')
     404           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     405           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     406           0 :         return false;
     407             :     }
     408             : 
     409           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     410           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     411           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     412           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     413           0 :             return false;
     414             :         }
     415             :         // Sentinel = 'PrincipalInfo[]'
     416           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     417           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     418           0 :             return false;
     419             :         }
     420             :     }
     421           0 :     (v__)->SwapElements(fa);
     422           0 :     return true;
     423             : }
     424             : 
     425           0 : auto PQuotaChild::Write(
     426             :         const ContentPrincipalInfoOriginNoSuffix& v__,
     427             :         Message* msg__) -> void
     428             : {
     429             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     430           0 :     Write(int((v__).type()), msg__);
     431             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     432           0 :     (msg__)->WriteSentinel(2442066713);
     433             : 
     434           0 :     switch ((v__).type()) {
     435             :     case type__::TnsCString:
     436             :         {
     437           0 :             Write((v__).get_nsCString(), msg__);
     438             :             // Sentinel = 'TnsCString'
     439           0 :             (msg__)->WriteSentinel(2427411293);
     440           0 :             return;
     441             :         }
     442             :     case type__::Tvoid_t:
     443             :         {
     444           0 :             Write((v__).get_void_t(), msg__);
     445             :             // Sentinel = 'Tvoid_t'
     446           0 :             (msg__)->WriteSentinel(3041273328);
     447           0 :             return;
     448             :         }
     449             :     default:
     450             :         {
     451           0 :             FatalError("unknown union type");
     452           0 :             return;
     453             :         }
     454             :     }
     455             : }
     456             : 
     457           0 : auto PQuotaChild::Read(
     458             :         ContentPrincipalInfoOriginNoSuffix* v__,
     459             :         const Message* msg__,
     460             :         PickleIterator* iter__) -> bool
     461             : {
     462             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     463             :     int type;
     464           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     465           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
     466           0 :         return false;
     467             :     }
     468             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     469           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
     470           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
     471           0 :         return false;
     472             :     }
     473             : 
     474           0 :     switch (type) {
     475             :     case type__::TnsCString:
     476             :         {
     477           0 :             nsCString tmp = nsCString();
     478           0 :             (*(v__)) = tmp;
     479           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
     480           0 :                 FatalError("Error deserializing Union type");
     481           0 :                 return false;
     482             :             }
     483             :             // Sentinel = 'TnsCString'
     484           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
     485           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     486           0 :                 return false;
     487             :             }
     488           0 :             return true;
     489             :         }
     490             :     case type__::Tvoid_t:
     491             :         {
     492             :             void_t tmp = void_t();
     493           0 :             (*(v__)) = tmp;
     494           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     495           0 :                 FatalError("Error deserializing Union type");
     496           0 :                 return false;
     497             :             }
     498             :             // Sentinel = 'Tvoid_t'
     499           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     500           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     501           0 :                 return false;
     502             :             }
     503           0 :             return true;
     504             :         }
     505             :     default:
     506             :         {
     507           0 :             FatalError("unknown union type");
     508           0 :             return false;
     509             :         }
     510             :     }
     511             : }
     512             : 
     513           0 : auto PQuotaChild::Write(
     514             :         const PersistParams& v__,
     515             :         Message* msg__) -> void
     516             : {
     517           0 :     Write((v__).principalInfo(), msg__);
     518             :     // Sentinel = 'principalInfo'
     519           0 :     (msg__)->WriteSentinel(3386633731);
     520           0 : }
     521             : 
     522           0 : auto PQuotaChild::Read(
     523             :         PersistParams* v__,
     524             :         const Message* msg__,
     525             :         PickleIterator* iter__) -> bool
     526             : {
     527           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
     528           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistParams'");
     529           0 :         return false;
     530             :     }
     531             :     // Sentinel = 'principalInfo'
     532           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
     533           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistParams'");
     534           0 :         return false;
     535             :     }
     536           0 :     return true;
     537             : }
     538             : 
     539           0 : auto PQuotaChild::Write(
     540             :         const ClearOriginParams& v__,
     541             :         Message* msg__) -> void
     542             : {
     543           0 :     Write((v__).principalInfo(), msg__);
     544             :     // Sentinel = 'principalInfo'
     545           0 :     (msg__)->WriteSentinel(3386633731);
     546           0 :     Write((v__).persistenceType(), msg__);
     547             :     // Sentinel = 'persistenceType'
     548           0 :     (msg__)->WriteSentinel(3316493122);
     549           0 :     Write((v__).persistenceTypeIsExplicit(), msg__);
     550             :     // Sentinel = 'persistenceTypeIsExplicit'
     551           0 :     (msg__)->WriteSentinel(709480568);
     552           0 :     Write((v__).clearAll(), msg__);
     553             :     // Sentinel = 'clearAll'
     554           0 :     (msg__)->WriteSentinel(942773884);
     555           0 : }
     556             : 
     557           0 : auto PQuotaChild::Read(
     558             :         ClearOriginParams* v__,
     559             :         const Message* msg__,
     560             :         PickleIterator* iter__) -> bool
     561             : {
     562           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
     563           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'ClearOriginParams'");
     564           0 :         return false;
     565             :     }
     566             :     // Sentinel = 'principalInfo'
     567           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
     568           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'ClearOriginParams'");
     569           0 :         return false;
     570             :     }
     571           0 :     if ((!(Read((&((v__)->persistenceType())), msg__, iter__)))) {
     572           0 :         FatalError("Error deserializing 'persistenceType' (PersistenceType) member of 'ClearOriginParams'");
     573           0 :         return false;
     574             :     }
     575             :     // Sentinel = 'persistenceType'
     576           0 :     if ((!((msg__)->ReadSentinel(iter__, 3316493122)))) {
     577           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'persistenceType' (PersistenceType) member of 'ClearOriginParams'");
     578           0 :         return false;
     579             :     }
     580           0 :     if ((!(Read((&((v__)->persistenceTypeIsExplicit())), msg__, iter__)))) {
     581           0 :         FatalError("Error deserializing 'persistenceTypeIsExplicit' (bool) member of 'ClearOriginParams'");
     582           0 :         return false;
     583             :     }
     584             :     // Sentinel = 'persistenceTypeIsExplicit'
     585           0 :     if ((!((msg__)->ReadSentinel(iter__, 709480568)))) {
     586           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'persistenceTypeIsExplicit' (bool) member of 'ClearOriginParams'");
     587           0 :         return false;
     588             :     }
     589           0 :     if ((!(Read((&((v__)->clearAll())), msg__, iter__)))) {
     590           0 :         FatalError("Error deserializing 'clearAll' (bool) member of 'ClearOriginParams'");
     591           0 :         return false;
     592             :     }
     593             :     // Sentinel = 'clearAll'
     594           0 :     if ((!((msg__)->ReadSentinel(iter__, 942773884)))) {
     595           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'clearAll' (bool) member of 'ClearOriginParams'");
     596           0 :         return false;
     597             :     }
     598           0 :     return true;
     599             : }
     600             : 
     601           0 : auto PQuotaChild::Write(
     602             :         const PQuotaChild* v__,
     603             :         Message* msg__,
     604             :         bool nullable__) -> void
     605             : {
     606             :     int32_t id;
     607           0 :     if ((!(v__))) {
     608           0 :         if ((!(nullable__))) {
     609           0 :             FatalError("NULL actor value passed to non-nullable param");
     610             :         }
     611           0 :         id = 0;
     612             :     }
     613             :     else {
     614           0 :         id = (v__)->Id();
     615           0 :         if ((1) == (id)) {
     616           0 :             FatalError("actor has been |delete|d");
     617             :         }
     618             :     }
     619             : 
     620           0 :     Write(id, msg__);
     621           0 : }
     622             : 
     623           0 : auto PQuotaChild::Read(
     624             :         PQuotaChild** v__,
     625             :         const Message* msg__,
     626             :         PickleIterator* iter__,
     627             :         bool nullable__) -> bool
     628             : {
     629           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PQuota", PQuotaMsgStart);
     630           0 :     if ((actor).isNothing()) {
     631           0 :         return false;
     632             :     }
     633             : 
     634           0 :     (*(v__)) = static_cast<PQuotaChild*>((actor).value());
     635           0 :     return true;
     636             : }
     637             : 
     638           0 : auto PQuotaChild::Write(
     639             :         const InitParams& v__,
     640             :         Message* msg__) -> void
     641             : {
     642           0 : }
     643             : 
     644           0 : auto PQuotaChild::Read(
     645             :         InitParams* v__,
     646             :         const Message* msg__,
     647             :         PickleIterator* iter__) -> bool
     648             : {
     649           0 :     return true;
     650             : }
     651             : 
     652           0 : auto PQuotaChild::Write(
     653             :         const ExpandedPrincipalInfo& v__,
     654             :         Message* msg__) -> void
     655             : {
     656           0 :     Write((v__).attrs(), msg__);
     657             :     // Sentinel = 'attrs'
     658           0 :     (msg__)->WriteSentinel(3014987797);
     659           0 :     Write((v__).whitelist(), msg__);
     660             :     // Sentinel = 'whitelist'
     661           0 :     (msg__)->WriteSentinel(3731637258);
     662           0 : }
     663             : 
     664           0 : auto PQuotaChild::Read(
     665             :         ExpandedPrincipalInfo* v__,
     666             :         const Message* msg__,
     667             :         PickleIterator* iter__) -> bool
     668             : {
     669           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     670           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     671           0 :         return false;
     672             :     }
     673             :     // Sentinel = 'attrs'
     674           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     675           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     676           0 :         return false;
     677             :     }
     678           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
     679           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     680           0 :         return false;
     681             :     }
     682             :     // Sentinel = 'whitelist'
     683           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
     684           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     685           0 :         return false;
     686             :     }
     687           0 :     return true;
     688             : }
     689             : 
     690           0 : auto PQuotaChild::Write(
     691             :         const AllUsageParams& v__,
     692             :         Message* msg__) -> void
     693             : {
     694           0 :     Write((v__).getAll(), msg__);
     695             :     // Sentinel = 'getAll'
     696           0 :     (msg__)->WriteSentinel(2658654475);
     697           0 : }
     698             : 
     699           0 : auto PQuotaChild::Read(
     700             :         AllUsageParams* v__,
     701             :         const Message* msg__,
     702             :         PickleIterator* iter__) -> bool
     703             : {
     704           0 :     if ((!(Read((&((v__)->getAll())), msg__, iter__)))) {
     705           0 :         FatalError("Error deserializing 'getAll' (bool) member of 'AllUsageParams'");
     706           0 :         return false;
     707             :     }
     708             :     // Sentinel = 'getAll'
     709           0 :     if ((!((msg__)->ReadSentinel(iter__, 2658654475)))) {
     710           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'getAll' (bool) member of 'AllUsageParams'");
     711           0 :         return false;
     712             :     }
     713           0 :     return true;
     714             : }
     715             : 
     716           0 : auto PQuotaChild::Write(
     717             :         const PQuotaUsageRequestChild* v__,
     718             :         Message* msg__,
     719             :         bool nullable__) -> void
     720             : {
     721             :     int32_t id;
     722           0 :     if ((!(v__))) {
     723           0 :         if ((!(nullable__))) {
     724           0 :             FatalError("NULL actor value passed to non-nullable param");
     725             :         }
     726           0 :         id = 0;
     727             :     }
     728             :     else {
     729           0 :         id = (v__)->Id();
     730           0 :         if ((1) == (id)) {
     731           0 :             FatalError("actor has been |delete|d");
     732             :         }
     733             :     }
     734             : 
     735           0 :     Write(id, msg__);
     736           0 : }
     737             : 
     738           0 : auto PQuotaChild::Read(
     739             :         PQuotaUsageRequestChild** v__,
     740             :         const Message* msg__,
     741             :         PickleIterator* iter__,
     742             :         bool nullable__) -> bool
     743             : {
     744           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PQuotaUsageRequest", PQuotaUsageRequestMsgStart);
     745           0 :     if ((actor).isNothing()) {
     746           0 :         return false;
     747             :     }
     748             : 
     749           0 :     (*(v__)) = static_cast<PQuotaUsageRequestChild*>((actor).value());
     750           0 :     return true;
     751             : }
     752             : 
     753           0 : auto PQuotaChild::Write(
     754             :         const ClearDataParams& v__,
     755             :         Message* msg__) -> void
     756             : {
     757           0 :     Write((v__).pattern(), msg__);
     758             :     // Sentinel = 'pattern'
     759           0 :     (msg__)->WriteSentinel(2105892009);
     760           0 : }
     761             : 
     762           0 : auto PQuotaChild::Read(
     763             :         ClearDataParams* v__,
     764             :         const Message* msg__,
     765             :         PickleIterator* iter__) -> bool
     766             : {
     767           0 :     if ((!(Read((&((v__)->pattern())), msg__, iter__)))) {
     768           0 :         FatalError("Error deserializing 'pattern' (nsString) member of 'ClearDataParams'");
     769           0 :         return false;
     770             :     }
     771             :     // Sentinel = 'pattern'
     772           0 :     if ((!((msg__)->ReadSentinel(iter__, 2105892009)))) {
     773           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'pattern' (nsString) member of 'ClearDataParams'");
     774           0 :         return false;
     775             :     }
     776           0 :     return true;
     777             : }
     778             : 
     779           0 : auto PQuotaChild::Write(
     780             :         const PrincipalInfo& v__,
     781             :         Message* msg__) -> void
     782             : {
     783             :     typedef PrincipalInfo type__;
     784           0 :     Write(int((v__).type()), msg__);
     785             :     // Sentinel = 'PrincipalInfo'
     786           0 :     (msg__)->WriteSentinel(4194518819);
     787             : 
     788           0 :     switch ((v__).type()) {
     789             :     case type__::TContentPrincipalInfo:
     790             :         {
     791           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
     792             :             // Sentinel = 'TContentPrincipalInfo'
     793           0 :             (msg__)->WriteSentinel(3677342258);
     794           0 :             return;
     795             :         }
     796             :     case type__::TSystemPrincipalInfo:
     797             :         {
     798           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
     799             :             // Sentinel = 'TSystemPrincipalInfo'
     800           0 :             (msg__)->WriteSentinel(3590603679);
     801           0 :             return;
     802             :         }
     803             :     case type__::TNullPrincipalInfo:
     804             :         {
     805           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
     806             :             // Sentinel = 'TNullPrincipalInfo'
     807           0 :             (msg__)->WriteSentinel(3477774965);
     808           0 :             return;
     809             :         }
     810             :     case type__::TExpandedPrincipalInfo:
     811             :         {
     812           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
     813             :             // Sentinel = 'TExpandedPrincipalInfo'
     814           0 :             (msg__)->WriteSentinel(589324917);
     815           0 :             return;
     816             :         }
     817             :     default:
     818             :         {
     819           0 :             FatalError("unknown union type");
     820           0 :             return;
     821             :         }
     822             :     }
     823             : }
     824             : 
     825           0 : auto PQuotaChild::Read(
     826             :         PrincipalInfo* v__,
     827             :         const Message* msg__,
     828             :         PickleIterator* iter__) -> bool
     829             : {
     830             :     typedef PrincipalInfo type__;
     831             :     int type;
     832           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     833           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
     834           0 :         return false;
     835             :     }
     836             :     // Sentinel = 'PrincipalInfo'
     837           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
     838           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
     839           0 :         return false;
     840             :     }
     841             : 
     842           0 :     switch (type) {
     843             :     case type__::TContentPrincipalInfo:
     844             :         {
     845           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
     846           0 :             (*(v__)) = tmp;
     847           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
     848           0 :                 FatalError("Error deserializing Union type");
     849           0 :                 return false;
     850             :             }
     851             :             // Sentinel = 'TContentPrincipalInfo'
     852           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
     853           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     854           0 :                 return false;
     855             :             }
     856           0 :             return true;
     857             :         }
     858             :     case type__::TSystemPrincipalInfo:
     859             :         {
     860           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
     861           0 :             (*(v__)) = tmp;
     862           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
     863           0 :                 FatalError("Error deserializing Union type");
     864           0 :                 return false;
     865             :             }
     866             :             // Sentinel = 'TSystemPrincipalInfo'
     867           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
     868           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     869           0 :                 return false;
     870             :             }
     871           0 :             return true;
     872             :         }
     873             :     case type__::TNullPrincipalInfo:
     874             :         {
     875           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
     876           0 :             (*(v__)) = tmp;
     877           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
     878           0 :                 FatalError("Error deserializing Union type");
     879           0 :                 return false;
     880             :             }
     881             :             // Sentinel = 'TNullPrincipalInfo'
     882           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
     883           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     884           0 :                 return false;
     885             :             }
     886           0 :             return true;
     887             :         }
     888             :     case type__::TExpandedPrincipalInfo:
     889             :         {
     890           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
     891           0 :             (*(v__)) = tmp;
     892           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
     893           0 :                 FatalError("Error deserializing Union type");
     894           0 :                 return false;
     895             :             }
     896             :             // Sentinel = 'TExpandedPrincipalInfo'
     897           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
     898           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     899           0 :                 return false;
     900             :             }
     901           0 :             return true;
     902             :         }
     903             :     default:
     904             :         {
     905           0 :             FatalError("unknown union type");
     906           0 :             return false;
     907             :         }
     908             :     }
     909             : }
     910             : 
     911           0 : auto PQuotaChild::Write(
     912             :         const ContentPrincipalInfo& v__,
     913             :         Message* msg__) -> void
     914             : {
     915           0 :     Write((v__).attrs(), msg__);
     916             :     // Sentinel = 'attrs'
     917           0 :     (msg__)->WriteSentinel(3014987797);
     918           0 :     Write((v__).originNoSuffix(), msg__);
     919             :     // Sentinel = 'originNoSuffix'
     920           0 :     (msg__)->WriteSentinel(2833071422);
     921           0 :     Write((v__).spec(), msg__);
     922             :     // Sentinel = 'spec'
     923           0 :     (msg__)->WriteSentinel(1630740541);
     924           0 : }
     925             : 
     926           0 : auto PQuotaChild::Read(
     927             :         ContentPrincipalInfo* v__,
     928             :         const Message* msg__,
     929             :         PickleIterator* iter__) -> bool
     930             : {
     931           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     932           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
     933           0 :         return false;
     934             :     }
     935             :     // Sentinel = 'attrs'
     936           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     937           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
     938           0 :         return false;
     939             :     }
     940           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
     941           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
     942           0 :         return false;
     943             :     }
     944             :     // Sentinel = 'originNoSuffix'
     945           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
     946           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
     947           0 :         return false;
     948             :     }
     949           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
     950           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
     951           0 :         return false;
     952             :     }
     953             :     // Sentinel = 'spec'
     954           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
     955           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
     956           0 :         return false;
     957             :     }
     958           0 :     return true;
     959             : }
     960             : 
     961           0 : auto PQuotaChild::Write(
     962             :         const PersistedParams& v__,
     963             :         Message* msg__) -> void
     964             : {
     965           0 :     Write((v__).principalInfo(), msg__);
     966             :     // Sentinel = 'principalInfo'
     967           0 :     (msg__)->WriteSentinel(3386633731);
     968           0 : }
     969             : 
     970           0 : auto PQuotaChild::Read(
     971             :         PersistedParams* v__,
     972             :         const Message* msg__,
     973             :         PickleIterator* iter__) -> bool
     974             : {
     975           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
     976           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistedParams'");
     977           0 :         return false;
     978             :     }
     979             :     // Sentinel = 'principalInfo'
     980           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
     981           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'PersistedParams'");
     982           0 :         return false;
     983             :     }
     984           0 :     return true;
     985             : }
     986             : 
     987           0 : auto PQuotaChild::Write(
     988             :         const ClearAllParams& v__,
     989             :         Message* msg__) -> void
     990             : {
     991           0 : }
     992             : 
     993           0 : auto PQuotaChild::Read(
     994             :         ClearAllParams* v__,
     995             :         const Message* msg__,
     996             :         PickleIterator* iter__) -> bool
     997             : {
     998           0 :     return true;
     999             : }
    1000             : 
    1001           0 : auto PQuotaChild::Write(
    1002             :         const InitOriginParams& v__,
    1003             :         Message* msg__) -> void
    1004             : {
    1005           0 :     Write((v__).principalInfo(), msg__);
    1006             :     // Sentinel = 'principalInfo'
    1007           0 :     (msg__)->WriteSentinel(3386633731);
    1008           0 :     Write((v__).persistenceType(), msg__);
    1009             :     // Sentinel = 'persistenceType'
    1010           0 :     (msg__)->WriteSentinel(3316493122);
    1011           0 : }
    1012             : 
    1013           0 : auto PQuotaChild::Read(
    1014             :         InitOriginParams* v__,
    1015             :         const Message* msg__,
    1016             :         PickleIterator* iter__) -> bool
    1017             : {
    1018           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
    1019           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'InitOriginParams'");
    1020           0 :         return false;
    1021             :     }
    1022             :     // Sentinel = 'principalInfo'
    1023           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
    1024           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'InitOriginParams'");
    1025           0 :         return false;
    1026             :     }
    1027           0 :     if ((!(Read((&((v__)->persistenceType())), msg__, iter__)))) {
    1028           0 :         FatalError("Error deserializing 'persistenceType' (PersistenceType) member of 'InitOriginParams'");
    1029           0 :         return false;
    1030             :     }
    1031             :     // Sentinel = 'persistenceType'
    1032           0 :     if ((!((msg__)->ReadSentinel(iter__, 3316493122)))) {
    1033           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'persistenceType' (PersistenceType) member of 'InitOriginParams'");
    1034           0 :         return false;
    1035             :     }
    1036           0 :     return true;
    1037             : }
    1038             : 
    1039           0 : auto PQuotaChild::Write(
    1040             :         const RequestParams& v__,
    1041             :         Message* msg__) -> void
    1042             : {
    1043             :     typedef RequestParams type__;
    1044           0 :     Write(int((v__).type()), msg__);
    1045             :     // Sentinel = 'RequestParams'
    1046           0 :     (msg__)->WriteSentinel(2934802656);
    1047             : 
    1048           0 :     switch ((v__).type()) {
    1049             :     case type__::TInitParams:
    1050             :         {
    1051           0 :             Write((v__).get_InitParams(), msg__);
    1052             :             // Sentinel = 'TInitParams'
    1053           0 :             (msg__)->WriteSentinel(1465472583);
    1054           0 :             return;
    1055             :         }
    1056             :     case type__::TInitOriginParams:
    1057             :         {
    1058           0 :             Write((v__).get_InitOriginParams(), msg__);
    1059             :             // Sentinel = 'TInitOriginParams'
    1060           0 :             (msg__)->WriteSentinel(2172042059);
    1061           0 :             return;
    1062             :         }
    1063             :     case type__::TClearOriginParams:
    1064             :         {
    1065           0 :             Write((v__).get_ClearOriginParams(), msg__);
    1066             :             // Sentinel = 'TClearOriginParams'
    1067           0 :             (msg__)->WriteSentinel(2428997745);
    1068           0 :             return;
    1069             :         }
    1070             :     case type__::TClearDataParams:
    1071             :         {
    1072           0 :             Write((v__).get_ClearDataParams(), msg__);
    1073             :             // Sentinel = 'TClearDataParams'
    1074           0 :             (msg__)->WriteSentinel(2645415261);
    1075           0 :             return;
    1076             :         }
    1077             :     case type__::TClearAllParams:
    1078             :         {
    1079           0 :             Write((v__).get_ClearAllParams(), msg__);
    1080             :             // Sentinel = 'TClearAllParams'
    1081           0 :             (msg__)->WriteSentinel(4218667221);
    1082           0 :             return;
    1083             :         }
    1084             :     case type__::TResetAllParams:
    1085             :         {
    1086           0 :             Write((v__).get_ResetAllParams(), msg__);
    1087             :             // Sentinel = 'TResetAllParams'
    1088           0 :             (msg__)->WriteSentinel(1597774515);
    1089           0 :             return;
    1090             :         }
    1091             :     case type__::TPersistedParams:
    1092             :         {
    1093           0 :             Write((v__).get_PersistedParams(), msg__);
    1094             :             // Sentinel = 'TPersistedParams'
    1095           0 :             (msg__)->WriteSentinel(2151579009);
    1096           0 :             return;
    1097             :         }
    1098             :     case type__::TPersistParams:
    1099             :         {
    1100           0 :             Write((v__).get_PersistParams(), msg__);
    1101             :             // Sentinel = 'TPersistParams'
    1102           0 :             (msg__)->WriteSentinel(610120232);
    1103           0 :             return;
    1104             :         }
    1105             :     default:
    1106             :         {
    1107           0 :             FatalError("unknown union type");
    1108           0 :             return;
    1109             :         }
    1110             :     }
    1111             : }
    1112             : 
    1113           0 : auto PQuotaChild::Read(
    1114             :         RequestParams* v__,
    1115             :         const Message* msg__,
    1116             :         PickleIterator* iter__) -> bool
    1117             : {
    1118             :     typedef RequestParams type__;
    1119             :     int type;
    1120           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1121           0 :         mozilla::ipc::UnionTypeReadError("RequestParams");
    1122           0 :         return false;
    1123             :     }
    1124             :     // Sentinel = 'RequestParams'
    1125           0 :     if ((!((msg__)->ReadSentinel(iter__, 2934802656)))) {
    1126           0 :         mozilla::ipc::SentinelReadError("RequestParams");
    1127           0 :         return false;
    1128             :     }
    1129             : 
    1130           0 :     switch (type) {
    1131             :     case type__::TInitParams:
    1132             :         {
    1133           0 :             InitParams tmp = InitParams();
    1134           0 :             (*(v__)) = tmp;
    1135           0 :             if ((!(Read((&((v__)->get_InitParams())), msg__, iter__)))) {
    1136           0 :                 FatalError("Error deserializing Union type");
    1137           0 :                 return false;
    1138             :             }
    1139             :             // Sentinel = 'TInitParams'
    1140           0 :             if ((!((msg__)->ReadSentinel(iter__, 1465472583)))) {
    1141           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1142           0 :                 return false;
    1143             :             }
    1144           0 :             return true;
    1145             :         }
    1146             :     case type__::TInitOriginParams:
    1147             :         {
    1148           0 :             InitOriginParams tmp = InitOriginParams();
    1149           0 :             (*(v__)) = tmp;
    1150           0 :             if ((!(Read((&((v__)->get_InitOriginParams())), msg__, iter__)))) {
    1151           0 :                 FatalError("Error deserializing Union type");
    1152           0 :                 return false;
    1153             :             }
    1154             :             // Sentinel = 'TInitOriginParams'
    1155           0 :             if ((!((msg__)->ReadSentinel(iter__, 2172042059)))) {
    1156           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1157           0 :                 return false;
    1158             :             }
    1159           0 :             return true;
    1160             :         }
    1161             :     case type__::TClearOriginParams:
    1162             :         {
    1163           0 :             ClearOriginParams tmp = ClearOriginParams();
    1164           0 :             (*(v__)) = tmp;
    1165           0 :             if ((!(Read((&((v__)->get_ClearOriginParams())), msg__, iter__)))) {
    1166           0 :                 FatalError("Error deserializing Union type");
    1167           0 :                 return false;
    1168             :             }
    1169             :             // Sentinel = 'TClearOriginParams'
    1170           0 :             if ((!((msg__)->ReadSentinel(iter__, 2428997745)))) {
    1171           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1172           0 :                 return false;
    1173             :             }
    1174           0 :             return true;
    1175             :         }
    1176             :     case type__::TClearDataParams:
    1177             :         {
    1178           0 :             ClearDataParams tmp = ClearDataParams();
    1179           0 :             (*(v__)) = tmp;
    1180           0 :             if ((!(Read((&((v__)->get_ClearDataParams())), msg__, iter__)))) {
    1181           0 :                 FatalError("Error deserializing Union type");
    1182           0 :                 return false;
    1183             :             }
    1184             :             // Sentinel = 'TClearDataParams'
    1185           0 :             if ((!((msg__)->ReadSentinel(iter__, 2645415261)))) {
    1186           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1187           0 :                 return false;
    1188             :             }
    1189           0 :             return true;
    1190             :         }
    1191             :     case type__::TClearAllParams:
    1192             :         {
    1193           0 :             ClearAllParams tmp = ClearAllParams();
    1194           0 :             (*(v__)) = tmp;
    1195           0 :             if ((!(Read((&((v__)->get_ClearAllParams())), msg__, iter__)))) {
    1196           0 :                 FatalError("Error deserializing Union type");
    1197           0 :                 return false;
    1198             :             }
    1199             :             // Sentinel = 'TClearAllParams'
    1200           0 :             if ((!((msg__)->ReadSentinel(iter__, 4218667221)))) {
    1201           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1202           0 :                 return false;
    1203             :             }
    1204           0 :             return true;
    1205             :         }
    1206             :     case type__::TResetAllParams:
    1207             :         {
    1208           0 :             ResetAllParams tmp = ResetAllParams();
    1209           0 :             (*(v__)) = tmp;
    1210           0 :             if ((!(Read((&((v__)->get_ResetAllParams())), msg__, iter__)))) {
    1211           0 :                 FatalError("Error deserializing Union type");
    1212           0 :                 return false;
    1213             :             }
    1214             :             // Sentinel = 'TResetAllParams'
    1215           0 :             if ((!((msg__)->ReadSentinel(iter__, 1597774515)))) {
    1216           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1217           0 :                 return false;
    1218             :             }
    1219           0 :             return true;
    1220             :         }
    1221             :     case type__::TPersistedParams:
    1222             :         {
    1223           0 :             PersistedParams tmp = PersistedParams();
    1224           0 :             (*(v__)) = tmp;
    1225           0 :             if ((!(Read((&((v__)->get_PersistedParams())), msg__, iter__)))) {
    1226           0 :                 FatalError("Error deserializing Union type");
    1227           0 :                 return false;
    1228             :             }
    1229             :             // Sentinel = 'TPersistedParams'
    1230           0 :             if ((!((msg__)->ReadSentinel(iter__, 2151579009)))) {
    1231           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1232           0 :                 return false;
    1233             :             }
    1234           0 :             return true;
    1235             :         }
    1236             :     case type__::TPersistParams:
    1237             :         {
    1238           0 :             PersistParams tmp = PersistParams();
    1239           0 :             (*(v__)) = tmp;
    1240           0 :             if ((!(Read((&((v__)->get_PersistParams())), msg__, iter__)))) {
    1241           0 :                 FatalError("Error deserializing Union type");
    1242           0 :                 return false;
    1243             :             }
    1244             :             // Sentinel = 'TPersistParams'
    1245           0 :             if ((!((msg__)->ReadSentinel(iter__, 610120232)))) {
    1246           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1247           0 :                 return false;
    1248             :             }
    1249           0 :             return true;
    1250             :         }
    1251             :     default:
    1252             :         {
    1253           0 :             FatalError("unknown union type");
    1254           0 :             return false;
    1255             :         }
    1256             :     }
    1257             : }
    1258             : 
    1259           0 : auto PQuotaChild::Write(
    1260             :         const UsageRequestParams& v__,
    1261             :         Message* msg__) -> void
    1262             : {
    1263             :     typedef UsageRequestParams type__;
    1264           0 :     Write(int((v__).type()), msg__);
    1265             :     // Sentinel = 'UsageRequestParams'
    1266           0 :     (msg__)->WriteSentinel(1689888312);
    1267             : 
    1268           0 :     switch ((v__).type()) {
    1269             :     case type__::TAllUsageParams:
    1270             :         {
    1271           0 :             Write((v__).get_AllUsageParams(), msg__);
    1272             :             // Sentinel = 'TAllUsageParams'
    1273           0 :             (msg__)->WriteSentinel(2435528059);
    1274           0 :             return;
    1275             :         }
    1276             :     case type__::TOriginUsageParams:
    1277             :         {
    1278           0 :             Write((v__).get_OriginUsageParams(), msg__);
    1279             :             // Sentinel = 'TOriginUsageParams'
    1280           0 :             (msg__)->WriteSentinel(55992623);
    1281           0 :             return;
    1282             :         }
    1283             :     default:
    1284             :         {
    1285           0 :             FatalError("unknown union type");
    1286           0 :             return;
    1287             :         }
    1288             :     }
    1289             : }
    1290             : 
    1291           0 : auto PQuotaChild::Read(
    1292             :         UsageRequestParams* v__,
    1293             :         const Message* msg__,
    1294             :         PickleIterator* iter__) -> bool
    1295             : {
    1296             :     typedef UsageRequestParams type__;
    1297             :     int type;
    1298           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1299           0 :         mozilla::ipc::UnionTypeReadError("UsageRequestParams");
    1300           0 :         return false;
    1301             :     }
    1302             :     // Sentinel = 'UsageRequestParams'
    1303           0 :     if ((!((msg__)->ReadSentinel(iter__, 1689888312)))) {
    1304           0 :         mozilla::ipc::SentinelReadError("UsageRequestParams");
    1305           0 :         return false;
    1306             :     }
    1307             : 
    1308           0 :     switch (type) {
    1309             :     case type__::TAllUsageParams:
    1310             :         {
    1311           0 :             AllUsageParams tmp = AllUsageParams();
    1312           0 :             (*(v__)) = tmp;
    1313           0 :             if ((!(Read((&((v__)->get_AllUsageParams())), msg__, iter__)))) {
    1314           0 :                 FatalError("Error deserializing Union type");
    1315           0 :                 return false;
    1316             :             }
    1317             :             // Sentinel = 'TAllUsageParams'
    1318           0 :             if ((!((msg__)->ReadSentinel(iter__, 2435528059)))) {
    1319           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1320           0 :                 return false;
    1321             :             }
    1322           0 :             return true;
    1323             :         }
    1324             :     case type__::TOriginUsageParams:
    1325             :         {
    1326           0 :             OriginUsageParams tmp = OriginUsageParams();
    1327           0 :             (*(v__)) = tmp;
    1328           0 :             if ((!(Read((&((v__)->get_OriginUsageParams())), msg__, iter__)))) {
    1329           0 :                 FatalError("Error deserializing Union type");
    1330           0 :                 return false;
    1331             :             }
    1332             :             // Sentinel = 'TOriginUsageParams'
    1333           0 :             if ((!((msg__)->ReadSentinel(iter__, 55992623)))) {
    1334           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1335           0 :                 return false;
    1336             :             }
    1337           0 :             return true;
    1338             :         }
    1339             :     default:
    1340             :         {
    1341           0 :             FatalError("unknown union type");
    1342           0 :             return false;
    1343             :         }
    1344             :     }
    1345             : }
    1346             : 
    1347           0 : auto PQuotaChild::Write(
    1348             :         const PQuotaRequestChild* v__,
    1349             :         Message* msg__,
    1350             :         bool nullable__) -> void
    1351             : {
    1352             :     int32_t id;
    1353           0 :     if ((!(v__))) {
    1354           0 :         if ((!(nullable__))) {
    1355           0 :             FatalError("NULL actor value passed to non-nullable param");
    1356             :         }
    1357           0 :         id = 0;
    1358             :     }
    1359             :     else {
    1360           0 :         id = (v__)->Id();
    1361           0 :         if ((1) == (id)) {
    1362           0 :             FatalError("actor has been |delete|d");
    1363             :         }
    1364             :     }
    1365             : 
    1366           0 :     Write(id, msg__);
    1367           0 : }
    1368             : 
    1369           0 : auto PQuotaChild::Read(
    1370             :         PQuotaRequestChild** v__,
    1371             :         const Message* msg__,
    1372             :         PickleIterator* iter__,
    1373             :         bool nullable__) -> bool
    1374             : {
    1375           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PQuotaRequest", PQuotaRequestMsgStart);
    1376           0 :     if ((actor).isNothing()) {
    1377           0 :         return false;
    1378             :     }
    1379             : 
    1380           0 :     (*(v__)) = static_cast<PQuotaRequestChild*>((actor).value());
    1381           0 :     return true;
    1382             : }
    1383             : 
    1384           0 : auto PQuotaChild::Write(
    1385             :         const NullPrincipalInfo& v__,
    1386             :         Message* msg__) -> void
    1387             : {
    1388           0 :     Write((v__).attrs(), msg__);
    1389             :     // Sentinel = 'attrs'
    1390           0 :     (msg__)->WriteSentinel(3014987797);
    1391           0 :     Write((v__).spec(), msg__);
    1392             :     // Sentinel = 'spec'
    1393           0 :     (msg__)->WriteSentinel(1630740541);
    1394           0 : }
    1395             : 
    1396           0 : auto PQuotaChild::Read(
    1397             :         NullPrincipalInfo* v__,
    1398             :         const Message* msg__,
    1399             :         PickleIterator* iter__) -> bool
    1400             : {
    1401           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1402           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1403           0 :         return false;
    1404             :     }
    1405             :     // Sentinel = 'attrs'
    1406           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1407           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1408           0 :         return false;
    1409             :     }
    1410           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1411           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1412           0 :         return false;
    1413             :     }
    1414             :     // Sentinel = 'spec'
    1415           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1416           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1417           0 :         return false;
    1418             :     }
    1419           0 :     return true;
    1420             : }
    1421             : 
    1422           0 : auto PQuotaChild::Write(
    1423             :         const OriginUsageParams& v__,
    1424             :         Message* msg__) -> void
    1425             : {
    1426           0 :     Write((v__).principalInfo(), msg__);
    1427             :     // Sentinel = 'principalInfo'
    1428           0 :     (msg__)->WriteSentinel(3386633731);
    1429           0 :     Write((v__).getGroupUsage(), msg__);
    1430             :     // Sentinel = 'getGroupUsage'
    1431           0 :     (msg__)->WriteSentinel(4167744247);
    1432           0 : }
    1433             : 
    1434           0 : auto PQuotaChild::Read(
    1435             :         OriginUsageParams* v__,
    1436             :         const Message* msg__,
    1437             :         PickleIterator* iter__) -> bool
    1438             : {
    1439           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
    1440           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'OriginUsageParams'");
    1441           0 :         return false;
    1442             :     }
    1443             :     // Sentinel = 'principalInfo'
    1444           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
    1445           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'OriginUsageParams'");
    1446           0 :         return false;
    1447             :     }
    1448           0 :     if ((!(Read((&((v__)->getGroupUsage())), msg__, iter__)))) {
    1449           0 :         FatalError("Error deserializing 'getGroupUsage' (bool) member of 'OriginUsageParams'");
    1450           0 :         return false;
    1451             :     }
    1452             :     // Sentinel = 'getGroupUsage'
    1453           0 :     if ((!((msg__)->ReadSentinel(iter__, 4167744247)))) {
    1454           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'getGroupUsage' (bool) member of 'OriginUsageParams'");
    1455           0 :         return false;
    1456             :     }
    1457           0 :     return true;
    1458             : }
    1459             : 
    1460           0 : auto PQuotaChild::Write(
    1461             :         const ResetAllParams& v__,
    1462             :         Message* msg__) -> void
    1463             : {
    1464           0 : }
    1465             : 
    1466           0 : auto PQuotaChild::Read(
    1467             :         ResetAllParams* v__,
    1468             :         const Message* msg__,
    1469             :         PickleIterator* iter__) -> bool
    1470             : {
    1471           0 :     return true;
    1472             : }
    1473             : 
    1474             : 
    1475             : 
    1476             : } // namespace quota
    1477             : } // namespace dom
    1478             : } // namespace mozilla

Generated by: LCOV version 1.13