LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PCacheChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1840 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 131 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/cache/PCacheChild.h"
       8             : 
       9             : #include "mozilla/ipc/PBackgroundChild.h"
      10             : #include "mozilla/dom/cache/PCacheOpChild.h"
      11             : #include "mozilla/dom/cache/PCacheStreamControlChild.h"
      12             : #include "mozilla/ipc/PFileDescriptorSetChild.h"
      13             : #include "mozilla/ipc/PChildToParentStreamChild.h"
      14             : #include "mozilla/ipc/PParentToChildStreamChild.h"
      15             : 
      16             : #include "nsIFile.h"
      17             : #include "GeckoProfiler.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace dom {
      21             : namespace cache {
      22             : 
      23             : 
      24           0 : auto PCacheChild::Recv__delete__() -> mozilla::ipc::IPCResult
      25             : {
      26           0 :     return IPC_OK();
      27             : }
      28             : 
      29           0 : auto PCacheChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      30             : {
      31           0 : }
      32             : 
      33           0 : MOZ_IMPLICIT PCacheChild::PCacheChild() :
      34             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      35           0 :     mState(PCache::__Dead)
      36             : {
      37           0 :     MOZ_COUNT_CTOR(PCacheChild);
      38           0 : }
      39             : 
      40           0 : PCacheChild::~PCacheChild()
      41             : {
      42           0 :     MOZ_COUNT_DTOR(PCacheChild);
      43           0 : }
      44             : 
      45           0 : auto PCacheChild::Manager() const -> PBackgroundChild*
      46             : {
      47           0 :     return static_cast<PBackgroundChild*>(IProtocol::Manager());
      48             : }
      49             : 
      50           0 : auto PCacheChild::ManagedPCacheOpChild(nsTArray<PCacheOpChild*>& aArr) const -> void
      51             : {
      52           0 :     (mManagedPCacheOpChild).ToArray(aArr);
      53           0 : }
      54             : 
      55           0 : auto PCacheChild::ManagedPCacheOpChild() const -> const ManagedContainer<PCacheOpChild>&
      56             : {
      57           0 :     return mManagedPCacheOpChild;
      58             : }
      59             : 
      60           0 : auto PCacheChild::SendPCacheOpConstructor(const CacheOpArgs& aOpArgs) -> PCacheOpChild*
      61             : {
      62           0 :     return SendPCacheOpConstructor(AllocPCacheOpChild(aOpArgs), aOpArgs);
      63             : }
      64             : 
      65           0 : auto PCacheChild::SendPCacheOpConstructor(
      66             :         PCacheOpChild* actor,
      67             :         const CacheOpArgs& aOpArgs) -> PCacheOpChild*
      68             : {
      69           0 :     if ((!(actor))) {
      70           0 :         NS_WARNING("Error constructing actor PCacheOpChild");
      71           0 :         return nullptr;
      72             :     }
      73           0 :     (actor)->SetManager(this);
      74           0 :     Register(actor);
      75           0 :     (actor)->SetIPCChannel(GetIPCChannel());
      76           0 :     (mManagedPCacheOpChild).PutEntry(actor);
      77           0 :     (actor)->mState = mozilla::dom::cache::PCacheOp::__Start;
      78             : 
      79           0 :     IPC::Message* msg__ = PCache::Msg_PCacheOpConstructor(Id());
      80             : 
      81           0 :     Write(actor, msg__, false);
      82             :     // Sentinel = 'actor'
      83           0 :     (msg__)->WriteSentinel(875202478);
      84           0 :     Write(aOpArgs, msg__);
      85             :     // Sentinel = 'aOpArgs'
      86           0 :     (msg__)->WriteSentinel(2628124652);
      87             : 
      88           0 :     (msg__)->set_constructor();
      89             : 
      90             : 
      91           0 :     if (mozilla::ipc::LoggingEnabledFor("PCacheChild")) {
      92           0 :         mozilla::ipc::LogMessageForProtocol("PCacheChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      93             :     }
      94           0 :     AUTO_PROFILER_LABEL("PCache::Msg_PCacheOpConstructor", OTHER);
      95           0 :     PCache::Transition(PCache::Msg_PCacheOpConstructor__ID, (&(mState)));
      96             : 
      97           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      98           0 :     if ((!(sendok__))) {
      99           0 :         FatalError("constructor for actor failed");
     100           0 :         return nullptr;
     101             :     }
     102           0 :     return actor;
     103             : }
     104             : 
     105           0 : auto PCacheChild::SendTeardown() -> bool
     106             : {
     107           0 :     IPC::Message* msg__ = PCache::Msg_Teardown(Id());
     108             : 
     109             : 
     110             : 
     111             : 
     112             : 
     113           0 :     if (mozilla::ipc::LoggingEnabledFor("PCacheChild")) {
     114           0 :         mozilla::ipc::LogMessageForProtocol("PCacheChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     115             :     }
     116           0 :     AUTO_PROFILER_LABEL("PCache::Msg_Teardown", OTHER);
     117           0 :     PCache::Transition(PCache::Msg_Teardown__ID, (&(mState)));
     118             : 
     119           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     120           0 :     return sendok__;
     121             : }
     122             : 
     123           0 : auto PCacheChild::RemoveManagee(
     124             :         int32_t aProtocolId,
     125             :         ProtocolBase* aListener) -> void
     126             : {
     127           0 :     switch (aProtocolId) {
     128             :     case PCacheOpMsgStart:
     129             :         {
     130           0 :             PCacheOpChild* actor = static_cast<PCacheOpChild*>(aListener);
     131           0 :             auto& container = mManagedPCacheOpChild;
     132           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     133             : 
     134           0 :             (container).RemoveEntry(actor);
     135           0 :             DeallocPCacheOpChild(actor);
     136           0 :             return;
     137             :         }
     138             :     default:
     139             :         {
     140           0 :             FatalError("unreached");
     141           0 :             return;
     142             :         }
     143             :     }
     144             : }
     145             : 
     146           0 : auto PCacheChild::OnMessageReceived(const Message& msg__) -> PCacheChild::Result
     147             : {
     148           0 :     switch ((msg__).type()) {
     149             :     case PCache::Reply_PCacheOpConstructor__ID:
     150             :         {
     151           0 :             return MsgProcessed;
     152             :         }
     153             :     case PCache::Msg___delete____ID:
     154             :         {
     155           0 :             if (mozilla::ipc::LoggingEnabledFor("PCacheChild")) {
     156           0 :                 mozilla::ipc::LogMessageForProtocol("PCacheChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     157             :             }
     158           0 :             AUTO_PROFILER_LABEL("PCache::Msg___delete__", OTHER);
     159             : 
     160           0 :             PickleIterator iter__(msg__);
     161             :             PCacheChild* actor;
     162             : 
     163           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     164           0 :                 FatalError("Error deserializing 'PCacheChild'");
     165           0 :                 return MsgValueError;
     166             :             }
     167             :             // Sentinel = 'actor'
     168           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     169           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PCacheChild'");
     170           0 :                 return MsgValueError;
     171             :             }
     172           0 :             (msg__).EndRead(iter__, (msg__).type());
     173           0 :             PCache::Transition(PCache::Msg___delete____ID, (&(mState)));
     174           0 :             if ((!(Recv__delete__()))) {
     175           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     176             :                 // Error handled in mozilla::ipc::IPCResult
     177           0 :                 return MsgProcessingError;
     178             :             }
     179             : 
     180             : 
     181           0 :             IProtocol* mgr = (actor)->Manager();
     182           0 :             (actor)->DestroySubtree(Deletion);
     183           0 :             (actor)->DeallocSubtree();
     184           0 :             (mgr)->RemoveManagee(PCacheMsgStart, actor);
     185             : 
     186           0 :             return MsgProcessed;
     187             :         }
     188             :     default:
     189             :         {
     190           0 :             return MsgNotKnown;
     191             :         }
     192             :     }
     193             : }
     194             : 
     195           0 : auto PCacheChild::OnMessageReceived(
     196             :         const Message& msg__,
     197             :         Message*& reply__) -> PCacheChild::Result
     198             : {
     199           0 :     return MsgNotKnown;
     200             : }
     201             : 
     202           0 : auto PCacheChild::OnCallReceived(
     203             :         const Message& msg__,
     204             :         Message*& reply__) -> PCacheChild::Result
     205             : {
     206           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     207             :     return MsgNotKnown;
     208             : }
     209             : 
     210           0 : auto PCacheChild::GetProtocolTypeId() -> int32_t
     211             : {
     212           0 :     return PCacheMsgStart;
     213             : }
     214             : 
     215           0 : auto PCacheChild::ProtocolName() const -> const char*
     216             : {
     217           0 :     return "PCacheChild";
     218             : }
     219             : 
     220           0 : auto PCacheChild::DestroySubtree(ActorDestroyReason why) -> void
     221             : {
     222             :     // Unregister from our manager.
     223           0 :     Unregister(Id());
     224             : 
     225           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     226             : 
     227             :     {
     228             :         // Recursively shutting down PCacheOp kids
     229           0 :         nsTArray<PCacheOpChild*> kids;
     230             :         // Accumulate kids into a stable structure to iterate over
     231           0 :         ManagedPCacheOpChild(kids);
     232           0 :         for (auto& kid : kids) {
     233             :             // Guarding against a child removing a sibling from the list during the iteration.
     234           0 :             if ((mManagedPCacheOpChild).Contains(kid)) {
     235           0 :                 (kid)->DestroySubtree(subtreewhy);
     236             :             }
     237             :         }
     238             :     }
     239             : 
     240             :     // Reject owning pending promises.
     241           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     242             : 
     243             :     // Finally, destroy "us".
     244           0 :     ActorDestroy(why);
     245           0 : }
     246             : 
     247           0 : auto PCacheChild::DeallocSubtree() -> void
     248             : {
     249             :     {
     250             :         // Recursively deleting PCacheOp kids
     251           0 :         for (auto iter = (mManagedPCacheOpChild).Iter(); (!((iter).Done())); (iter).Next()) {
     252           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     253             :         }
     254             : 
     255           0 :         for (auto iter = (mManagedPCacheOpChild).Iter(); (!((iter).Done())); (iter).Next()) {
     256           0 :             DeallocPCacheOpChild(((iter).Get())->GetKey());
     257             :         }
     258           0 :         (mManagedPCacheOpChild).Clear();
     259             :     }
     260           0 : }
     261             : 
     262           0 : auto PCacheChild::Write(
     263             :         const SystemPrincipalInfo& v__,
     264             :         Message* msg__) -> void
     265             : {
     266           0 : }
     267             : 
     268           0 : auto PCacheChild::Read(
     269             :         SystemPrincipalInfo* v__,
     270             :         const Message* msg__,
     271             :         PickleIterator* iter__) -> bool
     272             : {
     273           0 :     return true;
     274             : }
     275             : 
     276           0 : auto PCacheChild::Write(
     277             :         const nsTArray<InputStreamParams>& v__,
     278             :         Message* msg__) -> void
     279             : {
     280           0 :     uint32_t length = (v__).Length();
     281           0 :     Write(length, msg__);
     282             :     // Sentinel = ('length', 'InputStreamParams[]')
     283           0 :     (msg__)->WriteSentinel(348334258);
     284             : 
     285           0 :     for (auto& elem : v__) {
     286           0 :         Write(elem, msg__);
     287             :         // Sentinel = 'InputStreamParams[]'
     288           0 :         (msg__)->WriteSentinel(2927715197);
     289             :     }
     290           0 : }
     291             : 
     292           0 : auto PCacheChild::Read(
     293             :         nsTArray<InputStreamParams>* v__,
     294             :         const Message* msg__,
     295             :         PickleIterator* iter__) -> bool
     296             : {
     297           0 :     nsTArray<InputStreamParams> fa;
     298             :     uint32_t length;
     299           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     300           0 :         mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
     301           0 :         return false;
     302             :     }
     303             :     // Sentinel = ('length', 'InputStreamParams[]')
     304           0 :     if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
     305           0 :         mozilla::ipc::SentinelReadError("InputStreamParams[]");
     306           0 :         return false;
     307             :     }
     308             : 
     309           0 :     InputStreamParams* elems = (fa).AppendElements(length);
     310           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     311           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     312           0 :             FatalError("Error deserializing 'InputStreamParams[i]'");
     313           0 :             return false;
     314             :         }
     315             :         // Sentinel = 'InputStreamParams[]'
     316           0 :         if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
     317           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
     318           0 :             return false;
     319             :         }
     320             :     }
     321           0 :     (v__)->SwapElements(fa);
     322           0 :     return true;
     323             : }
     324             : 
     325           0 : auto PCacheChild::Write(
     326             :         const OptionalPrincipalInfo& v__,
     327             :         Message* msg__) -> void
     328             : {
     329             :     typedef OptionalPrincipalInfo type__;
     330           0 :     Write(int((v__).type()), msg__);
     331             :     // Sentinel = 'OptionalPrincipalInfo'
     332           0 :     (msg__)->WriteSentinel(3041452007);
     333             : 
     334           0 :     switch ((v__).type()) {
     335             :     case type__::Tvoid_t:
     336             :         {
     337           0 :             Write((v__).get_void_t(), msg__);
     338             :             // Sentinel = 'Tvoid_t'
     339           0 :             (msg__)->WriteSentinel(3041273328);
     340           0 :             return;
     341             :         }
     342             :     case type__::TPrincipalInfo:
     343             :         {
     344           0 :             Write((v__).get_PrincipalInfo(), msg__);
     345             :             // Sentinel = 'TPrincipalInfo'
     346           0 :             (msg__)->WriteSentinel(1396743580);
     347           0 :             return;
     348             :         }
     349             :     default:
     350             :         {
     351           0 :             FatalError("unknown union type");
     352           0 :             return;
     353             :         }
     354             :     }
     355             : }
     356             : 
     357           0 : auto PCacheChild::Read(
     358             :         OptionalPrincipalInfo* v__,
     359             :         const Message* msg__,
     360             :         PickleIterator* iter__) -> bool
     361             : {
     362             :     typedef OptionalPrincipalInfo type__;
     363             :     int type;
     364           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     365           0 :         mozilla::ipc::UnionTypeReadError("OptionalPrincipalInfo");
     366           0 :         return false;
     367             :     }
     368             :     // Sentinel = 'OptionalPrincipalInfo'
     369           0 :     if ((!((msg__)->ReadSentinel(iter__, 3041452007)))) {
     370           0 :         mozilla::ipc::SentinelReadError("OptionalPrincipalInfo");
     371           0 :         return false;
     372             :     }
     373             : 
     374           0 :     switch (type) {
     375             :     case type__::Tvoid_t:
     376             :         {
     377             :             void_t tmp = void_t();
     378           0 :             (*(v__)) = tmp;
     379           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     380           0 :                 FatalError("Error deserializing Union type");
     381           0 :                 return false;
     382             :             }
     383             :             // Sentinel = 'Tvoid_t'
     384           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     385           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     386           0 :                 return false;
     387             :             }
     388           0 :             return true;
     389             :         }
     390             :     case type__::TPrincipalInfo:
     391             :         {
     392           0 :             PrincipalInfo tmp = PrincipalInfo();
     393           0 :             (*(v__)) = tmp;
     394           0 :             if ((!(Read((&((v__)->get_PrincipalInfo())), msg__, iter__)))) {
     395           0 :                 FatalError("Error deserializing Union type");
     396           0 :                 return false;
     397             :             }
     398             :             // Sentinel = 'TPrincipalInfo'
     399           0 :             if ((!((msg__)->ReadSentinel(iter__, 1396743580)))) {
     400           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     401           0 :                 return false;
     402             :             }
     403           0 :             return true;
     404             :         }
     405             :     default:
     406             :         {
     407           0 :             FatalError("unknown union type");
     408           0 :             return false;
     409             :         }
     410             :     }
     411             : }
     412             : 
     413           0 : auto PCacheChild::Write(
     414             :         const nsTArray<CacheRequestResponse>& v__,
     415             :         Message* msg__) -> void
     416             : {
     417           0 :     uint32_t length = (v__).Length();
     418           0 :     Write(length, msg__);
     419             :     // Sentinel = ('length', 'CacheRequestResponse[]')
     420           0 :     (msg__)->WriteSentinel(3350175795);
     421             : 
     422           0 :     for (auto& elem : v__) {
     423           0 :         Write(elem, msg__);
     424             :         // Sentinel = 'CacheRequestResponse[]'
     425           0 :         (msg__)->WriteSentinel(1625719430);
     426             :     }
     427           0 : }
     428             : 
     429           0 : auto PCacheChild::Read(
     430             :         nsTArray<CacheRequestResponse>* v__,
     431             :         const Message* msg__,
     432             :         PickleIterator* iter__) -> bool
     433             : {
     434           0 :     nsTArray<CacheRequestResponse> fa;
     435             :     uint32_t length;
     436           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     437           0 :         mozilla::ipc::ArrayLengthReadError("CacheRequestResponse[]");
     438           0 :         return false;
     439             :     }
     440             :     // Sentinel = ('length', 'CacheRequestResponse[]')
     441           0 :     if ((!((msg__)->ReadSentinel(iter__, 3350175795)))) {
     442           0 :         mozilla::ipc::SentinelReadError("CacheRequestResponse[]");
     443           0 :         return false;
     444             :     }
     445             : 
     446           0 :     CacheRequestResponse* elems = (fa).AppendElements(length);
     447           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     448           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     449           0 :             FatalError("Error deserializing 'CacheRequestResponse[i]'");
     450           0 :             return false;
     451             :         }
     452             :         // Sentinel = 'CacheRequestResponse[]'
     453           0 :         if ((!((msg__)->ReadSentinel(iter__, 1625719430)))) {
     454           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'CacheRequestResponse[i]'");
     455           0 :             return false;
     456             :         }
     457             :     }
     458           0 :     (v__)->SwapElements(fa);
     459           0 :     return true;
     460             : }
     461             : 
     462           0 : auto PCacheChild::Write(
     463             :         const StorageOpenArgs& v__,
     464             :         Message* msg__) -> void
     465             : {
     466           0 :     Write((v__).key(), msg__);
     467             :     // Sentinel = 'key'
     468           0 :     (msg__)->WriteSentinel(35142870);
     469           0 : }
     470             : 
     471           0 : auto PCacheChild::Read(
     472             :         StorageOpenArgs* v__,
     473             :         const Message* msg__,
     474             :         PickleIterator* iter__) -> bool
     475             : {
     476           0 :     if ((!(Read((&((v__)->key())), msg__, iter__)))) {
     477           0 :         FatalError("Error deserializing 'key' (nsString) member of 'StorageOpenArgs'");
     478           0 :         return false;
     479             :     }
     480             :     // Sentinel = 'key'
     481           0 :     if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
     482           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'StorageOpenArgs'");
     483           0 :         return false;
     484             :     }
     485           0 :     return true;
     486             : }
     487             : 
     488           0 : auto PCacheChild::Write(
     489             :         const CacheRequestResponse& v__,
     490             :         Message* msg__) -> void
     491             : {
     492           0 :     Write((v__).request(), msg__);
     493             :     // Sentinel = 'request'
     494           0 :     (msg__)->WriteSentinel(2366856172);
     495           0 :     Write((v__).response(), msg__);
     496             :     // Sentinel = 'response'
     497           0 :     (msg__)->WriteSentinel(2396115421);
     498           0 : }
     499             : 
     500           0 : auto PCacheChild::Read(
     501             :         CacheRequestResponse* v__,
     502             :         const Message* msg__,
     503             :         PickleIterator* iter__) -> bool
     504             : {
     505           0 :     if ((!(Read((&((v__)->request())), msg__, iter__)))) {
     506           0 :         FatalError("Error deserializing 'request' (CacheRequest) member of 'CacheRequestResponse'");
     507           0 :         return false;
     508             :     }
     509             :     // Sentinel = 'request'
     510           0 :     if ((!((msg__)->ReadSentinel(iter__, 2366856172)))) {
     511           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'request' (CacheRequest) member of 'CacheRequestResponse'");
     512           0 :         return false;
     513             :     }
     514           0 :     if ((!(Read((&((v__)->response())), msg__, iter__)))) {
     515           0 :         FatalError("Error deserializing 'response' (CacheResponse) member of 'CacheRequestResponse'");
     516           0 :         return false;
     517             :     }
     518             :     // Sentinel = 'response'
     519           0 :     if ((!((msg__)->ReadSentinel(iter__, 2396115421)))) {
     520           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'response' (CacheResponse) member of 'CacheRequestResponse'");
     521           0 :         return false;
     522             :     }
     523           0 :     return true;
     524             : }
     525             : 
     526           0 : auto PCacheChild::Write(
     527             :         const ContentPrincipalInfoOriginNoSuffix& v__,
     528             :         Message* msg__) -> void
     529             : {
     530             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     531           0 :     Write(int((v__).type()), msg__);
     532             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     533           0 :     (msg__)->WriteSentinel(2442066713);
     534             : 
     535           0 :     switch ((v__).type()) {
     536             :     case type__::TnsCString:
     537             :         {
     538           0 :             Write((v__).get_nsCString(), msg__);
     539             :             // Sentinel = 'TnsCString'
     540           0 :             (msg__)->WriteSentinel(2427411293);
     541           0 :             return;
     542             :         }
     543             :     case type__::Tvoid_t:
     544             :         {
     545           0 :             Write((v__).get_void_t(), msg__);
     546             :             // Sentinel = 'Tvoid_t'
     547           0 :             (msg__)->WriteSentinel(3041273328);
     548           0 :             return;
     549             :         }
     550             :     default:
     551             :         {
     552           0 :             FatalError("unknown union type");
     553           0 :             return;
     554             :         }
     555             :     }
     556             : }
     557             : 
     558           0 : auto PCacheChild::Read(
     559             :         ContentPrincipalInfoOriginNoSuffix* v__,
     560             :         const Message* msg__,
     561             :         PickleIterator* iter__) -> bool
     562             : {
     563             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     564             :     int type;
     565           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     566           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
     567           0 :         return false;
     568             :     }
     569             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     570           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
     571           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
     572           0 :         return false;
     573             :     }
     574             : 
     575           0 :     switch (type) {
     576             :     case type__::TnsCString:
     577             :         {
     578           0 :             nsCString tmp = nsCString();
     579           0 :             (*(v__)) = tmp;
     580           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
     581           0 :                 FatalError("Error deserializing Union type");
     582           0 :                 return false;
     583             :             }
     584             :             // Sentinel = 'TnsCString'
     585           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
     586           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     587           0 :                 return false;
     588             :             }
     589           0 :             return true;
     590             :         }
     591             :     case type__::Tvoid_t:
     592             :         {
     593             :             void_t tmp = void_t();
     594           0 :             (*(v__)) = tmp;
     595           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     596           0 :                 FatalError("Error deserializing Union type");
     597           0 :                 return false;
     598             :             }
     599             :             // Sentinel = 'Tvoid_t'
     600           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     601           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     602           0 :                 return false;
     603             :             }
     604           0 :             return true;
     605             :         }
     606             :     default:
     607             :         {
     608           0 :             FatalError("unknown union type");
     609           0 :             return false;
     610             :         }
     611             :     }
     612             : }
     613             : 
     614           0 : auto PCacheChild::Write(
     615             :         const CacheRequest& v__,
     616             :         Message* msg__) -> void
     617             : {
     618           0 :     Write((v__).method(), msg__);
     619             :     // Sentinel = 'method'
     620           0 :     (msg__)->WriteSentinel(1846382781);
     621           0 :     Write((v__).urlWithoutQuery(), msg__);
     622             :     // Sentinel = 'urlWithoutQuery'
     623           0 :     (msg__)->WriteSentinel(3941647224);
     624           0 :     Write((v__).urlQuery(), msg__);
     625             :     // Sentinel = 'urlQuery'
     626           0 :     (msg__)->WriteSentinel(3512340437);
     627           0 :     Write((v__).urlFragment(), msg__);
     628             :     // Sentinel = 'urlFragment'
     629           0 :     (msg__)->WriteSentinel(843953064);
     630           0 :     Write((v__).headers(), msg__);
     631             :     // Sentinel = 'headers'
     632           0 :     (msg__)->WriteSentinel(4284175217);
     633           0 :     Write((v__).headersGuard(), msg__);
     634             :     // Sentinel = 'headersGuard'
     635           0 :     (msg__)->WriteSentinel(2295054805);
     636           0 :     Write((v__).referrer(), msg__);
     637             :     // Sentinel = 'referrer'
     638           0 :     (msg__)->WriteSentinel(3770987113);
     639           0 :     Write((v__).referrerPolicy(), msg__);
     640             :     // Sentinel = 'referrerPolicy'
     641           0 :     (msg__)->WriteSentinel(2269890057);
     642           0 :     Write((v__).mode(), msg__);
     643             :     // Sentinel = 'mode'
     644           0 :     (msg__)->WriteSentinel(3911367285);
     645           0 :     Write((v__).credentials(), msg__);
     646             :     // Sentinel = 'credentials'
     647           0 :     (msg__)->WriteSentinel(3085848153);
     648           0 :     Write((v__).body(), msg__);
     649             :     // Sentinel = 'body'
     650           0 :     (msg__)->WriteSentinel(2829965504);
     651           0 :     Write((v__).contentPolicyType(), msg__);
     652             :     // Sentinel = 'contentPolicyType'
     653           0 :     (msg__)->WriteSentinel(3089607692);
     654           0 :     Write((v__).requestCache(), msg__);
     655             :     // Sentinel = 'requestCache'
     656           0 :     (msg__)->WriteSentinel(397161175);
     657           0 :     Write((v__).requestRedirect(), msg__);
     658             :     // Sentinel = 'requestRedirect'
     659           0 :     (msg__)->WriteSentinel(3935301184);
     660           0 :     Write((v__).integrity(), msg__);
     661             :     // Sentinel = 'integrity'
     662           0 :     (msg__)->WriteSentinel(3061850140);
     663           0 : }
     664             : 
     665           0 : auto PCacheChild::Read(
     666             :         CacheRequest* v__,
     667             :         const Message* msg__,
     668             :         PickleIterator* iter__) -> bool
     669             : {
     670           0 :     if ((!(Read((&((v__)->method())), msg__, iter__)))) {
     671           0 :         FatalError("Error deserializing 'method' (nsCString) member of 'CacheRequest'");
     672           0 :         return false;
     673             :     }
     674             :     // Sentinel = 'method'
     675           0 :     if ((!((msg__)->ReadSentinel(iter__, 1846382781)))) {
     676           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'method' (nsCString) member of 'CacheRequest'");
     677           0 :         return false;
     678             :     }
     679           0 :     if ((!(Read((&((v__)->urlWithoutQuery())), msg__, iter__)))) {
     680           0 :         FatalError("Error deserializing 'urlWithoutQuery' (nsCString) member of 'CacheRequest'");
     681           0 :         return false;
     682             :     }
     683             :     // Sentinel = 'urlWithoutQuery'
     684           0 :     if ((!((msg__)->ReadSentinel(iter__, 3941647224)))) {
     685           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlWithoutQuery' (nsCString) member of 'CacheRequest'");
     686           0 :         return false;
     687             :     }
     688           0 :     if ((!(Read((&((v__)->urlQuery())), msg__, iter__)))) {
     689           0 :         FatalError("Error deserializing 'urlQuery' (nsCString) member of 'CacheRequest'");
     690           0 :         return false;
     691             :     }
     692             :     // Sentinel = 'urlQuery'
     693           0 :     if ((!((msg__)->ReadSentinel(iter__, 3512340437)))) {
     694           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlQuery' (nsCString) member of 'CacheRequest'");
     695           0 :         return false;
     696             :     }
     697           0 :     if ((!(Read((&((v__)->urlFragment())), msg__, iter__)))) {
     698           0 :         FatalError("Error deserializing 'urlFragment' (nsCString) member of 'CacheRequest'");
     699           0 :         return false;
     700             :     }
     701             :     // Sentinel = 'urlFragment'
     702           0 :     if ((!((msg__)->ReadSentinel(iter__, 843953064)))) {
     703           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlFragment' (nsCString) member of 'CacheRequest'");
     704           0 :         return false;
     705             :     }
     706           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
     707           0 :         FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheRequest'");
     708           0 :         return false;
     709             :     }
     710             :     // Sentinel = 'headers'
     711           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
     712           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheRequest'");
     713           0 :         return false;
     714             :     }
     715           0 :     if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
     716           0 :         FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheRequest'");
     717           0 :         return false;
     718             :     }
     719             :     // Sentinel = 'headersGuard'
     720           0 :     if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
     721           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheRequest'");
     722           0 :         return false;
     723             :     }
     724           0 :     if ((!(Read((&((v__)->referrer())), msg__, iter__)))) {
     725           0 :         FatalError("Error deserializing 'referrer' (nsString) member of 'CacheRequest'");
     726           0 :         return false;
     727             :     }
     728             :     // Sentinel = 'referrer'
     729           0 :     if ((!((msg__)->ReadSentinel(iter__, 3770987113)))) {
     730           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'referrer' (nsString) member of 'CacheRequest'");
     731           0 :         return false;
     732             :     }
     733           0 :     if ((!(Read((&((v__)->referrerPolicy())), msg__, iter__)))) {
     734           0 :         FatalError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'CacheRequest'");
     735           0 :         return false;
     736             :     }
     737             :     // Sentinel = 'referrerPolicy'
     738           0 :     if ((!((msg__)->ReadSentinel(iter__, 2269890057)))) {
     739           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'referrerPolicy' (ReferrerPolicy) member of 'CacheRequest'");
     740           0 :         return false;
     741             :     }
     742           0 :     if ((!(Read((&((v__)->mode())), msg__, iter__)))) {
     743           0 :         FatalError("Error deserializing 'mode' (RequestMode) member of 'CacheRequest'");
     744           0 :         return false;
     745             :     }
     746             :     // Sentinel = 'mode'
     747           0 :     if ((!((msg__)->ReadSentinel(iter__, 3911367285)))) {
     748           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'mode' (RequestMode) member of 'CacheRequest'");
     749           0 :         return false;
     750             :     }
     751           0 :     if ((!(Read((&((v__)->credentials())), msg__, iter__)))) {
     752           0 :         FatalError("Error deserializing 'credentials' (RequestCredentials) member of 'CacheRequest'");
     753           0 :         return false;
     754             :     }
     755             :     // Sentinel = 'credentials'
     756           0 :     if ((!((msg__)->ReadSentinel(iter__, 3085848153)))) {
     757           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'credentials' (RequestCredentials) member of 'CacheRequest'");
     758           0 :         return false;
     759             :     }
     760           0 :     if ((!(Read((&((v__)->body())), msg__, iter__)))) {
     761           0 :         FatalError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheRequest'");
     762           0 :         return false;
     763             :     }
     764             :     // Sentinel = 'body'
     765           0 :     if ((!((msg__)->ReadSentinel(iter__, 2829965504)))) {
     766           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheRequest'");
     767           0 :         return false;
     768             :     }
     769           0 :     if ((!(Read((&((v__)->contentPolicyType())), msg__, iter__)))) {
     770           0 :         FatalError("Error deserializing 'contentPolicyType' (uint32_t) member of 'CacheRequest'");
     771           0 :         return false;
     772             :     }
     773             :     // Sentinel = 'contentPolicyType'
     774           0 :     if ((!((msg__)->ReadSentinel(iter__, 3089607692)))) {
     775           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'contentPolicyType' (uint32_t) member of 'CacheRequest'");
     776           0 :         return false;
     777             :     }
     778           0 :     if ((!(Read((&((v__)->requestCache())), msg__, iter__)))) {
     779           0 :         FatalError("Error deserializing 'requestCache' (RequestCache) member of 'CacheRequest'");
     780           0 :         return false;
     781             :     }
     782             :     // Sentinel = 'requestCache'
     783           0 :     if ((!((msg__)->ReadSentinel(iter__, 397161175)))) {
     784           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestCache' (RequestCache) member of 'CacheRequest'");
     785           0 :         return false;
     786             :     }
     787           0 :     if ((!(Read((&((v__)->requestRedirect())), msg__, iter__)))) {
     788           0 :         FatalError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'CacheRequest'");
     789           0 :         return false;
     790             :     }
     791             :     // Sentinel = 'requestRedirect'
     792           0 :     if ((!((msg__)->ReadSentinel(iter__, 3935301184)))) {
     793           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestRedirect' (RequestRedirect) member of 'CacheRequest'");
     794           0 :         return false;
     795             :     }
     796           0 :     if ((!(Read((&((v__)->integrity())), msg__, iter__)))) {
     797           0 :         FatalError("Error deserializing 'integrity' (nsString) member of 'CacheRequest'");
     798           0 :         return false;
     799             :     }
     800             :     // Sentinel = 'integrity'
     801           0 :     if ((!((msg__)->ReadSentinel(iter__, 3061850140)))) {
     802           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'integrity' (nsString) member of 'CacheRequest'");
     803           0 :         return false;
     804             :     }
     805           0 :     return true;
     806             : }
     807             : 
     808           0 : auto PCacheChild::Write(
     809             :         const OptionalInputStreamParams& v__,
     810             :         Message* msg__) -> void
     811             : {
     812             :     typedef OptionalInputStreamParams type__;
     813           0 :     Write(int((v__).type()), msg__);
     814             :     // Sentinel = 'OptionalInputStreamParams'
     815           0 :     (msg__)->WriteSentinel(1355174443);
     816             : 
     817           0 :     switch ((v__).type()) {
     818             :     case type__::Tvoid_t:
     819             :         {
     820           0 :             Write((v__).get_void_t(), msg__);
     821             :             // Sentinel = 'Tvoid_t'
     822           0 :             (msg__)->WriteSentinel(3041273328);
     823           0 :             return;
     824             :         }
     825             :     case type__::TInputStreamParams:
     826             :         {
     827           0 :             Write((v__).get_InputStreamParams(), msg__);
     828             :             // Sentinel = 'TInputStreamParams'
     829           0 :             (msg__)->WriteSentinel(55652096);
     830           0 :             return;
     831             :         }
     832             :     default:
     833             :         {
     834           0 :             FatalError("unknown union type");
     835           0 :             return;
     836             :         }
     837             :     }
     838             : }
     839             : 
     840           0 : auto PCacheChild::Read(
     841             :         OptionalInputStreamParams* v__,
     842             :         const Message* msg__,
     843             :         PickleIterator* iter__) -> bool
     844             : {
     845             :     typedef OptionalInputStreamParams type__;
     846             :     int type;
     847           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     848           0 :         mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
     849           0 :         return false;
     850             :     }
     851             :     // Sentinel = 'OptionalInputStreamParams'
     852           0 :     if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
     853           0 :         mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
     854           0 :         return false;
     855             :     }
     856             : 
     857           0 :     switch (type) {
     858             :     case type__::Tvoid_t:
     859             :         {
     860             :             void_t tmp = void_t();
     861           0 :             (*(v__)) = tmp;
     862           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     863           0 :                 FatalError("Error deserializing Union type");
     864           0 :                 return false;
     865             :             }
     866             :             // Sentinel = 'Tvoid_t'
     867           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     868           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     869           0 :                 return false;
     870             :             }
     871           0 :             return true;
     872             :         }
     873             :     case type__::TInputStreamParams:
     874             :         {
     875           0 :             InputStreamParams tmp = InputStreamParams();
     876           0 :             (*(v__)) = tmp;
     877           0 :             if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
     878           0 :                 FatalError("Error deserializing Union type");
     879           0 :                 return false;
     880             :             }
     881             :             // Sentinel = 'TInputStreamParams'
     882           0 :             if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
     883           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     884           0 :                 return false;
     885             :             }
     886           0 :             return true;
     887             :         }
     888             :     default:
     889             :         {
     890           0 :             FatalError("unknown union type");
     891           0 :             return false;
     892             :         }
     893             :     }
     894             : }
     895             : 
     896           0 : auto PCacheChild::Write(
     897             :         const IPCRemoteStream& v__,
     898             :         Message* msg__) -> void
     899             : {
     900           0 :     Write((v__).delayedStart(), msg__);
     901             :     // Sentinel = 'delayedStart'
     902           0 :     (msg__)->WriteSentinel(1491822294);
     903           0 :     Write((v__).stream(), msg__);
     904             :     // Sentinel = 'stream'
     905           0 :     (msg__)->WriteSentinel(4152748422);
     906           0 : }
     907             : 
     908           0 : auto PCacheChild::Read(
     909             :         IPCRemoteStream* v__,
     910             :         const Message* msg__,
     911             :         PickleIterator* iter__) -> bool
     912             : {
     913           0 :     if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
     914           0 :         FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     915           0 :         return false;
     916             :     }
     917             :     // Sentinel = 'delayedStart'
     918           0 :     if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
     919           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     920           0 :         return false;
     921             :     }
     922           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
     923           0 :         FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     924           0 :         return false;
     925             :     }
     926             :     // Sentinel = 'stream'
     927           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
     928           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     929           0 :         return false;
     930             :     }
     931           0 :     return true;
     932             : }
     933             : 
     934           0 : auto PCacheChild::Write(
     935             :         const CacheMatchAllArgs& v__,
     936             :         Message* msg__) -> void
     937             : {
     938           0 :     Write((v__).requestOrVoid(), msg__);
     939             :     // Sentinel = 'requestOrVoid'
     940           0 :     (msg__)->WriteSentinel(3100919755);
     941           0 :     Write((v__).params(), msg__);
     942             :     // Sentinel = 'params'
     943           0 :     (msg__)->WriteSentinel(1677790004);
     944           0 : }
     945             : 
     946           0 : auto PCacheChild::Read(
     947             :         CacheMatchAllArgs* v__,
     948             :         const Message* msg__,
     949             :         PickleIterator* iter__) -> bool
     950             : {
     951           0 :     if ((!(Read((&((v__)->requestOrVoid())), msg__, iter__)))) {
     952           0 :         FatalError("Error deserializing 'requestOrVoid' (CacheRequestOrVoid) member of 'CacheMatchAllArgs'");
     953           0 :         return false;
     954             :     }
     955             :     // Sentinel = 'requestOrVoid'
     956           0 :     if ((!((msg__)->ReadSentinel(iter__, 3100919755)))) {
     957           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestOrVoid' (CacheRequestOrVoid) member of 'CacheMatchAllArgs'");
     958           0 :         return false;
     959             :     }
     960           0 :     if ((!(Read((&((v__)->params())), msg__, iter__)))) {
     961           0 :         FatalError("Error deserializing 'params' (CacheQueryParams) member of 'CacheMatchAllArgs'");
     962           0 :         return false;
     963             :     }
     964             :     // Sentinel = 'params'
     965           0 :     if ((!((msg__)->ReadSentinel(iter__, 1677790004)))) {
     966           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'params' (CacheQueryParams) member of 'CacheMatchAllArgs'");
     967           0 :         return false;
     968             :     }
     969           0 :     return true;
     970             : }
     971             : 
     972           0 : auto PCacheChild::Write(
     973             :         const CacheReadStreamOrVoid& v__,
     974             :         Message* msg__) -> void
     975             : {
     976             :     typedef CacheReadStreamOrVoid type__;
     977           0 :     Write(int((v__).type()), msg__);
     978             :     // Sentinel = 'CacheReadStreamOrVoid'
     979           0 :     (msg__)->WriteSentinel(2746523334);
     980             : 
     981           0 :     switch ((v__).type()) {
     982             :     case type__::Tvoid_t:
     983             :         {
     984           0 :             Write((v__).get_void_t(), msg__);
     985             :             // Sentinel = 'Tvoid_t'
     986           0 :             (msg__)->WriteSentinel(3041273328);
     987           0 :             return;
     988             :         }
     989             :     case type__::TCacheReadStream:
     990             :         {
     991           0 :             Write((v__).get_CacheReadStream(), msg__);
     992             :             // Sentinel = 'TCacheReadStream'
     993           0 :             (msg__)->WriteSentinel(1898450890);
     994           0 :             return;
     995             :         }
     996             :     default:
     997             :         {
     998           0 :             FatalError("unknown union type");
     999           0 :             return;
    1000             :         }
    1001             :     }
    1002             : }
    1003             : 
    1004           0 : auto PCacheChild::Read(
    1005             :         CacheReadStreamOrVoid* v__,
    1006             :         const Message* msg__,
    1007             :         PickleIterator* iter__) -> bool
    1008             : {
    1009             :     typedef CacheReadStreamOrVoid type__;
    1010             :     int type;
    1011           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1012           0 :         mozilla::ipc::UnionTypeReadError("CacheReadStreamOrVoid");
    1013           0 :         return false;
    1014             :     }
    1015             :     // Sentinel = 'CacheReadStreamOrVoid'
    1016           0 :     if ((!((msg__)->ReadSentinel(iter__, 2746523334)))) {
    1017           0 :         mozilla::ipc::SentinelReadError("CacheReadStreamOrVoid");
    1018           0 :         return false;
    1019             :     }
    1020             : 
    1021           0 :     switch (type) {
    1022             :     case type__::Tvoid_t:
    1023             :         {
    1024             :             void_t tmp = void_t();
    1025           0 :             (*(v__)) = tmp;
    1026           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1027           0 :                 FatalError("Error deserializing Union type");
    1028           0 :                 return false;
    1029             :             }
    1030             :             // Sentinel = 'Tvoid_t'
    1031           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1032           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1033           0 :                 return false;
    1034             :             }
    1035           0 :             return true;
    1036             :         }
    1037             :     case type__::TCacheReadStream:
    1038             :         {
    1039           0 :             CacheReadStream tmp = CacheReadStream();
    1040           0 :             (*(v__)) = tmp;
    1041           0 :             if ((!(Read((&((v__)->get_CacheReadStream())), msg__, iter__)))) {
    1042           0 :                 FatalError("Error deserializing Union type");
    1043           0 :                 return false;
    1044             :             }
    1045             :             // Sentinel = 'TCacheReadStream'
    1046           0 :             if ((!((msg__)->ReadSentinel(iter__, 1898450890)))) {
    1047           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1048           0 :                 return false;
    1049             :             }
    1050           0 :             return true;
    1051             :         }
    1052             :     default:
    1053             :         {
    1054           0 :             FatalError("unknown union type");
    1055           0 :             return false;
    1056             :         }
    1057             :     }
    1058             : }
    1059             : 
    1060           0 : auto PCacheChild::Write(
    1061             :         const FileInputStreamParams& v__,
    1062             :         Message* msg__) -> void
    1063             : {
    1064           0 :     Write((v__).fileDescriptorIndex(), msg__);
    1065             :     // Sentinel = 'fileDescriptorIndex'
    1066           0 :     (msg__)->WriteSentinel(587329112);
    1067           0 :     Write((v__).behaviorFlags(), msg__);
    1068             :     // Sentinel = 'behaviorFlags'
    1069           0 :     (msg__)->WriteSentinel(2404401962);
    1070           0 :     Write((v__).ioFlags(), msg__);
    1071             :     // Sentinel = 'ioFlags'
    1072           0 :     (msg__)->WriteSentinel(1483009730);
    1073           0 : }
    1074             : 
    1075           0 : auto PCacheChild::Read(
    1076             :         FileInputStreamParams* v__,
    1077             :         const Message* msg__,
    1078             :         PickleIterator* iter__) -> bool
    1079             : {
    1080           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    1081           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
    1082           0 :         return false;
    1083             :     }
    1084             :     // Sentinel = 'fileDescriptorIndex'
    1085           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    1086           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
    1087           0 :         return false;
    1088             :     }
    1089           0 :     if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
    1090           0 :         FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
    1091           0 :         return false;
    1092             :     }
    1093             :     // Sentinel = 'behaviorFlags'
    1094           0 :     if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
    1095           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
    1096           0 :         return false;
    1097             :     }
    1098           0 :     if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
    1099           0 :         FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
    1100           0 :         return false;
    1101             :     }
    1102             :     // Sentinel = 'ioFlags'
    1103           0 :     if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
    1104           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
    1105           0 :         return false;
    1106             :     }
    1107           0 :     return true;
    1108             : }
    1109             : 
    1110           0 : auto PCacheChild::Write(
    1111             :         const StorageMatchArgs& v__,
    1112             :         Message* msg__) -> void
    1113             : {
    1114           0 :     Write((v__).request(), msg__);
    1115             :     // Sentinel = 'request'
    1116           0 :     (msg__)->WriteSentinel(2366856172);
    1117           0 :     Write((v__).params(), msg__);
    1118             :     // Sentinel = 'params'
    1119           0 :     (msg__)->WriteSentinel(1677790004);
    1120           0 : }
    1121             : 
    1122           0 : auto PCacheChild::Read(
    1123             :         StorageMatchArgs* v__,
    1124             :         const Message* msg__,
    1125             :         PickleIterator* iter__) -> bool
    1126             : {
    1127           0 :     if ((!(Read((&((v__)->request())), msg__, iter__)))) {
    1128           0 :         FatalError("Error deserializing 'request' (CacheRequest) member of 'StorageMatchArgs'");
    1129           0 :         return false;
    1130             :     }
    1131             :     // Sentinel = 'request'
    1132           0 :     if ((!((msg__)->ReadSentinel(iter__, 2366856172)))) {
    1133           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'request' (CacheRequest) member of 'StorageMatchArgs'");
    1134           0 :         return false;
    1135             :     }
    1136           0 :     if ((!(Read((&((v__)->params())), msg__, iter__)))) {
    1137           0 :         FatalError("Error deserializing 'params' (CacheQueryParams) member of 'StorageMatchArgs'");
    1138           0 :         return false;
    1139             :     }
    1140             :     // Sentinel = 'params'
    1141           0 :     if ((!((msg__)->ReadSentinel(iter__, 1677790004)))) {
    1142           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'params' (CacheQueryParams) member of 'StorageMatchArgs'");
    1143           0 :         return false;
    1144             :     }
    1145           0 :     return true;
    1146             : }
    1147             : 
    1148           0 : auto PCacheChild::Write(
    1149             :         const IPCBlobInputStreamParams& v__,
    1150             :         Message* msg__) -> void
    1151             : {
    1152           0 :     Write((v__).id(), msg__);
    1153             :     // Sentinel = 'id'
    1154           0 :     (msg__)->WriteSentinel(2794505629);
    1155           0 : }
    1156             : 
    1157           0 : auto PCacheChild::Read(
    1158             :         IPCBlobInputStreamParams* v__,
    1159             :         const Message* msg__,
    1160             :         PickleIterator* iter__) -> bool
    1161             : {
    1162           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
    1163           0 :         FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
    1164           0 :         return false;
    1165             :     }
    1166             :     // Sentinel = 'id'
    1167           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
    1168           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
    1169           0 :         return false;
    1170             :     }
    1171           0 :     return true;
    1172             : }
    1173             : 
    1174           0 : auto PCacheChild::Write(
    1175             :         const CacheRequestOrVoid& v__,
    1176             :         Message* msg__) -> void
    1177             : {
    1178             :     typedef CacheRequestOrVoid type__;
    1179           0 :     Write(int((v__).type()), msg__);
    1180             :     // Sentinel = 'CacheRequestOrVoid'
    1181           0 :     (msg__)->WriteSentinel(468526770);
    1182             : 
    1183           0 :     switch ((v__).type()) {
    1184             :     case type__::Tvoid_t:
    1185             :         {
    1186           0 :             Write((v__).get_void_t(), msg__);
    1187             :             // Sentinel = 'Tvoid_t'
    1188           0 :             (msg__)->WriteSentinel(3041273328);
    1189           0 :             return;
    1190             :         }
    1191             :     case type__::TCacheRequest:
    1192             :         {
    1193           0 :             Write((v__).get_CacheRequest(), msg__);
    1194             :             // Sentinel = 'TCacheRequest'
    1195           0 :             (msg__)->WriteSentinel(3359498676);
    1196           0 :             return;
    1197             :         }
    1198             :     default:
    1199             :         {
    1200           0 :             FatalError("unknown union type");
    1201           0 :             return;
    1202             :         }
    1203             :     }
    1204             : }
    1205             : 
    1206           0 : auto PCacheChild::Read(
    1207             :         CacheRequestOrVoid* v__,
    1208             :         const Message* msg__,
    1209             :         PickleIterator* iter__) -> bool
    1210             : {
    1211             :     typedef CacheRequestOrVoid type__;
    1212             :     int type;
    1213           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1214           0 :         mozilla::ipc::UnionTypeReadError("CacheRequestOrVoid");
    1215           0 :         return false;
    1216             :     }
    1217             :     // Sentinel = 'CacheRequestOrVoid'
    1218           0 :     if ((!((msg__)->ReadSentinel(iter__, 468526770)))) {
    1219           0 :         mozilla::ipc::SentinelReadError("CacheRequestOrVoid");
    1220           0 :         return false;
    1221             :     }
    1222             : 
    1223           0 :     switch (type) {
    1224             :     case type__::Tvoid_t:
    1225             :         {
    1226             :             void_t tmp = void_t();
    1227           0 :             (*(v__)) = tmp;
    1228           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    1229           0 :                 FatalError("Error deserializing Union type");
    1230           0 :                 return false;
    1231             :             }
    1232             :             // Sentinel = 'Tvoid_t'
    1233           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    1234           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1235           0 :                 return false;
    1236             :             }
    1237           0 :             return true;
    1238             :         }
    1239             :     case type__::TCacheRequest:
    1240             :         {
    1241           0 :             CacheRequest tmp = CacheRequest();
    1242           0 :             (*(v__)) = tmp;
    1243           0 :             if ((!(Read((&((v__)->get_CacheRequest())), msg__, iter__)))) {
    1244           0 :                 FatalError("Error deserializing Union type");
    1245           0 :                 return false;
    1246             :             }
    1247             :             // Sentinel = 'TCacheRequest'
    1248           0 :             if ((!((msg__)->ReadSentinel(iter__, 3359498676)))) {
    1249           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1250           0 :                 return false;
    1251             :             }
    1252           0 :             return true;
    1253             :         }
    1254             :     default:
    1255             :         {
    1256           0 :             FatalError("unknown union type");
    1257           0 :             return false;
    1258             :         }
    1259             :     }
    1260             : }
    1261             : 
    1262           0 : auto PCacheChild::Write(
    1263             :         const CacheMatchArgs& v__,
    1264             :         Message* msg__) -> void
    1265             : {
    1266           0 :     Write((v__).request(), msg__);
    1267             :     // Sentinel = 'request'
    1268           0 :     (msg__)->WriteSentinel(2366856172);
    1269           0 :     Write((v__).params(), msg__);
    1270             :     // Sentinel = 'params'
    1271           0 :     (msg__)->WriteSentinel(1677790004);
    1272           0 : }
    1273             : 
    1274           0 : auto PCacheChild::Read(
    1275             :         CacheMatchArgs* v__,
    1276             :         const Message* msg__,
    1277             :         PickleIterator* iter__) -> bool
    1278             : {
    1279           0 :     if ((!(Read((&((v__)->request())), msg__, iter__)))) {
    1280           0 :         FatalError("Error deserializing 'request' (CacheRequest) member of 'CacheMatchArgs'");
    1281           0 :         return false;
    1282             :     }
    1283             :     // Sentinel = 'request'
    1284           0 :     if ((!((msg__)->ReadSentinel(iter__, 2366856172)))) {
    1285           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'request' (CacheRequest) member of 'CacheMatchArgs'");
    1286           0 :         return false;
    1287             :     }
    1288           0 :     if ((!(Read((&((v__)->params())), msg__, iter__)))) {
    1289           0 :         FatalError("Error deserializing 'params' (CacheQueryParams) member of 'CacheMatchArgs'");
    1290           0 :         return false;
    1291             :     }
    1292             :     // Sentinel = 'params'
    1293           0 :     if ((!((msg__)->ReadSentinel(iter__, 1677790004)))) {
    1294           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'params' (CacheQueryParams) member of 'CacheMatchArgs'");
    1295           0 :         return false;
    1296             :     }
    1297           0 :     return true;
    1298             : }
    1299             : 
    1300           0 : auto PCacheChild::Write(
    1301             :         const CacheResponse& v__,
    1302             :         Message* msg__) -> void
    1303             : {
    1304           0 :     Write((v__).type(), msg__);
    1305             :     // Sentinel = 'type'
    1306           0 :     (msg__)->WriteSentinel(2982068540);
    1307           0 :     Write((v__).urlList(), msg__);
    1308             :     // Sentinel = 'urlList'
    1309           0 :     (msg__)->WriteSentinel(2130903160);
    1310           0 :     Write((v__).status(), msg__);
    1311             :     // Sentinel = 'status'
    1312           0 :     (msg__)->WriteSentinel(3714608576);
    1313           0 :     Write((v__).statusText(), msg__);
    1314             :     // Sentinel = 'statusText'
    1315           0 :     (msg__)->WriteSentinel(2492908073);
    1316           0 :     Write((v__).headers(), msg__);
    1317             :     // Sentinel = 'headers'
    1318           0 :     (msg__)->WriteSentinel(4284175217);
    1319           0 :     Write((v__).headersGuard(), msg__);
    1320             :     // Sentinel = 'headersGuard'
    1321           0 :     (msg__)->WriteSentinel(2295054805);
    1322           0 :     Write((v__).body(), msg__);
    1323             :     // Sentinel = 'body'
    1324           0 :     (msg__)->WriteSentinel(2829965504);
    1325           0 :     Write((v__).channelInfo(), msg__);
    1326             :     // Sentinel = 'channelInfo'
    1327           0 :     (msg__)->WriteSentinel(2311115806);
    1328           0 :     Write((v__).principalInfo(), msg__);
    1329             :     // Sentinel = 'principalInfo'
    1330           0 :     (msg__)->WriteSentinel(3386633731);
    1331           0 : }
    1332             : 
    1333           0 : auto PCacheChild::Read(
    1334             :         CacheResponse* v__,
    1335             :         const Message* msg__,
    1336             :         PickleIterator* iter__) -> bool
    1337             : {
    1338           0 :     if ((!(Read((&((v__)->type())), msg__, iter__)))) {
    1339           0 :         FatalError("Error deserializing 'type' (ResponseType) member of 'CacheResponse'");
    1340           0 :         return false;
    1341             :     }
    1342             :     // Sentinel = 'type'
    1343           0 :     if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
    1344           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'type' (ResponseType) member of 'CacheResponse'");
    1345           0 :         return false;
    1346             :     }
    1347           0 :     if ((!(Read((&((v__)->urlList())), msg__, iter__)))) {
    1348           0 :         FatalError("Error deserializing 'urlList' (nsCString[]) member of 'CacheResponse'");
    1349           0 :         return false;
    1350             :     }
    1351             :     // Sentinel = 'urlList'
    1352           0 :     if ((!((msg__)->ReadSentinel(iter__, 2130903160)))) {
    1353           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'urlList' (nsCString[]) member of 'CacheResponse'");
    1354           0 :         return false;
    1355             :     }
    1356           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    1357           0 :         FatalError("Error deserializing 'status' (uint32_t) member of 'CacheResponse'");
    1358           0 :         return false;
    1359             :     }
    1360             :     // Sentinel = 'status'
    1361           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    1362           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (uint32_t) member of 'CacheResponse'");
    1363           0 :         return false;
    1364             :     }
    1365           0 :     if ((!(Read((&((v__)->statusText())), msg__, iter__)))) {
    1366           0 :         FatalError("Error deserializing 'statusText' (nsCString) member of 'CacheResponse'");
    1367           0 :         return false;
    1368             :     }
    1369             :     // Sentinel = 'statusText'
    1370           0 :     if ((!((msg__)->ReadSentinel(iter__, 2492908073)))) {
    1371           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'statusText' (nsCString) member of 'CacheResponse'");
    1372           0 :         return false;
    1373             :     }
    1374           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
    1375           0 :         FatalError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheResponse'");
    1376           0 :         return false;
    1377             :     }
    1378             :     // Sentinel = 'headers'
    1379           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
    1380           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeadersEntry[]) member of 'CacheResponse'");
    1381           0 :         return false;
    1382             :     }
    1383           0 :     if ((!(Read((&((v__)->headersGuard())), msg__, iter__)))) {
    1384           0 :         FatalError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheResponse'");
    1385           0 :         return false;
    1386             :     }
    1387             :     // Sentinel = 'headersGuard'
    1388           0 :     if ((!((msg__)->ReadSentinel(iter__, 2295054805)))) {
    1389           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headersGuard' (HeadersGuardEnum) member of 'CacheResponse'");
    1390           0 :         return false;
    1391             :     }
    1392           0 :     if ((!(Read((&((v__)->body())), msg__, iter__)))) {
    1393           0 :         FatalError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheResponse'");
    1394           0 :         return false;
    1395             :     }
    1396             :     // Sentinel = 'body'
    1397           0 :     if ((!((msg__)->ReadSentinel(iter__, 2829965504)))) {
    1398           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'body' (CacheReadStreamOrVoid) member of 'CacheResponse'");
    1399           0 :         return false;
    1400             :     }
    1401           0 :     if ((!(Read((&((v__)->channelInfo())), msg__, iter__)))) {
    1402           0 :         FatalError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'CacheResponse'");
    1403           0 :         return false;
    1404             :     }
    1405             :     // Sentinel = 'channelInfo'
    1406           0 :     if ((!((msg__)->ReadSentinel(iter__, 2311115806)))) {
    1407           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'channelInfo' (IPCChannelInfo) member of 'CacheResponse'");
    1408           0 :         return false;
    1409             :     }
    1410           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
    1411           0 :         FatalError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'CacheResponse'");
    1412           0 :         return false;
    1413             :     }
    1414             :     // Sentinel = 'principalInfo'
    1415           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
    1416           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (OptionalPrincipalInfo) member of 'CacheResponse'");
    1417           0 :         return false;
    1418             :     }
    1419           0 :     return true;
    1420             : }
    1421             : 
    1422           0 : auto PCacheChild::Write(
    1423             :         const ExpandedPrincipalInfo& v__,
    1424             :         Message* msg__) -> void
    1425             : {
    1426           0 :     Write((v__).attrs(), msg__);
    1427             :     // Sentinel = 'attrs'
    1428           0 :     (msg__)->WriteSentinel(3014987797);
    1429           0 :     Write((v__).whitelist(), msg__);
    1430             :     // Sentinel = 'whitelist'
    1431           0 :     (msg__)->WriteSentinel(3731637258);
    1432           0 : }
    1433             : 
    1434           0 : auto PCacheChild::Read(
    1435             :         ExpandedPrincipalInfo* v__,
    1436             :         const Message* msg__,
    1437             :         PickleIterator* iter__) -> bool
    1438             : {
    1439           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1440           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1441           0 :         return false;
    1442             :     }
    1443             :     // Sentinel = 'attrs'
    1444           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1445           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
    1446           0 :         return false;
    1447             :     }
    1448           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
    1449           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1450           0 :         return false;
    1451             :     }
    1452             :     // Sentinel = 'whitelist'
    1453           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
    1454           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
    1455           0 :         return false;
    1456             :     }
    1457           0 :     return true;
    1458             : }
    1459             : 
    1460           0 : auto PCacheChild::Write(
    1461             :         const CacheQueryParams& v__,
    1462             :         Message* msg__) -> void
    1463             : {
    1464           0 :     Write((v__).ignoreSearch(), msg__);
    1465             :     // Sentinel = 'ignoreSearch'
    1466           0 :     (msg__)->WriteSentinel(1536835730);
    1467           0 :     Write((v__).ignoreMethod(), msg__);
    1468             :     // Sentinel = 'ignoreMethod'
    1469           0 :     (msg__)->WriteSentinel(4070609801);
    1470           0 :     Write((v__).ignoreVary(), msg__);
    1471             :     // Sentinel = 'ignoreVary'
    1472           0 :     (msg__)->WriteSentinel(712195836);
    1473           0 :     Write((v__).cacheNameSet(), msg__);
    1474             :     // Sentinel = 'cacheNameSet'
    1475           0 :     (msg__)->WriteSentinel(2553624785);
    1476           0 :     Write((v__).cacheName(), msg__);
    1477             :     // Sentinel = 'cacheName'
    1478           0 :     (msg__)->WriteSentinel(3398830226);
    1479           0 : }
    1480             : 
    1481           0 : auto PCacheChild::Read(
    1482             :         CacheQueryParams* v__,
    1483             :         const Message* msg__,
    1484             :         PickleIterator* iter__) -> bool
    1485             : {
    1486           0 :     if ((!(Read((&((v__)->ignoreSearch())), msg__, iter__)))) {
    1487           0 :         FatalError("Error deserializing 'ignoreSearch' (bool) member of 'CacheQueryParams'");
    1488           0 :         return false;
    1489             :     }
    1490             :     // Sentinel = 'ignoreSearch'
    1491           0 :     if ((!((msg__)->ReadSentinel(iter__, 1536835730)))) {
    1492           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ignoreSearch' (bool) member of 'CacheQueryParams'");
    1493           0 :         return false;
    1494             :     }
    1495           0 :     if ((!(Read((&((v__)->ignoreMethod())), msg__, iter__)))) {
    1496           0 :         FatalError("Error deserializing 'ignoreMethod' (bool) member of 'CacheQueryParams'");
    1497           0 :         return false;
    1498             :     }
    1499             :     // Sentinel = 'ignoreMethod'
    1500           0 :     if ((!((msg__)->ReadSentinel(iter__, 4070609801)))) {
    1501           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ignoreMethod' (bool) member of 'CacheQueryParams'");
    1502           0 :         return false;
    1503             :     }
    1504           0 :     if ((!(Read((&((v__)->ignoreVary())), msg__, iter__)))) {
    1505           0 :         FatalError("Error deserializing 'ignoreVary' (bool) member of 'CacheQueryParams'");
    1506           0 :         return false;
    1507             :     }
    1508             :     // Sentinel = 'ignoreVary'
    1509           0 :     if ((!((msg__)->ReadSentinel(iter__, 712195836)))) {
    1510           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ignoreVary' (bool) member of 'CacheQueryParams'");
    1511           0 :         return false;
    1512             :     }
    1513           0 :     if ((!(Read((&((v__)->cacheNameSet())), msg__, iter__)))) {
    1514           0 :         FatalError("Error deserializing 'cacheNameSet' (bool) member of 'CacheQueryParams'");
    1515           0 :         return false;
    1516             :     }
    1517             :     // Sentinel = 'cacheNameSet'
    1518           0 :     if ((!((msg__)->ReadSentinel(iter__, 2553624785)))) {
    1519           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cacheNameSet' (bool) member of 'CacheQueryParams'");
    1520           0 :         return false;
    1521             :     }
    1522           0 :     if ((!(Read((&((v__)->cacheName())), msg__, iter__)))) {
    1523           0 :         FatalError("Error deserializing 'cacheName' (nsString) member of 'CacheQueryParams'");
    1524           0 :         return false;
    1525             :     }
    1526             :     // Sentinel = 'cacheName'
    1527           0 :     if ((!((msg__)->ReadSentinel(iter__, 3398830226)))) {
    1528           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'cacheName' (nsString) member of 'CacheQueryParams'");
    1529           0 :         return false;
    1530             :     }
    1531           0 :     return true;
    1532             : }
    1533             : 
    1534           0 : auto PCacheChild::Write(
    1535             :         const InputStreamParamsWithFds& v__,
    1536             :         Message* msg__) -> void
    1537             : {
    1538           0 :     Write((v__).stream(), msg__);
    1539             :     // Sentinel = 'stream'
    1540           0 :     (msg__)->WriteSentinel(4152748422);
    1541           0 :     Write((v__).optionalFds(), msg__);
    1542             :     // Sentinel = 'optionalFds'
    1543           0 :     (msg__)->WriteSentinel(1021803302);
    1544           0 : }
    1545             : 
    1546           0 : auto PCacheChild::Read(
    1547             :         InputStreamParamsWithFds* v__,
    1548             :         const Message* msg__,
    1549             :         PickleIterator* iter__) -> bool
    1550             : {
    1551           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1552           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1553           0 :         return false;
    1554             :     }
    1555             :     // Sentinel = 'stream'
    1556           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1557           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1558           0 :         return false;
    1559             :     }
    1560           0 :     if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
    1561           0 :         FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1562           0 :         return false;
    1563             :     }
    1564             :     // Sentinel = 'optionalFds'
    1565           0 :     if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
    1566           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1567           0 :         return false;
    1568             :     }
    1569           0 :     return true;
    1570             : }
    1571             : 
    1572           0 : auto PCacheChild::Write(
    1573             :         const nsTArray<FileDescriptor>& v__,
    1574             :         Message* msg__) -> void
    1575             : {
    1576           0 :     uint32_t length = (v__).Length();
    1577           0 :     Write(length, msg__);
    1578             :     // Sentinel = ('length', 'FileDescriptor[]')
    1579           0 :     (msg__)->WriteSentinel(1697726450);
    1580             : 
    1581           0 :     for (auto& elem : v__) {
    1582           0 :         Write(elem, msg__);
    1583             :         // Sentinel = 'FileDescriptor[]'
    1584           0 :         (msg__)->WriteSentinel(1630221245);
    1585             :     }
    1586           0 : }
    1587             : 
    1588           0 : auto PCacheChild::Read(
    1589             :         nsTArray<FileDescriptor>* v__,
    1590             :         const Message* msg__,
    1591             :         PickleIterator* iter__) -> bool
    1592             : {
    1593           0 :     nsTArray<FileDescriptor> fa;
    1594             :     uint32_t length;
    1595           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1596           0 :         mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
    1597           0 :         return false;
    1598             :     }
    1599             :     // Sentinel = ('length', 'FileDescriptor[]')
    1600           0 :     if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
    1601           0 :         mozilla::ipc::SentinelReadError("FileDescriptor[]");
    1602           0 :         return false;
    1603             :     }
    1604             : 
    1605           0 :     FileDescriptor* elems = (fa).AppendElements(length);
    1606           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1607           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1608           0 :             FatalError("Error deserializing 'FileDescriptor[i]'");
    1609           0 :             return false;
    1610             :         }
    1611             :         // Sentinel = 'FileDescriptor[]'
    1612           0 :         if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
    1613           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
    1614           0 :             return false;
    1615             :         }
    1616             :     }
    1617           0 :     (v__)->SwapElements(fa);
    1618           0 :     return true;
    1619             : }
    1620             : 
    1621           0 : auto PCacheChild::Write(
    1622             :         const CacheOpArgs& v__,
    1623             :         Message* msg__) -> void
    1624             : {
    1625             :     typedef CacheOpArgs type__;
    1626           0 :     Write(int((v__).type()), msg__);
    1627             :     // Sentinel = 'CacheOpArgs'
    1628           0 :     (msg__)->WriteSentinel(1657801543);
    1629             : 
    1630           0 :     switch ((v__).type()) {
    1631             :     case type__::TCacheMatchArgs:
    1632             :         {
    1633           0 :             Write((v__).get_CacheMatchArgs(), msg__);
    1634             :             // Sentinel = 'TCacheMatchArgs'
    1635           0 :             (msg__)->WriteSentinel(4104432449);
    1636           0 :             return;
    1637             :         }
    1638             :     case type__::TCacheMatchAllArgs:
    1639             :         {
    1640           0 :             Write((v__).get_CacheMatchAllArgs(), msg__);
    1641             :             // Sentinel = 'TCacheMatchAllArgs'
    1642           0 :             (msg__)->WriteSentinel(3931345019);
    1643           0 :             return;
    1644             :         }
    1645             :     case type__::TCachePutAllArgs:
    1646             :         {
    1647           0 :             Write((v__).get_CachePutAllArgs(), msg__);
    1648             :             // Sentinel = 'TCachePutAllArgs'
    1649           0 :             (msg__)->WriteSentinel(2522279573);
    1650           0 :             return;
    1651             :         }
    1652             :     case type__::TCacheDeleteArgs:
    1653             :         {
    1654           0 :             Write((v__).get_CacheDeleteArgs(), msg__);
    1655             :             // Sentinel = 'TCacheDeleteArgs'
    1656           0 :             (msg__)->WriteSentinel(155480544);
    1657           0 :             return;
    1658             :         }
    1659             :     case type__::TCacheKeysArgs:
    1660             :         {
    1661           0 :             Write((v__).get_CacheKeysArgs(), msg__);
    1662             :             // Sentinel = 'TCacheKeysArgs'
    1663           0 :             (msg__)->WriteSentinel(1697385223);
    1664           0 :             return;
    1665             :         }
    1666             :     case type__::TStorageMatchArgs:
    1667             :         {
    1668           0 :             Write((v__).get_StorageMatchArgs(), msg__);
    1669             :             // Sentinel = 'TStorageMatchArgs'
    1670           0 :             (msg__)->WriteSentinel(2175250132);
    1671           0 :             return;
    1672             :         }
    1673             :     case type__::TStorageHasArgs:
    1674             :         {
    1675           0 :             Write((v__).get_StorageHasArgs(), msg__);
    1676             :             // Sentinel = 'TStorageHasArgs'
    1677           0 :             (msg__)->WriteSentinel(3601488477);
    1678           0 :             return;
    1679             :         }
    1680             :     case type__::TStorageOpenArgs:
    1681             :         {
    1682           0 :             Write((v__).get_StorageOpenArgs(), msg__);
    1683             :             // Sentinel = 'TStorageOpenArgs'
    1684           0 :             (msg__)->WriteSentinel(335380472);
    1685           0 :             return;
    1686             :         }
    1687             :     case type__::TStorageDeleteArgs:
    1688             :         {
    1689           0 :             Write((v__).get_StorageDeleteArgs(), msg__);
    1690             :             // Sentinel = 'TStorageDeleteArgs'
    1691           0 :             (msg__)->WriteSentinel(1905964251);
    1692           0 :             return;
    1693             :         }
    1694             :     case type__::TStorageKeysArgs:
    1695             :         {
    1696           0 :             Write((v__).get_StorageKeysArgs(), msg__);
    1697             :             // Sentinel = 'TStorageKeysArgs'
    1698           0 :             (msg__)->WriteSentinel(2159819388);
    1699           0 :             return;
    1700             :         }
    1701             :     default:
    1702             :         {
    1703           0 :             FatalError("unknown union type");
    1704           0 :             return;
    1705             :         }
    1706             :     }
    1707             : }
    1708             : 
    1709           0 : auto PCacheChild::Read(
    1710             :         CacheOpArgs* v__,
    1711             :         const Message* msg__,
    1712             :         PickleIterator* iter__) -> bool
    1713             : {
    1714             :     typedef CacheOpArgs type__;
    1715             :     int type;
    1716           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1717           0 :         mozilla::ipc::UnionTypeReadError("CacheOpArgs");
    1718           0 :         return false;
    1719             :     }
    1720             :     // Sentinel = 'CacheOpArgs'
    1721           0 :     if ((!((msg__)->ReadSentinel(iter__, 1657801543)))) {
    1722           0 :         mozilla::ipc::SentinelReadError("CacheOpArgs");
    1723           0 :         return false;
    1724             :     }
    1725             : 
    1726           0 :     switch (type) {
    1727             :     case type__::TCacheMatchArgs:
    1728             :         {
    1729           0 :             CacheMatchArgs tmp = CacheMatchArgs();
    1730           0 :             (*(v__)) = tmp;
    1731           0 :             if ((!(Read((&((v__)->get_CacheMatchArgs())), msg__, iter__)))) {
    1732           0 :                 FatalError("Error deserializing Union type");
    1733           0 :                 return false;
    1734             :             }
    1735             :             // Sentinel = 'TCacheMatchArgs'
    1736           0 :             if ((!((msg__)->ReadSentinel(iter__, 4104432449)))) {
    1737           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1738           0 :                 return false;
    1739             :             }
    1740           0 :             return true;
    1741             :         }
    1742             :     case type__::TCacheMatchAllArgs:
    1743             :         {
    1744           0 :             CacheMatchAllArgs tmp = CacheMatchAllArgs();
    1745           0 :             (*(v__)) = tmp;
    1746           0 :             if ((!(Read((&((v__)->get_CacheMatchAllArgs())), msg__, iter__)))) {
    1747           0 :                 FatalError("Error deserializing Union type");
    1748           0 :                 return false;
    1749             :             }
    1750             :             // Sentinel = 'TCacheMatchAllArgs'
    1751           0 :             if ((!((msg__)->ReadSentinel(iter__, 3931345019)))) {
    1752           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1753           0 :                 return false;
    1754             :             }
    1755           0 :             return true;
    1756             :         }
    1757             :     case type__::TCachePutAllArgs:
    1758             :         {
    1759           0 :             CachePutAllArgs tmp = CachePutAllArgs();
    1760           0 :             (*(v__)) = tmp;
    1761           0 :             if ((!(Read((&((v__)->get_CachePutAllArgs())), msg__, iter__)))) {
    1762           0 :                 FatalError("Error deserializing Union type");
    1763           0 :                 return false;
    1764             :             }
    1765             :             // Sentinel = 'TCachePutAllArgs'
    1766           0 :             if ((!((msg__)->ReadSentinel(iter__, 2522279573)))) {
    1767           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1768           0 :                 return false;
    1769             :             }
    1770           0 :             return true;
    1771             :         }
    1772             :     case type__::TCacheDeleteArgs:
    1773             :         {
    1774           0 :             CacheDeleteArgs tmp = CacheDeleteArgs();
    1775           0 :             (*(v__)) = tmp;
    1776           0 :             if ((!(Read((&((v__)->get_CacheDeleteArgs())), msg__, iter__)))) {
    1777           0 :                 FatalError("Error deserializing Union type");
    1778           0 :                 return false;
    1779             :             }
    1780             :             // Sentinel = 'TCacheDeleteArgs'
    1781           0 :             if ((!((msg__)->ReadSentinel(iter__, 155480544)))) {
    1782           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1783           0 :                 return false;
    1784             :             }
    1785           0 :             return true;
    1786             :         }
    1787             :     case type__::TCacheKeysArgs:
    1788             :         {
    1789           0 :             CacheKeysArgs tmp = CacheKeysArgs();
    1790           0 :             (*(v__)) = tmp;
    1791           0 :             if ((!(Read((&((v__)->get_CacheKeysArgs())), msg__, iter__)))) {
    1792           0 :                 FatalError("Error deserializing Union type");
    1793           0 :                 return false;
    1794             :             }
    1795             :             // Sentinel = 'TCacheKeysArgs'
    1796           0 :             if ((!((msg__)->ReadSentinel(iter__, 1697385223)))) {
    1797           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1798           0 :                 return false;
    1799             :             }
    1800           0 :             return true;
    1801             :         }
    1802             :     case type__::TStorageMatchArgs:
    1803             :         {
    1804           0 :             StorageMatchArgs tmp = StorageMatchArgs();
    1805           0 :             (*(v__)) = tmp;
    1806           0 :             if ((!(Read((&((v__)->get_StorageMatchArgs())), msg__, iter__)))) {
    1807           0 :                 FatalError("Error deserializing Union type");
    1808           0 :                 return false;
    1809             :             }
    1810             :             // Sentinel = 'TStorageMatchArgs'
    1811           0 :             if ((!((msg__)->ReadSentinel(iter__, 2175250132)))) {
    1812           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1813           0 :                 return false;
    1814             :             }
    1815           0 :             return true;
    1816             :         }
    1817             :     case type__::TStorageHasArgs:
    1818             :         {
    1819           0 :             StorageHasArgs tmp = StorageHasArgs();
    1820           0 :             (*(v__)) = tmp;
    1821           0 :             if ((!(Read((&((v__)->get_StorageHasArgs())), msg__, iter__)))) {
    1822           0 :                 FatalError("Error deserializing Union type");
    1823           0 :                 return false;
    1824             :             }
    1825             :             // Sentinel = 'TStorageHasArgs'
    1826           0 :             if ((!((msg__)->ReadSentinel(iter__, 3601488477)))) {
    1827           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1828           0 :                 return false;
    1829             :             }
    1830           0 :             return true;
    1831             :         }
    1832             :     case type__::TStorageOpenArgs:
    1833             :         {
    1834           0 :             StorageOpenArgs tmp = StorageOpenArgs();
    1835           0 :             (*(v__)) = tmp;
    1836           0 :             if ((!(Read((&((v__)->get_StorageOpenArgs())), msg__, iter__)))) {
    1837           0 :                 FatalError("Error deserializing Union type");
    1838           0 :                 return false;
    1839             :             }
    1840             :             // Sentinel = 'TStorageOpenArgs'
    1841           0 :             if ((!((msg__)->ReadSentinel(iter__, 335380472)))) {
    1842           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1843           0 :                 return false;
    1844             :             }
    1845           0 :             return true;
    1846             :         }
    1847             :     case type__::TStorageDeleteArgs:
    1848             :         {
    1849           0 :             StorageDeleteArgs tmp = StorageDeleteArgs();
    1850           0 :             (*(v__)) = tmp;
    1851           0 :             if ((!(Read((&((v__)->get_StorageDeleteArgs())), msg__, iter__)))) {
    1852           0 :                 FatalError("Error deserializing Union type");
    1853           0 :                 return false;
    1854             :             }
    1855             :             // Sentinel = 'TStorageDeleteArgs'
    1856           0 :             if ((!((msg__)->ReadSentinel(iter__, 1905964251)))) {
    1857           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1858           0 :                 return false;
    1859             :             }
    1860           0 :             return true;
    1861             :         }
    1862             :     case type__::TStorageKeysArgs:
    1863             :         {
    1864           0 :             StorageKeysArgs tmp = StorageKeysArgs();
    1865           0 :             (*(v__)) = tmp;
    1866           0 :             if ((!(Read((&((v__)->get_StorageKeysArgs())), msg__, iter__)))) {
    1867           0 :                 FatalError("Error deserializing Union type");
    1868           0 :                 return false;
    1869             :             }
    1870             :             // Sentinel = 'TStorageKeysArgs'
    1871           0 :             if ((!((msg__)->ReadSentinel(iter__, 2159819388)))) {
    1872           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1873           0 :                 return false;
    1874             :             }
    1875           0 :             return true;
    1876             :         }
    1877             :     default:
    1878             :         {
    1879           0 :             FatalError("unknown union type");
    1880           0 :             return false;
    1881             :         }
    1882             :     }
    1883             : }
    1884             : 
    1885           0 : auto PCacheChild::Write(
    1886             :         const PrincipalInfo& v__,
    1887             :         Message* msg__) -> void
    1888             : {
    1889             :     typedef PrincipalInfo type__;
    1890           0 :     Write(int((v__).type()), msg__);
    1891             :     // Sentinel = 'PrincipalInfo'
    1892           0 :     (msg__)->WriteSentinel(4194518819);
    1893             : 
    1894           0 :     switch ((v__).type()) {
    1895             :     case type__::TContentPrincipalInfo:
    1896             :         {
    1897           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
    1898             :             // Sentinel = 'TContentPrincipalInfo'
    1899           0 :             (msg__)->WriteSentinel(3677342258);
    1900           0 :             return;
    1901             :         }
    1902             :     case type__::TSystemPrincipalInfo:
    1903             :         {
    1904           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
    1905             :             // Sentinel = 'TSystemPrincipalInfo'
    1906           0 :             (msg__)->WriteSentinel(3590603679);
    1907           0 :             return;
    1908             :         }
    1909             :     case type__::TNullPrincipalInfo:
    1910             :         {
    1911           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
    1912             :             // Sentinel = 'TNullPrincipalInfo'
    1913           0 :             (msg__)->WriteSentinel(3477774965);
    1914           0 :             return;
    1915             :         }
    1916             :     case type__::TExpandedPrincipalInfo:
    1917             :         {
    1918           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
    1919             :             // Sentinel = 'TExpandedPrincipalInfo'
    1920           0 :             (msg__)->WriteSentinel(589324917);
    1921           0 :             return;
    1922             :         }
    1923             :     default:
    1924             :         {
    1925           0 :             FatalError("unknown union type");
    1926           0 :             return;
    1927             :         }
    1928             :     }
    1929             : }
    1930             : 
    1931           0 : auto PCacheChild::Read(
    1932             :         PrincipalInfo* v__,
    1933             :         const Message* msg__,
    1934             :         PickleIterator* iter__) -> bool
    1935             : {
    1936             :     typedef PrincipalInfo type__;
    1937             :     int type;
    1938           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1939           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
    1940           0 :         return false;
    1941             :     }
    1942             :     // Sentinel = 'PrincipalInfo'
    1943           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
    1944           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
    1945           0 :         return false;
    1946             :     }
    1947             : 
    1948           0 :     switch (type) {
    1949             :     case type__::TContentPrincipalInfo:
    1950             :         {
    1951           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
    1952           0 :             (*(v__)) = tmp;
    1953           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
    1954           0 :                 FatalError("Error deserializing Union type");
    1955           0 :                 return false;
    1956             :             }
    1957             :             // Sentinel = 'TContentPrincipalInfo'
    1958           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
    1959           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1960           0 :                 return false;
    1961             :             }
    1962           0 :             return true;
    1963             :         }
    1964             :     case type__::TSystemPrincipalInfo:
    1965             :         {
    1966           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
    1967           0 :             (*(v__)) = tmp;
    1968           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
    1969           0 :                 FatalError("Error deserializing Union type");
    1970           0 :                 return false;
    1971             :             }
    1972             :             // Sentinel = 'TSystemPrincipalInfo'
    1973           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
    1974           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1975           0 :                 return false;
    1976             :             }
    1977           0 :             return true;
    1978             :         }
    1979             :     case type__::TNullPrincipalInfo:
    1980             :         {
    1981           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
    1982           0 :             (*(v__)) = tmp;
    1983           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
    1984           0 :                 FatalError("Error deserializing Union type");
    1985           0 :                 return false;
    1986             :             }
    1987             :             // Sentinel = 'TNullPrincipalInfo'
    1988           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
    1989           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1990           0 :                 return false;
    1991             :             }
    1992           0 :             return true;
    1993             :         }
    1994             :     case type__::TExpandedPrincipalInfo:
    1995             :         {
    1996           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
    1997           0 :             (*(v__)) = tmp;
    1998           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
    1999           0 :                 FatalError("Error deserializing Union type");
    2000           0 :                 return false;
    2001             :             }
    2002             :             // Sentinel = 'TExpandedPrincipalInfo'
    2003           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
    2004           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2005           0 :                 return false;
    2006             :             }
    2007           0 :             return true;
    2008             :         }
    2009             :     default:
    2010             :         {
    2011           0 :             FatalError("unknown union type");
    2012           0 :             return false;
    2013             :         }
    2014             :     }
    2015             : }
    2016             : 
    2017           0 : auto PCacheChild::Write(
    2018             :         const nsTArray<HeaderEntry>& v__,
    2019             :         Message* msg__) -> void
    2020             : {
    2021           0 :     uint32_t length = (v__).Length();
    2022           0 :     Write(length, msg__);
    2023             :     // Sentinel = ('length', 'HeaderEntry[]')
    2024           0 :     (msg__)->WriteSentinel(2689457705);
    2025             : 
    2026           0 :     for (auto& elem : v__) {
    2027           0 :         Write(elem, msg__);
    2028             :         // Sentinel = 'HeaderEntry[]'
    2029           0 :         (msg__)->WriteSentinel(454836120);
    2030             :     }
    2031           0 : }
    2032             : 
    2033           0 : auto PCacheChild::Read(
    2034             :         nsTArray<HeaderEntry>* v__,
    2035             :         const Message* msg__,
    2036             :         PickleIterator* iter__) -> bool
    2037             : {
    2038           0 :     nsTArray<HeaderEntry> fa;
    2039             :     uint32_t length;
    2040           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    2041           0 :         mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
    2042           0 :         return false;
    2043             :     }
    2044             :     // Sentinel = ('length', 'HeaderEntry[]')
    2045           0 :     if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
    2046           0 :         mozilla::ipc::SentinelReadError("HeaderEntry[]");
    2047           0 :         return false;
    2048             :     }
    2049             : 
    2050           0 :     HeaderEntry* elems = (fa).AppendElements(length);
    2051           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    2052           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    2053           0 :             FatalError("Error deserializing 'HeaderEntry[i]'");
    2054           0 :             return false;
    2055             :         }
    2056             :         // Sentinel = 'HeaderEntry[]'
    2057           0 :         if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
    2058           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
    2059           0 :             return false;
    2060             :         }
    2061             :     }
    2062           0 :     (v__)->SwapElements(fa);
    2063           0 :     return true;
    2064             : }
    2065             : 
    2066           0 : auto PCacheChild::Write(
    2067             :         const NullPrincipalInfo& v__,
    2068             :         Message* msg__) -> void
    2069             : {
    2070           0 :     Write((v__).attrs(), msg__);
    2071             :     // Sentinel = 'attrs'
    2072           0 :     (msg__)->WriteSentinel(3014987797);
    2073           0 :     Write((v__).spec(), msg__);
    2074             :     // Sentinel = 'spec'
    2075           0 :     (msg__)->WriteSentinel(1630740541);
    2076           0 : }
    2077             : 
    2078           0 : auto PCacheChild::Read(
    2079             :         NullPrincipalInfo* v__,
    2080             :         const Message* msg__,
    2081             :         PickleIterator* iter__) -> bool
    2082             : {
    2083           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    2084           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    2085           0 :         return false;
    2086             :     }
    2087             :     // Sentinel = 'attrs'
    2088           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    2089           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    2090           0 :         return false;
    2091             :     }
    2092           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    2093           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    2094           0 :         return false;
    2095             :     }
    2096             :     // Sentinel = 'spec'
    2097           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    2098           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    2099           0 :         return false;
    2100             :     }
    2101           0 :     return true;
    2102             : }
    2103             : 
    2104           0 : auto PCacheChild::Write(
    2105             :         const SlicedInputStreamParams& v__,
    2106             :         Message* msg__) -> void
    2107             : {
    2108           0 :     Write((v__).stream(), msg__);
    2109             :     // Sentinel = 'stream'
    2110           0 :     (msg__)->WriteSentinel(4152748422);
    2111           0 :     Write((v__).start(), msg__);
    2112             :     // Sentinel = 'start'
    2113           0 :     (msg__)->WriteSentinel(2088644401);
    2114           0 :     Write((v__).length(), msg__);
    2115             :     // Sentinel = 'length'
    2116           0 :     (msg__)->WriteSentinel(1726618354);
    2117           0 :     Write((v__).curPos(), msg__);
    2118             :     // Sentinel = 'curPos'
    2119           0 :     (msg__)->WriteSentinel(4042140974);
    2120           0 :     Write((v__).closed(), msg__);
    2121             :     // Sentinel = 'closed'
    2122           0 :     (msg__)->WriteSentinel(561249462);
    2123           0 : }
    2124             : 
    2125           0 : auto PCacheChild::Read(
    2126             :         SlicedInputStreamParams* v__,
    2127             :         const Message* msg__,
    2128             :         PickleIterator* iter__) -> bool
    2129             : {
    2130           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    2131           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    2132           0 :         return false;
    2133             :     }
    2134             :     // Sentinel = 'stream'
    2135           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    2136           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    2137           0 :         return false;
    2138             :     }
    2139           0 :     if ((!(Read((&((v__)->start())), msg__, iter__)))) {
    2140           0 :         FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    2141           0 :         return false;
    2142             :     }
    2143             :     // Sentinel = 'start'
    2144           0 :     if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
    2145           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    2146           0 :         return false;
    2147             :     }
    2148           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    2149           0 :         FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    2150           0 :         return false;
    2151             :     }
    2152             :     // Sentinel = 'length'
    2153           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    2154           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    2155           0 :         return false;
    2156             :     }
    2157           0 :     if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
    2158           0 :         FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    2159           0 :         return false;
    2160             :     }
    2161             :     // Sentinel = 'curPos'
    2162           0 :     if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
    2163           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    2164           0 :         return false;
    2165             :     }
    2166           0 :     if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
    2167           0 :         FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    2168           0 :         return false;
    2169             :     }
    2170             :     // Sentinel = 'closed'
    2171           0 :     if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
    2172           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    2173           0 :         return false;
    2174             :     }
    2175           0 :     return true;
    2176             : }
    2177             : 
    2178           0 : auto PCacheChild::Write(
    2179             :         const StorageDeleteArgs& v__,
    2180             :         Message* msg__) -> void
    2181             : {
    2182           0 :     Write((v__).key(), msg__);
    2183             :     // Sentinel = 'key'
    2184           0 :     (msg__)->WriteSentinel(35142870);
    2185           0 : }
    2186             : 
    2187           0 : auto PCacheChild::Read(
    2188             :         StorageDeleteArgs* v__,
    2189             :         const Message* msg__,
    2190             :         PickleIterator* iter__) -> bool
    2191             : {
    2192           0 :     if ((!(Read((&((v__)->key())), msg__, iter__)))) {
    2193           0 :         FatalError("Error deserializing 'key' (nsString) member of 'StorageDeleteArgs'");
    2194           0 :         return false;
    2195             :     }
    2196             :     // Sentinel = 'key'
    2197           0 :     if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
    2198           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'StorageDeleteArgs'");
    2199           0 :         return false;
    2200             :     }
    2201           0 :     return true;
    2202             : }
    2203             : 
    2204           0 : auto PCacheChild::Write(
    2205             :         const IPCRemoteStreamType& v__,
    2206             :         Message* msg__) -> void
    2207             : {
    2208             :     typedef IPCRemoteStreamType type__;
    2209           0 :     Write(int((v__).type()), msg__);
    2210             :     // Sentinel = 'IPCRemoteStreamType'
    2211           0 :     (msg__)->WriteSentinel(391674895);
    2212             : 
    2213           0 :     switch ((v__).type()) {
    2214             :     case type__::TPChildToParentStreamParent:
    2215             :         {
    2216           0 :             FatalError("wrong side!");
    2217           0 :             return;
    2218             :         }
    2219             :     case type__::TPChildToParentStreamChild:
    2220             :         {
    2221           0 :             Write((v__).get_PChildToParentStreamChild(), msg__, false);
    2222             :             // Sentinel = 'TPChildToParentStreamChild'
    2223           0 :             (msg__)->WriteSentinel(1882094295);
    2224           0 :             return;
    2225             :         }
    2226             :     case type__::TPParentToChildStreamParent:
    2227             :         {
    2228           0 :             FatalError("wrong side!");
    2229           0 :             return;
    2230             :         }
    2231             :     case type__::TPParentToChildStreamChild:
    2232             :         {
    2233           0 :             Write((v__).get_PParentToChildStreamChild(), msg__, false);
    2234             :             // Sentinel = 'TPParentToChildStreamChild'
    2235           0 :             (msg__)->WriteSentinel(190098493);
    2236           0 :             return;
    2237             :         }
    2238             :     default:
    2239             :         {
    2240           0 :             FatalError("unknown union type");
    2241           0 :             return;
    2242             :         }
    2243             :     }
    2244             : }
    2245             : 
    2246           0 : auto PCacheChild::Read(
    2247             :         IPCRemoteStreamType* v__,
    2248             :         const Message* msg__,
    2249             :         PickleIterator* iter__) -> bool
    2250             : {
    2251             :     typedef IPCRemoteStreamType type__;
    2252             :     int type;
    2253           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2254           0 :         mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
    2255           0 :         return false;
    2256             :     }
    2257             :     // Sentinel = 'IPCRemoteStreamType'
    2258           0 :     if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
    2259           0 :         mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
    2260           0 :         return false;
    2261             :     }
    2262             : 
    2263           0 :     switch (type) {
    2264             :     case type__::TPChildToParentStreamParent:
    2265             :         {
    2266           0 :             PChildToParentStreamChild* tmp = nullptr;
    2267           0 :             (*(v__)) = tmp;
    2268           0 :             if ((!(Read((&((v__)->get_PChildToParentStreamChild())), msg__, iter__, false)))) {
    2269           0 :                 FatalError("Error deserializing Union type");
    2270           0 :                 return false;
    2271             :             }
    2272             :             // Sentinel = 'TPChildToParentStreamParent'
    2273           0 :             if ((!((msg__)->ReadSentinel(iter__, 2724777622)))) {
    2274           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2275           0 :                 return false;
    2276             :             }
    2277           0 :             return true;
    2278             :         }
    2279             :     case type__::TPChildToParentStreamChild:
    2280             :         {
    2281           0 :             return false;
    2282             :         }
    2283             :     case type__::TPParentToChildStreamParent:
    2284             :         {
    2285           0 :             PParentToChildStreamChild* tmp = nullptr;
    2286           0 :             (*(v__)) = tmp;
    2287           0 :             if ((!(Read((&((v__)->get_PParentToChildStreamChild())), msg__, iter__, false)))) {
    2288           0 :                 FatalError("Error deserializing Union type");
    2289           0 :                 return false;
    2290             :             }
    2291             :             // Sentinel = 'TPParentToChildStreamParent'
    2292           0 :             if ((!((msg__)->ReadSentinel(iter__, 3335986876)))) {
    2293           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2294           0 :                 return false;
    2295             :             }
    2296           0 :             return true;
    2297             :         }
    2298             :     case type__::TPParentToChildStreamChild:
    2299             :         {
    2300           0 :             return false;
    2301             :         }
    2302             :     default:
    2303             :         {
    2304           0 :             FatalError("unknown union type");
    2305           0 :             return false;
    2306             :         }
    2307             :     }
    2308             : }
    2309             : 
    2310           0 : auto PCacheChild::Write(
    2311             :         const TemporaryFileInputStreamParams& v__,
    2312             :         Message* msg__) -> void
    2313             : {
    2314           0 :     Write((v__).fileDescriptorIndex(), msg__);
    2315             :     // Sentinel = 'fileDescriptorIndex'
    2316           0 :     (msg__)->WriteSentinel(587329112);
    2317           0 :     Write((v__).startPos(), msg__);
    2318             :     // Sentinel = 'startPos'
    2319           0 :     (msg__)->WriteSentinel(557207962);
    2320           0 :     Write((v__).endPos(), msg__);
    2321             :     // Sentinel = 'endPos'
    2322           0 :     (msg__)->WriteSentinel(881536245);
    2323           0 : }
    2324             : 
    2325           0 : auto PCacheChild::Read(
    2326             :         TemporaryFileInputStreamParams* v__,
    2327             :         const Message* msg__,
    2328             :         PickleIterator* iter__) -> bool
    2329             : {
    2330           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    2331           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    2332           0 :         return false;
    2333             :     }
    2334             :     // Sentinel = 'fileDescriptorIndex'
    2335           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    2336           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    2337           0 :         return false;
    2338             :     }
    2339           0 :     if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
    2340           0 :         FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2341           0 :         return false;
    2342             :     }
    2343             :     // Sentinel = 'startPos'
    2344           0 :     if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
    2345           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2346           0 :         return false;
    2347             :     }
    2348           0 :     if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
    2349           0 :         FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2350           0 :         return false;
    2351             :     }
    2352             :     // Sentinel = 'endPos'
    2353           0 :     if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
    2354           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    2355           0 :         return false;
    2356             :     }
    2357           0 :     return true;
    2358             : }
    2359             : 
    2360           0 : auto PCacheChild::Write(
    2361             :         const MIMEInputStreamParams& v__,
    2362             :         Message* msg__) -> void
    2363             : {
    2364           0 :     Write((v__).optionalStream(), msg__);
    2365             :     // Sentinel = 'optionalStream'
    2366           0 :     (msg__)->WriteSentinel(1003718562);
    2367           0 :     Write((v__).headers(), msg__);
    2368             :     // Sentinel = 'headers'
    2369           0 :     (msg__)->WriteSentinel(4284175217);
    2370           0 :     Write((v__).startedReading(), msg__);
    2371             :     // Sentinel = 'startedReading'
    2372           0 :     (msg__)->WriteSentinel(1906875903);
    2373           0 : }
    2374             : 
    2375           0 : auto PCacheChild::Read(
    2376             :         MIMEInputStreamParams* v__,
    2377             :         const Message* msg__,
    2378             :         PickleIterator* iter__) -> bool
    2379             : {
    2380           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    2381           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    2382           0 :         return false;
    2383             :     }
    2384             :     // Sentinel = 'optionalStream'
    2385           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    2386           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    2387           0 :         return false;
    2388             :     }
    2389           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
    2390           0 :         FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    2391           0 :         return false;
    2392             :     }
    2393             :     // Sentinel = 'headers'
    2394           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
    2395           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    2396           0 :         return false;
    2397             :     }
    2398           0 :     if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
    2399           0 :         FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    2400           0 :         return false;
    2401             :     }
    2402             :     // Sentinel = 'startedReading'
    2403           0 :     if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
    2404           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    2405           0 :         return false;
    2406             :     }
    2407           0 :     return true;
    2408             : }
    2409             : 
    2410           0 : auto PCacheChild::Write(
    2411             :         const PCacheOpChild* v__,
    2412             :         Message* msg__,
    2413             :         bool nullable__) -> void
    2414             : {
    2415             :     int32_t id;
    2416           0 :     if ((!(v__))) {
    2417           0 :         if ((!(nullable__))) {
    2418           0 :             FatalError("NULL actor value passed to non-nullable param");
    2419             :         }
    2420           0 :         id = 0;
    2421             :     }
    2422             :     else {
    2423           0 :         id = (v__)->Id();
    2424           0 :         if ((1) == (id)) {
    2425           0 :             FatalError("actor has been |delete|d");
    2426             :         }
    2427             :     }
    2428             : 
    2429           0 :     Write(id, msg__);
    2430           0 : }
    2431             : 
    2432           0 : auto PCacheChild::Read(
    2433             :         PCacheOpChild** v__,
    2434             :         const Message* msg__,
    2435             :         PickleIterator* iter__,
    2436             :         bool nullable__) -> bool
    2437             : {
    2438           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCacheOp", PCacheOpMsgStart);
    2439           0 :     if ((actor).isNothing()) {
    2440           0 :         return false;
    2441             :     }
    2442             : 
    2443           0 :     (*(v__)) = static_cast<PCacheOpChild*>((actor).value());
    2444           0 :     return true;
    2445             : }
    2446             : 
    2447           0 : auto PCacheChild::Write(
    2448             :         const InputStreamParams& v__,
    2449             :         Message* msg__) -> void
    2450             : {
    2451             :     typedef InputStreamParams type__;
    2452           0 :     Write(int((v__).type()), msg__);
    2453             :     // Sentinel = 'InputStreamParams'
    2454           0 :     (msg__)->WriteSentinel(4114814015);
    2455             : 
    2456           0 :     switch ((v__).type()) {
    2457             :     case type__::TStringInputStreamParams:
    2458             :         {
    2459           0 :             Write((v__).get_StringInputStreamParams(), msg__);
    2460             :             // Sentinel = 'TStringInputStreamParams'
    2461           0 :             (msg__)->WriteSentinel(3395831651);
    2462           0 :             return;
    2463             :         }
    2464             :     case type__::TFileInputStreamParams:
    2465             :         {
    2466           0 :             Write((v__).get_FileInputStreamParams(), msg__);
    2467             :             // Sentinel = 'TFileInputStreamParams'
    2468           0 :             (msg__)->WriteSentinel(2543620282);
    2469           0 :             return;
    2470             :         }
    2471             :     case type__::TTemporaryFileInputStreamParams:
    2472             :         {
    2473           0 :             Write((v__).get_TemporaryFileInputStreamParams(), msg__);
    2474             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    2475           0 :             (msg__)->WriteSentinel(587771548);
    2476           0 :             return;
    2477             :         }
    2478             :     case type__::TBufferedInputStreamParams:
    2479             :         {
    2480           0 :             Write((v__).get_BufferedInputStreamParams(), msg__);
    2481             :             // Sentinel = 'TBufferedInputStreamParams'
    2482           0 :             (msg__)->WriteSentinel(1698289307);
    2483           0 :             return;
    2484             :         }
    2485             :     case type__::TMIMEInputStreamParams:
    2486             :         {
    2487           0 :             Write((v__).get_MIMEInputStreamParams(), msg__);
    2488             :             // Sentinel = 'TMIMEInputStreamParams'
    2489           0 :             (msg__)->WriteSentinel(1948001964);
    2490           0 :             return;
    2491             :         }
    2492             :     case type__::TMultiplexInputStreamParams:
    2493             :         {
    2494           0 :             Write((v__).get_MultiplexInputStreamParams(), msg__);
    2495             :             // Sentinel = 'TMultiplexInputStreamParams'
    2496           0 :             (msg__)->WriteSentinel(3317853213);
    2497           0 :             return;
    2498             :         }
    2499             :     case type__::TSlicedInputStreamParams:
    2500             :         {
    2501           0 :             Write((v__).get_SlicedInputStreamParams(), msg__);
    2502             :             // Sentinel = 'TSlicedInputStreamParams'
    2503           0 :             (msg__)->WriteSentinel(445810472);
    2504           0 :             return;
    2505             :         }
    2506             :     case type__::TIPCBlobInputStreamParams:
    2507             :         {
    2508           0 :             Write((v__).get_IPCBlobInputStreamParams(), msg__);
    2509             :             // Sentinel = 'TIPCBlobInputStreamParams'
    2510           0 :             (msg__)->WriteSentinel(2436989998);
    2511           0 :             return;
    2512             :         }
    2513             :     default:
    2514             :         {
    2515           0 :             FatalError("unknown union type");
    2516           0 :             return;
    2517             :         }
    2518             :     }
    2519             : }
    2520             : 
    2521           0 : auto PCacheChild::Read(
    2522             :         InputStreamParams* v__,
    2523             :         const Message* msg__,
    2524             :         PickleIterator* iter__) -> bool
    2525             : {
    2526             :     typedef InputStreamParams type__;
    2527             :     int type;
    2528           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2529           0 :         mozilla::ipc::UnionTypeReadError("InputStreamParams");
    2530           0 :         return false;
    2531             :     }
    2532             :     // Sentinel = 'InputStreamParams'
    2533           0 :     if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
    2534           0 :         mozilla::ipc::SentinelReadError("InputStreamParams");
    2535           0 :         return false;
    2536             :     }
    2537             : 
    2538           0 :     switch (type) {
    2539             :     case type__::TStringInputStreamParams:
    2540             :         {
    2541           0 :             StringInputStreamParams tmp = StringInputStreamParams();
    2542           0 :             (*(v__)) = tmp;
    2543           0 :             if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
    2544           0 :                 FatalError("Error deserializing Union type");
    2545           0 :                 return false;
    2546             :             }
    2547             :             // Sentinel = 'TStringInputStreamParams'
    2548           0 :             if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
    2549           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2550           0 :                 return false;
    2551             :             }
    2552           0 :             return true;
    2553             :         }
    2554             :     case type__::TFileInputStreamParams:
    2555             :         {
    2556           0 :             FileInputStreamParams tmp = FileInputStreamParams();
    2557           0 :             (*(v__)) = tmp;
    2558           0 :             if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
    2559           0 :                 FatalError("Error deserializing Union type");
    2560           0 :                 return false;
    2561             :             }
    2562             :             // Sentinel = 'TFileInputStreamParams'
    2563           0 :             if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
    2564           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2565           0 :                 return false;
    2566             :             }
    2567           0 :             return true;
    2568             :         }
    2569             :     case type__::TTemporaryFileInputStreamParams:
    2570             :         {
    2571           0 :             TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
    2572           0 :             (*(v__)) = tmp;
    2573           0 :             if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
    2574           0 :                 FatalError("Error deserializing Union type");
    2575           0 :                 return false;
    2576             :             }
    2577             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    2578           0 :             if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
    2579           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2580           0 :                 return false;
    2581             :             }
    2582           0 :             return true;
    2583             :         }
    2584             :     case type__::TBufferedInputStreamParams:
    2585             :         {
    2586           0 :             BufferedInputStreamParams tmp = BufferedInputStreamParams();
    2587           0 :             (*(v__)) = tmp;
    2588           0 :             if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
    2589           0 :                 FatalError("Error deserializing Union type");
    2590           0 :                 return false;
    2591             :             }
    2592             :             // Sentinel = 'TBufferedInputStreamParams'
    2593           0 :             if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
    2594           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2595           0 :                 return false;
    2596             :             }
    2597           0 :             return true;
    2598             :         }
    2599             :     case type__::TMIMEInputStreamParams:
    2600             :         {
    2601           0 :             MIMEInputStreamParams tmp = MIMEInputStreamParams();
    2602           0 :             (*(v__)) = tmp;
    2603           0 :             if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
    2604           0 :                 FatalError("Error deserializing Union type");
    2605           0 :                 return false;
    2606             :             }
    2607             :             // Sentinel = 'TMIMEInputStreamParams'
    2608           0 :             if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
    2609           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2610           0 :                 return false;
    2611             :             }
    2612           0 :             return true;
    2613             :         }
    2614             :     case type__::TMultiplexInputStreamParams:
    2615             :         {
    2616           0 :             MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
    2617           0 :             (*(v__)) = tmp;
    2618           0 :             if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
    2619           0 :                 FatalError("Error deserializing Union type");
    2620           0 :                 return false;
    2621             :             }
    2622             :             // Sentinel = 'TMultiplexInputStreamParams'
    2623           0 :             if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
    2624           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2625           0 :                 return false;
    2626             :             }
    2627           0 :             return true;
    2628             :         }
    2629             :     case type__::TSlicedInputStreamParams:
    2630             :         {
    2631           0 :             SlicedInputStreamParams tmp = SlicedInputStreamParams();
    2632           0 :             (*(v__)) = tmp;
    2633           0 :             if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
    2634           0 :                 FatalError("Error deserializing Union type");
    2635           0 :                 return false;
    2636             :             }
    2637             :             // Sentinel = 'TSlicedInputStreamParams'
    2638           0 :             if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
    2639           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2640           0 :                 return false;
    2641             :             }
    2642           0 :             return true;
    2643             :         }
    2644             :     case type__::TIPCBlobInputStreamParams:
    2645             :         {
    2646           0 :             IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
    2647           0 :             (*(v__)) = tmp;
    2648           0 :             if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
    2649           0 :                 FatalError("Error deserializing Union type");
    2650           0 :                 return false;
    2651             :             }
    2652             :             // Sentinel = 'TIPCBlobInputStreamParams'
    2653           0 :             if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
    2654           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2655           0 :                 return false;
    2656             :             }
    2657           0 :             return true;
    2658             :         }
    2659             :     default:
    2660             :         {
    2661           0 :             FatalError("unknown union type");
    2662           0 :             return false;
    2663             :         }
    2664             :     }
    2665             : }
    2666             : 
    2667           0 : auto PCacheChild::Write(
    2668             :         const PParentToChildStreamChild* v__,
    2669             :         Message* msg__,
    2670             :         bool nullable__) -> void
    2671             : {
    2672             :     int32_t id;
    2673           0 :     if ((!(v__))) {
    2674           0 :         if ((!(nullable__))) {
    2675           0 :             FatalError("NULL actor value passed to non-nullable param");
    2676             :         }
    2677           0 :         id = 0;
    2678             :     }
    2679             :     else {
    2680           0 :         id = (v__)->Id();
    2681           0 :         if ((1) == (id)) {
    2682           0 :             FatalError("actor has been |delete|d");
    2683             :         }
    2684             :     }
    2685             : 
    2686           0 :     Write(id, msg__);
    2687           0 : }
    2688             : 
    2689           0 : auto PCacheChild::Read(
    2690             :         PParentToChildStreamChild** v__,
    2691             :         const Message* msg__,
    2692             :         PickleIterator* iter__,
    2693             :         bool nullable__) -> bool
    2694             : {
    2695           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
    2696           0 :     if ((actor).isNothing()) {
    2697           0 :         return false;
    2698             :     }
    2699             : 
    2700           0 :     (*(v__)) = static_cast<PParentToChildStreamChild*>((actor).value());
    2701           0 :     return true;
    2702             : }
    2703             : 
    2704           0 : auto PCacheChild::Write(
    2705             :         const CacheDeleteArgs& v__,
    2706             :         Message* msg__) -> void
    2707             : {
    2708           0 :     Write((v__).request(), msg__);
    2709             :     // Sentinel = 'request'
    2710           0 :     (msg__)->WriteSentinel(2366856172);
    2711           0 :     Write((v__).params(), msg__);
    2712             :     // Sentinel = 'params'
    2713           0 :     (msg__)->WriteSentinel(1677790004);
    2714           0 : }
    2715             : 
    2716           0 : auto PCacheChild::Read(
    2717             :         CacheDeleteArgs* v__,
    2718             :         const Message* msg__,
    2719             :         PickleIterator* iter__) -> bool
    2720             : {
    2721           0 :     if ((!(Read((&((v__)->request())), msg__, iter__)))) {
    2722           0 :         FatalError("Error deserializing 'request' (CacheRequest) member of 'CacheDeleteArgs'");
    2723           0 :         return false;
    2724             :     }
    2725             :     // Sentinel = 'request'
    2726           0 :     if ((!((msg__)->ReadSentinel(iter__, 2366856172)))) {
    2727           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'request' (CacheRequest) member of 'CacheDeleteArgs'");
    2728           0 :         return false;
    2729             :     }
    2730           0 :     if ((!(Read((&((v__)->params())), msg__, iter__)))) {
    2731           0 :         FatalError("Error deserializing 'params' (CacheQueryParams) member of 'CacheDeleteArgs'");
    2732           0 :         return false;
    2733             :     }
    2734             :     // Sentinel = 'params'
    2735           0 :     if ((!((msg__)->ReadSentinel(iter__, 1677790004)))) {
    2736           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'params' (CacheQueryParams) member of 'CacheDeleteArgs'");
    2737           0 :         return false;
    2738             :     }
    2739           0 :     return true;
    2740             : }
    2741             : 
    2742           0 : auto PCacheChild::Write(
    2743             :         const IPCStream& v__,
    2744             :         Message* msg__) -> void
    2745             : {
    2746             :     typedef IPCStream type__;
    2747           0 :     Write(int((v__).type()), msg__);
    2748             :     // Sentinel = 'IPCStream'
    2749           0 :     (msg__)->WriteSentinel(442610715);
    2750             : 
    2751           0 :     switch ((v__).type()) {
    2752             :     case type__::TInputStreamParamsWithFds:
    2753             :         {
    2754           0 :             Write((v__).get_InputStreamParamsWithFds(), msg__);
    2755             :             // Sentinel = 'TInputStreamParamsWithFds'
    2756           0 :             (msg__)->WriteSentinel(2170706066);
    2757           0 :             return;
    2758             :         }
    2759             :     case type__::TIPCRemoteStream:
    2760             :         {
    2761           0 :             Write((v__).get_IPCRemoteStream(), msg__);
    2762             :             // Sentinel = 'TIPCRemoteStream'
    2763           0 :             (msg__)->WriteSentinel(2978132448);
    2764           0 :             return;
    2765             :         }
    2766             :     default:
    2767             :         {
    2768           0 :             FatalError("unknown union type");
    2769           0 :             return;
    2770             :         }
    2771             :     }
    2772             : }
    2773             : 
    2774           0 : auto PCacheChild::Read(
    2775             :         IPCStream* v__,
    2776             :         const Message* msg__,
    2777             :         PickleIterator* iter__) -> bool
    2778             : {
    2779             :     typedef IPCStream type__;
    2780             :     int type;
    2781           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2782           0 :         mozilla::ipc::UnionTypeReadError("IPCStream");
    2783           0 :         return false;
    2784             :     }
    2785             :     // Sentinel = 'IPCStream'
    2786           0 :     if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
    2787           0 :         mozilla::ipc::SentinelReadError("IPCStream");
    2788           0 :         return false;
    2789             :     }
    2790             : 
    2791           0 :     switch (type) {
    2792             :     case type__::TInputStreamParamsWithFds:
    2793             :         {
    2794           0 :             InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
    2795           0 :             (*(v__)) = tmp;
    2796           0 :             if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
    2797           0 :                 FatalError("Error deserializing Union type");
    2798           0 :                 return false;
    2799             :             }
    2800             :             // Sentinel = 'TInputStreamParamsWithFds'
    2801           0 :             if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
    2802           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2803           0 :                 return false;
    2804             :             }
    2805           0 :             return true;
    2806             :         }
    2807             :     case type__::TIPCRemoteStream:
    2808             :         {
    2809           0 :             IPCRemoteStream tmp = IPCRemoteStream();
    2810           0 :             (*(v__)) = tmp;
    2811           0 :             if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
    2812           0 :                 FatalError("Error deserializing Union type");
    2813           0 :                 return false;
    2814             :             }
    2815             :             // Sentinel = 'TIPCRemoteStream'
    2816           0 :             if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
    2817           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2818           0 :                 return false;
    2819             :             }
    2820           0 :             return true;
    2821             :         }
    2822             :     default:
    2823             :         {
    2824           0 :             FatalError("unknown union type");
    2825           0 :             return false;
    2826             :         }
    2827             :     }
    2828             : }
    2829             : 
    2830           0 : auto PCacheChild::Write(
    2831             :         const CacheReadStream& v__,
    2832             :         Message* msg__) -> void
    2833             : {
    2834           0 :     Write((v__).id(), msg__);
    2835             :     // Sentinel = 'id'
    2836           0 :     (msg__)->WriteSentinel(2794505629);
    2837             :     // skipping actor field that's meaningless on this side
    2838           0 :     Write((v__).controlChild(), msg__, true);
    2839             :     // Sentinel = 'control'
    2840           0 :     (msg__)->WriteSentinel(2785524096);
    2841           0 :     Write((v__).stream(), msg__);
    2842             :     // Sentinel = 'stream'
    2843           0 :     (msg__)->WriteSentinel(4152748422);
    2844           0 : }
    2845             : 
    2846           0 : auto PCacheChild::Read(
    2847             :         CacheReadStream* v__,
    2848             :         const Message* msg__,
    2849             :         PickleIterator* iter__) -> bool
    2850             : {
    2851           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
    2852           0 :         FatalError("Error deserializing 'id' (nsID) member of 'CacheReadStream'");
    2853           0 :         return false;
    2854             :     }
    2855             :     // Sentinel = 'id'
    2856           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
    2857           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'CacheReadStream'");
    2858           0 :         return false;
    2859             :     }
    2860             :     // skipping actor field that's meaningless on this side
    2861           0 :     if ((!(Read((&((v__)->controlChild())), msg__, iter__, true)))) {
    2862           0 :         FatalError("Error deserializing 'controlChild' (PCacheStreamControl) member of 'CacheReadStream'");
    2863           0 :         return false;
    2864             :     }
    2865             :     // Sentinel = 'control'
    2866           0 :     if ((!((msg__)->ReadSentinel(iter__, 2785524096)))) {
    2867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'controlChild' (PCacheStreamControl) member of 'CacheReadStream'");
    2868           0 :         return false;
    2869             :     }
    2870           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    2871           0 :         FatalError("Error deserializing 'stream' (IPCStream) member of 'CacheReadStream'");
    2872           0 :         return false;
    2873             :     }
    2874             :     // Sentinel = 'stream'
    2875           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    2876           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCStream) member of 'CacheReadStream'");
    2877           0 :         return false;
    2878             :     }
    2879           0 :     return true;
    2880             : }
    2881             : 
    2882           0 : auto PCacheChild::Write(
    2883             :         const CachePutAllArgs& v__,
    2884             :         Message* msg__) -> void
    2885             : {
    2886           0 :     Write((v__).requestResponseList(), msg__);
    2887             :     // Sentinel = 'requestResponseList'
    2888           0 :     (msg__)->WriteSentinel(4078539745);
    2889           0 : }
    2890             : 
    2891           0 : auto PCacheChild::Read(
    2892             :         CachePutAllArgs* v__,
    2893             :         const Message* msg__,
    2894             :         PickleIterator* iter__) -> bool
    2895             : {
    2896           0 :     if ((!(Read((&((v__)->requestResponseList())), msg__, iter__)))) {
    2897           0 :         FatalError("Error deserializing 'requestResponseList' (CacheRequestResponse[]) member of 'CachePutAllArgs'");
    2898           0 :         return false;
    2899             :     }
    2900             :     // Sentinel = 'requestResponseList'
    2901           0 :     if ((!((msg__)->ReadSentinel(iter__, 4078539745)))) {
    2902           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestResponseList' (CacheRequestResponse[]) member of 'CachePutAllArgs'");
    2903           0 :         return false;
    2904             :     }
    2905           0 :     return true;
    2906             : }
    2907             : 
    2908           0 : auto PCacheChild::Write(
    2909             :         const StringInputStreamParams& v__,
    2910             :         Message* msg__) -> void
    2911             : {
    2912           0 :     Write((v__).data(), msg__);
    2913             :     // Sentinel = 'data'
    2914           0 :     (msg__)->WriteSentinel(843352540);
    2915           0 : }
    2916             : 
    2917           0 : auto PCacheChild::Read(
    2918             :         StringInputStreamParams* v__,
    2919             :         const Message* msg__,
    2920             :         PickleIterator* iter__) -> bool
    2921             : {
    2922           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    2923           0 :         FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    2924           0 :         return false;
    2925             :     }
    2926             :     // Sentinel = 'data'
    2927           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    2928           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    2929           0 :         return false;
    2930             :     }
    2931           0 :     return true;
    2932             : }
    2933             : 
    2934           0 : auto PCacheChild::Write(
    2935             :         const HeadersEntry& v__,
    2936             :         Message* msg__) -> void
    2937             : {
    2938           0 :     Write((v__).name(), msg__);
    2939             :     // Sentinel = 'name'
    2940           0 :     (msg__)->WriteSentinel(15034981);
    2941           0 :     Write((v__).value(), msg__);
    2942             :     // Sentinel = 'value'
    2943           0 :     (msg__)->WriteSentinel(3456818542);
    2944           0 : }
    2945             : 
    2946           0 : auto PCacheChild::Read(
    2947             :         HeadersEntry* v__,
    2948             :         const Message* msg__,
    2949             :         PickleIterator* iter__) -> bool
    2950             : {
    2951           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    2952           0 :         FatalError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
    2953           0 :         return false;
    2954             :     }
    2955             :     // Sentinel = 'name'
    2956           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    2957           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeadersEntry'");
    2958           0 :         return false;
    2959             :     }
    2960           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2961           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
    2962           0 :         return false;
    2963             :     }
    2964             :     // Sentinel = 'value'
    2965           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2966           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeadersEntry'");
    2967           0 :         return false;
    2968             :     }
    2969           0 :     return true;
    2970             : }
    2971             : 
    2972           0 : auto PCacheChild::Write(
    2973             :         const MultiplexInputStreamParams& v__,
    2974             :         Message* msg__) -> void
    2975             : {
    2976           0 :     Write((v__).streams(), msg__);
    2977             :     // Sentinel = 'streams'
    2978           0 :     (msg__)->WriteSentinel(4240383220);
    2979           0 :     Write((v__).currentStream(), msg__);
    2980             :     // Sentinel = 'currentStream'
    2981           0 :     (msg__)->WriteSentinel(682778074);
    2982           0 :     Write((v__).status(), msg__);
    2983             :     // Sentinel = 'status'
    2984           0 :     (msg__)->WriteSentinel(3714608576);
    2985           0 :     Write((v__).startedReadingCurrent(), msg__);
    2986             :     // Sentinel = 'startedReadingCurrent'
    2987           0 :     (msg__)->WriteSentinel(970542033);
    2988           0 : }
    2989             : 
    2990           0 : auto PCacheChild::Read(
    2991             :         MultiplexInputStreamParams* v__,
    2992             :         const Message* msg__,
    2993             :         PickleIterator* iter__) -> bool
    2994             : {
    2995           0 :     if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
    2996           0 :         FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    2997           0 :         return false;
    2998             :     }
    2999             :     // Sentinel = 'streams'
    3000           0 :     if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
    3001           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    3002           0 :         return false;
    3003             :     }
    3004           0 :     if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
    3005           0 :         FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    3006           0 :         return false;
    3007             :     }
    3008             :     // Sentinel = 'currentStream'
    3009           0 :     if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
    3010           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    3011           0 :         return false;
    3012             :     }
    3013           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    3014           0 :         FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    3015           0 :         return false;
    3016             :     }
    3017             :     // Sentinel = 'status'
    3018           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    3019           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    3020           0 :         return false;
    3021             :     }
    3022           0 :     if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
    3023           0 :         FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    3024           0 :         return false;
    3025             :     }
    3026             :     // Sentinel = 'startedReadingCurrent'
    3027           0 :     if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
    3028           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    3029           0 :         return false;
    3030             :     }
    3031           0 :     return true;
    3032             : }
    3033             : 
    3034           0 : auto PCacheChild::Write(
    3035             :         const PFileDescriptorSetChild* v__,
    3036             :         Message* msg__,
    3037             :         bool nullable__) -> void
    3038             : {
    3039             :     int32_t id;
    3040           0 :     if ((!(v__))) {
    3041           0 :         if ((!(nullable__))) {
    3042           0 :             FatalError("NULL actor value passed to non-nullable param");
    3043             :         }
    3044           0 :         id = 0;
    3045             :     }
    3046             :     else {
    3047           0 :         id = (v__)->Id();
    3048           0 :         if ((1) == (id)) {
    3049           0 :             FatalError("actor has been |delete|d");
    3050             :         }
    3051             :     }
    3052             : 
    3053           0 :     Write(id, msg__);
    3054           0 : }
    3055             : 
    3056           0 : auto PCacheChild::Read(
    3057             :         PFileDescriptorSetChild** v__,
    3058             :         const Message* msg__,
    3059             :         PickleIterator* iter__,
    3060             :         bool nullable__) -> bool
    3061             : {
    3062           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
    3063           0 :     if ((actor).isNothing()) {
    3064           0 :         return false;
    3065             :     }
    3066             : 
    3067           0 :     (*(v__)) = static_cast<PFileDescriptorSetChild*>((actor).value());
    3068           0 :     return true;
    3069             : }
    3070             : 
    3071           0 : auto PCacheChild::Write(
    3072             :         const CacheKeysArgs& v__,
    3073             :         Message* msg__) -> void
    3074             : {
    3075           0 :     Write((v__).requestOrVoid(), msg__);
    3076             :     // Sentinel = 'requestOrVoid'
    3077           0 :     (msg__)->WriteSentinel(3100919755);
    3078           0 :     Write((v__).params(), msg__);
    3079             :     // Sentinel = 'params'
    3080           0 :     (msg__)->WriteSentinel(1677790004);
    3081           0 : }
    3082             : 
    3083           0 : auto PCacheChild::Read(
    3084             :         CacheKeysArgs* v__,
    3085             :         const Message* msg__,
    3086             :         PickleIterator* iter__) -> bool
    3087             : {
    3088           0 :     if ((!(Read((&((v__)->requestOrVoid())), msg__, iter__)))) {
    3089           0 :         FatalError("Error deserializing 'requestOrVoid' (CacheRequestOrVoid) member of 'CacheKeysArgs'");
    3090           0 :         return false;
    3091             :     }
    3092             :     // Sentinel = 'requestOrVoid'
    3093           0 :     if ((!((msg__)->ReadSentinel(iter__, 3100919755)))) {
    3094           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'requestOrVoid' (CacheRequestOrVoid) member of 'CacheKeysArgs'");
    3095           0 :         return false;
    3096             :     }
    3097           0 :     if ((!(Read((&((v__)->params())), msg__, iter__)))) {
    3098           0 :         FatalError("Error deserializing 'params' (CacheQueryParams) member of 'CacheKeysArgs'");
    3099           0 :         return false;
    3100             :     }
    3101             :     // Sentinel = 'params'
    3102           0 :     if ((!((msg__)->ReadSentinel(iter__, 1677790004)))) {
    3103           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'params' (CacheQueryParams) member of 'CacheKeysArgs'");
    3104           0 :         return false;
    3105             :     }
    3106           0 :     return true;
    3107             : }
    3108             : 
    3109           0 : auto PCacheChild::Write(
    3110             :         const OptionalFileDescriptorSet& v__,
    3111             :         Message* msg__) -> void
    3112             : {
    3113             :     typedef OptionalFileDescriptorSet type__;
    3114           0 :     Write(int((v__).type()), msg__);
    3115             :     // Sentinel = 'OptionalFileDescriptorSet'
    3116           0 :     (msg__)->WriteSentinel(955222862);
    3117             : 
    3118           0 :     switch ((v__).type()) {
    3119             :     case type__::TPFileDescriptorSetParent:
    3120             :         {
    3121           0 :             FatalError("wrong side!");
    3122           0 :             return;
    3123             :         }
    3124             :     case type__::TPFileDescriptorSetChild:
    3125             :         {
    3126           0 :             Write((v__).get_PFileDescriptorSetChild(), msg__, false);
    3127             :             // Sentinel = 'TPFileDescriptorSetChild'
    3128           0 :             (msg__)->WriteSentinel(3477929935);
    3129           0 :             return;
    3130             :         }
    3131             :     case type__::TArrayOfFileDescriptor:
    3132             :         {
    3133           0 :             Write((v__).get_ArrayOfFileDescriptor(), msg__);
    3134             :             // Sentinel = 'TArrayOfFileDescriptor'
    3135           0 :             (msg__)->WriteSentinel(2366096715);
    3136           0 :             return;
    3137             :         }
    3138             :     case type__::Tvoid_t:
    3139             :         {
    3140           0 :             Write((v__).get_void_t(), msg__);
    3141             :             // Sentinel = 'Tvoid_t'
    3142           0 :             (msg__)->WriteSentinel(3041273328);
    3143           0 :             return;
    3144             :         }
    3145             :     default:
    3146             :         {
    3147           0 :             FatalError("unknown union type");
    3148           0 :             return;
    3149             :         }
    3150             :     }
    3151             : }
    3152             : 
    3153           0 : auto PCacheChild::Read(
    3154             :         OptionalFileDescriptorSet* v__,
    3155             :         const Message* msg__,
    3156             :         PickleIterator* iter__) -> bool
    3157             : {
    3158             :     typedef OptionalFileDescriptorSet type__;
    3159             :     int type;
    3160           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    3161           0 :         mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
    3162           0 :         return false;
    3163             :     }
    3164             :     // Sentinel = 'OptionalFileDescriptorSet'
    3165           0 :     if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
    3166           0 :         mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
    3167           0 :         return false;
    3168             :     }
    3169             : 
    3170           0 :     switch (type) {
    3171             :     case type__::TPFileDescriptorSetParent:
    3172             :         {
    3173           0 :             PFileDescriptorSetChild* tmp = nullptr;
    3174           0 :             (*(v__)) = tmp;
    3175           0 :             if ((!(Read((&((v__)->get_PFileDescriptorSetChild())), msg__, iter__, false)))) {
    3176           0 :                 FatalError("Error deserializing Union type");
    3177           0 :                 return false;
    3178             :             }
    3179             :             // Sentinel = 'TPFileDescriptorSetParent'
    3180           0 :             if ((!((msg__)->ReadSentinel(iter__, 143041934)))) {
    3181           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3182           0 :                 return false;
    3183             :             }
    3184           0 :             return true;
    3185             :         }
    3186             :     case type__::TPFileDescriptorSetChild:
    3187             :         {
    3188           0 :             return false;
    3189             :         }
    3190             :     case type__::TArrayOfFileDescriptor:
    3191             :         {
    3192           0 :             nsTArray<FileDescriptor> tmp;
    3193           0 :             (*(v__)) = tmp;
    3194           0 :             if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
    3195           0 :                 FatalError("Error deserializing Union type");
    3196           0 :                 return false;
    3197             :             }
    3198             :             // Sentinel = 'TArrayOfFileDescriptor'
    3199           0 :             if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
    3200           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3201           0 :                 return false;
    3202             :             }
    3203           0 :             return true;
    3204             :         }
    3205             :     case type__::Tvoid_t:
    3206             :         {
    3207             :             void_t tmp = void_t();
    3208           0 :             (*(v__)) = tmp;
    3209           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    3210           0 :                 FatalError("Error deserializing Union type");
    3211           0 :                 return false;
    3212             :             }
    3213             :             // Sentinel = 'Tvoid_t'
    3214           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    3215           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    3216           0 :                 return false;
    3217             :             }
    3218           0 :             return true;
    3219             :         }
    3220             :     default:
    3221             :         {
    3222           0 :             FatalError("unknown union type");
    3223           0 :             return false;
    3224             :         }
    3225             :     }
    3226             : }
    3227             : 
    3228           0 : auto PCacheChild::Write(
    3229             :         const StorageKeysArgs& v__,
    3230             :         Message* msg__) -> void
    3231             : {
    3232           0 : }
    3233             : 
    3234           0 : auto PCacheChild::Read(
    3235             :         StorageKeysArgs* v__,
    3236             :         const Message* msg__,
    3237             :         PickleIterator* iter__) -> bool
    3238             : {
    3239           0 :     return true;
    3240             : }
    3241             : 
    3242           0 : auto PCacheChild::Write(
    3243             :         const nsTArray<HeadersEntry>& v__,
    3244             :         Message* msg__) -> void
    3245             : {
    3246           0 :     uint32_t length = (v__).Length();
    3247           0 :     Write(length, msg__);
    3248             :     // Sentinel = ('length', 'HeadersEntry[]')
    3249           0 :     (msg__)->WriteSentinel(2248834657);
    3250             : 
    3251           0 :     for (auto& elem : v__) {
    3252           0 :         Write(elem, msg__);
    3253             :         // Sentinel = 'HeadersEntry[]'
    3254           0 :         (msg__)->WriteSentinel(732413696);
    3255             :     }
    3256           0 : }
    3257             : 
    3258           0 : auto PCacheChild::Read(
    3259             :         nsTArray<HeadersEntry>* v__,
    3260             :         const Message* msg__,
    3261             :         PickleIterator* iter__) -> bool
    3262             : {
    3263           0 :     nsTArray<HeadersEntry> fa;
    3264             :     uint32_t length;
    3265           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    3266           0 :         mozilla::ipc::ArrayLengthReadError("HeadersEntry[]");
    3267           0 :         return false;
    3268             :     }
    3269             :     // Sentinel = ('length', 'HeadersEntry[]')
    3270           0 :     if ((!((msg__)->ReadSentinel(iter__, 2248834657)))) {
    3271           0 :         mozilla::ipc::SentinelReadError("HeadersEntry[]");
    3272           0 :         return false;
    3273             :     }
    3274             : 
    3275           0 :     HeadersEntry* elems = (fa).AppendElements(length);
    3276           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    3277           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    3278           0 :             FatalError("Error deserializing 'HeadersEntry[i]'");
    3279           0 :             return false;
    3280             :         }
    3281             :         // Sentinel = 'HeadersEntry[]'
    3282           0 :         if ((!((msg__)->ReadSentinel(iter__, 732413696)))) {
    3283           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'HeadersEntry[i]'");
    3284           0 :             return false;
    3285             :         }
    3286             :     }
    3287           0 :     (v__)->SwapElements(fa);
    3288           0 :     return true;
    3289             : }
    3290             : 
    3291           0 : auto PCacheChild::Write(
    3292             :         const nsTArray<PrincipalInfo>& v__,
    3293             :         Message* msg__) -> void
    3294             : {
    3295           0 :     uint32_t length = (v__).Length();
    3296           0 :     Write(length, msg__);
    3297             :     // Sentinel = ('length', 'PrincipalInfo[]')
    3298           0 :     (msg__)->WriteSentinel(1032188126);
    3299             : 
    3300           0 :     for (auto& elem : v__) {
    3301           0 :         Write(elem, msg__);
    3302             :         // Sentinel = 'PrincipalInfo[]'
    3303           0 :         (msg__)->WriteSentinel(413380193);
    3304             :     }
    3305           0 : }
    3306             : 
    3307           0 : auto PCacheChild::Read(
    3308             :         nsTArray<PrincipalInfo>* v__,
    3309             :         const Message* msg__,
    3310             :         PickleIterator* iter__) -> bool
    3311             : {
    3312           0 :     nsTArray<PrincipalInfo> fa;
    3313             :     uint32_t length;
    3314           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    3315           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
    3316           0 :         return false;
    3317             :     }
    3318             :     // Sentinel = ('length', 'PrincipalInfo[]')
    3319           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
    3320           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
    3321           0 :         return false;
    3322             :     }
    3323             : 
    3324           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
    3325           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    3326           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    3327           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
    3328           0 :             return false;
    3329             :         }
    3330             :         // Sentinel = 'PrincipalInfo[]'
    3331           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
    3332           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
    3333           0 :             return false;
    3334             :         }
    3335             :     }
    3336           0 :     (v__)->SwapElements(fa);
    3337           0 :     return true;
    3338             : }
    3339             : 
    3340           0 : auto PCacheChild::Write(
    3341             :         const FileDescriptor& v__,
    3342             :         Message* msg__) -> void
    3343             : {
    3344           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    3345           0 :     IPC::WriteParam(msg__, pfd);
    3346           0 : }
    3347             : 
    3348           0 : auto PCacheChild::Read(
    3349             :         FileDescriptor* v__,
    3350             :         const Message* msg__,
    3351             :         PickleIterator* iter__) -> bool
    3352             : {
    3353           0 :     FileDescriptor::PickleType pfd;
    3354           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    3355           0 :         return false;
    3356             :     }
    3357             : 
    3358           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    3359           0 :     if ((!((fd).IsValid()))) {
    3360           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PCacheChild] Received an invalid file descriptor!");
    3361             :     }
    3362             : 
    3363           0 :     (*(v__)) = fd;
    3364           0 :     return true;
    3365             : }
    3366             : 
    3367           0 : auto PCacheChild::Write(
    3368             :         const BufferedInputStreamParams& v__,
    3369             :         Message* msg__) -> void
    3370             : {
    3371           0 :     Write((v__).optionalStream(), msg__);
    3372             :     // Sentinel = 'optionalStream'
    3373           0 :     (msg__)->WriteSentinel(1003718562);
    3374           0 :     Write((v__).bufferSize(), msg__);
    3375             :     // Sentinel = 'bufferSize'
    3376           0 :     (msg__)->WriteSentinel(3444538779);
    3377           0 : }
    3378             : 
    3379           0 : auto PCacheChild::Read(
    3380             :         BufferedInputStreamParams* v__,
    3381             :         const Message* msg__,
    3382             :         PickleIterator* iter__) -> bool
    3383             : {
    3384           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    3385           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    3386           0 :         return false;
    3387             :     }
    3388             :     // Sentinel = 'optionalStream'
    3389           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    3390           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    3391           0 :         return false;
    3392             :     }
    3393           0 :     if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
    3394           0 :         FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    3395           0 :         return false;
    3396             :     }
    3397             :     // Sentinel = 'bufferSize'
    3398           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
    3399           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    3400           0 :         return false;
    3401             :     }
    3402           0 :     return true;
    3403             : }
    3404             : 
    3405           0 : auto PCacheChild::Write(
    3406             :         const HeaderEntry& v__,
    3407             :         Message* msg__) -> void
    3408             : {
    3409           0 :     Write((v__).name(), msg__);
    3410             :     // Sentinel = 'name'
    3411           0 :     (msg__)->WriteSentinel(15034981);
    3412           0 :     Write((v__).value(), msg__);
    3413             :     // Sentinel = 'value'
    3414           0 :     (msg__)->WriteSentinel(3456818542);
    3415           0 : }
    3416             : 
    3417           0 : auto PCacheChild::Read(
    3418             :         HeaderEntry* v__,
    3419             :         const Message* msg__,
    3420             :         PickleIterator* iter__) -> bool
    3421             : {
    3422           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    3423           0 :         FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    3424           0 :         return false;
    3425             :     }
    3426             :     // Sentinel = 'name'
    3427           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    3428           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    3429           0 :         return false;
    3430             :     }
    3431           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    3432           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    3433           0 :         return false;
    3434             :     }
    3435             :     // Sentinel = 'value'
    3436           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    3437           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    3438           0 :         return false;
    3439             :     }
    3440           0 :     return true;
    3441             : }
    3442             : 
    3443           0 : auto PCacheChild::Write(
    3444             :         const IPCChannelInfo& v__,
    3445             :         Message* msg__) -> void
    3446             : {
    3447           0 :     Write((v__).securityInfo(), msg__);
    3448             :     // Sentinel = 'securityInfo'
    3449           0 :     (msg__)->WriteSentinel(158838750);
    3450           0 : }
    3451             : 
    3452           0 : auto PCacheChild::Read(
    3453             :         IPCChannelInfo* v__,
    3454             :         const Message* msg__,
    3455             :         PickleIterator* iter__) -> bool
    3456             : {
    3457           0 :     if ((!(Read((&((v__)->securityInfo())), msg__, iter__)))) {
    3458           0 :         FatalError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
    3459           0 :         return false;
    3460             :     }
    3461             :     // Sentinel = 'securityInfo'
    3462           0 :     if ((!((msg__)->ReadSentinel(iter__, 158838750)))) {
    3463           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'securityInfo' (nsCString) member of 'IPCChannelInfo'");
    3464           0 :         return false;
    3465             :     }
    3466           0 :     return true;
    3467             : }
    3468             : 
    3469           0 : auto PCacheChild::Write(
    3470             :         const ContentPrincipalInfo& v__,
    3471             :         Message* msg__) -> void
    3472             : {
    3473           0 :     Write((v__).attrs(), msg__);
    3474             :     // Sentinel = 'attrs'
    3475           0 :     (msg__)->WriteSentinel(3014987797);
    3476           0 :     Write((v__).originNoSuffix(), msg__);
    3477             :     // Sentinel = 'originNoSuffix'
    3478           0 :     (msg__)->WriteSentinel(2833071422);
    3479           0 :     Write((v__).spec(), msg__);
    3480             :     // Sentinel = 'spec'
    3481           0 :     (msg__)->WriteSentinel(1630740541);
    3482           0 : }
    3483             : 
    3484           0 : auto PCacheChild::Read(
    3485             :         ContentPrincipalInfo* v__,
    3486             :         const Message* msg__,
    3487             :         PickleIterator* iter__) -> bool
    3488             : {
    3489           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    3490           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    3491           0 :         return false;
    3492             :     }
    3493             :     // Sentinel = 'attrs'
    3494           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    3495           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    3496           0 :         return false;
    3497             :     }
    3498           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
    3499           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    3500           0 :         return false;
    3501             :     }
    3502             :     // Sentinel = 'originNoSuffix'
    3503           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
    3504           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    3505           0 :         return false;
    3506             :     }
    3507           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    3508           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    3509           0 :         return false;
    3510             :     }
    3511             :     // Sentinel = 'spec'
    3512           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    3513           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    3514           0 :         return false;
    3515             :     }
    3516           0 :     return true;
    3517             : }
    3518             : 
    3519           0 : auto PCacheChild::Write(
    3520             :         const StorageHasArgs& v__,
    3521             :         Message* msg__) -> void
    3522             : {
    3523           0 :     Write((v__).key(), msg__);
    3524             :     // Sentinel = 'key'
    3525           0 :     (msg__)->WriteSentinel(35142870);
    3526           0 : }
    3527             : 
    3528           0 : auto PCacheChild::Read(
    3529             :         StorageHasArgs* v__,
    3530             :         const Message* msg__,
    3531             :         PickleIterator* iter__) -> bool
    3532             : {
    3533           0 :     if ((!(Read((&((v__)->key())), msg__, iter__)))) {
    3534           0 :         FatalError("Error deserializing 'key' (nsString) member of 'StorageHasArgs'");
    3535           0 :         return false;
    3536             :     }
    3537             :     // Sentinel = 'key'
    3538           0 :     if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
    3539           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'StorageHasArgs'");
    3540           0 :         return false;
    3541             :     }
    3542           0 :     return true;
    3543             : }
    3544             : 
    3545           0 : auto PCacheChild::Write(
    3546             :         const PCacheChild* v__,
    3547             :         Message* msg__,
    3548             :         bool nullable__) -> void
    3549             : {
    3550             :     int32_t id;
    3551           0 :     if ((!(v__))) {
    3552           0 :         if ((!(nullable__))) {
    3553           0 :             FatalError("NULL actor value passed to non-nullable param");
    3554             :         }
    3555           0 :         id = 0;
    3556             :     }
    3557             :     else {
    3558           0 :         id = (v__)->Id();
    3559           0 :         if ((1) == (id)) {
    3560           0 :             FatalError("actor has been |delete|d");
    3561             :         }
    3562             :     }
    3563             : 
    3564           0 :     Write(id, msg__);
    3565           0 : }
    3566             : 
    3567           0 : auto PCacheChild::Read(
    3568             :         PCacheChild** v__,
    3569             :         const Message* msg__,
    3570             :         PickleIterator* iter__,
    3571             :         bool nullable__) -> bool
    3572             : {
    3573           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCache", PCacheMsgStart);
    3574           0 :     if ((actor).isNothing()) {
    3575           0 :         return false;
    3576             :     }
    3577             : 
    3578           0 :     (*(v__)) = static_cast<PCacheChild*>((actor).value());
    3579           0 :     return true;
    3580             : }
    3581             : 
    3582           0 : auto PCacheChild::Write(
    3583             :         const PChildToParentStreamChild* v__,
    3584             :         Message* msg__,
    3585             :         bool nullable__) -> void
    3586             : {
    3587             :     int32_t id;
    3588           0 :     if ((!(v__))) {
    3589           0 :         if ((!(nullable__))) {
    3590           0 :             FatalError("NULL actor value passed to non-nullable param");
    3591             :         }
    3592           0 :         id = 0;
    3593             :     }
    3594             :     else {
    3595           0 :         id = (v__)->Id();
    3596           0 :         if ((1) == (id)) {
    3597           0 :             FatalError("actor has been |delete|d");
    3598             :         }
    3599             :     }
    3600             : 
    3601           0 :     Write(id, msg__);
    3602           0 : }
    3603             : 
    3604           0 : auto PCacheChild::Read(
    3605             :         PChildToParentStreamChild** v__,
    3606             :         const Message* msg__,
    3607             :         PickleIterator* iter__,
    3608             :         bool nullable__) -> bool
    3609             : {
    3610           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
    3611           0 :     if ((actor).isNothing()) {
    3612           0 :         return false;
    3613             :     }
    3614             : 
    3615           0 :     (*(v__)) = static_cast<PChildToParentStreamChild*>((actor).value());
    3616           0 :     return true;
    3617             : }
    3618             : 
    3619           0 : auto PCacheChild::Write(
    3620             :         const PCacheStreamControlChild* v__,
    3621             :         Message* msg__,
    3622             :         bool nullable__) -> void
    3623             : {
    3624             :     int32_t id;
    3625           0 :     if ((!(v__))) {
    3626           0 :         if ((!(nullable__))) {
    3627           0 :             FatalError("NULL actor value passed to non-nullable param");
    3628             :         }
    3629           0 :         id = 0;
    3630             :     }
    3631             :     else {
    3632           0 :         id = (v__)->Id();
    3633           0 :         if ((1) == (id)) {
    3634           0 :             FatalError("actor has been |delete|d");
    3635             :         }
    3636             :     }
    3637             : 
    3638           0 :     Write(id, msg__);
    3639           0 : }
    3640             : 
    3641           0 : auto PCacheChild::Read(
    3642             :         PCacheStreamControlChild** v__,
    3643             :         const Message* msg__,
    3644             :         PickleIterator* iter__,
    3645             :         bool nullable__) -> bool
    3646             : {
    3647           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PCacheStreamControl", PCacheStreamControlMsgStart);
    3648           0 :     if ((actor).isNothing()) {
    3649           0 :         return false;
    3650             :     }
    3651             : 
    3652           0 :     (*(v__)) = static_cast<PCacheStreamControlChild*>((actor).value());
    3653           0 :     return true;
    3654             : }
    3655             : 
    3656             : 
    3657             : 
    3658             : } // namespace cache
    3659             : } // namespace dom
    3660             : } // namespace mozilla

Generated by: LCOV version 1.13