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

Generated by: LCOV version 1.13