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

Generated by: LCOV version 1.13