LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundFileHandleParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1294 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 97 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/PBackgroundFileHandleParent.h"
       8             : 
       9             : #include "mozilla/dom/PBackgroundFileRequestParent.h"
      10             : #include "mozilla/dom/PBackgroundMutableFileParent.h"
      11             : #include "mozilla/ipc/PChildToParentStreamParent.h"
      12             : #include "mozilla/ipc/PFileDescriptorSetParent.h"
      13             : #include "mozilla/ipc/PIPCBlobInputStreamParent.h"
      14             : #include "mozilla/ipc/PParentToChildStreamParent.h"
      15             : 
      16             : #include "nsIFile.h"
      17             : #include "GeckoProfiler.h"
      18             : 
      19             : namespace mozilla {
      20             : namespace dom {
      21             : 
      22             : 
      23           0 : auto PBackgroundFileHandleParent::RecvPBackgroundFileRequestConstructor(
      24             :         PBackgroundFileRequestParent* actor,
      25             :         const FileRequestParams& params) -> mozilla::ipc::IPCResult
      26             : {
      27           0 :     return IPC_OK();
      28             : }
      29             : 
      30             : 
      31           0 : MOZ_IMPLICIT PBackgroundFileHandleParent::PBackgroundFileHandleParent() :
      32             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      33           0 :     mState(PBackgroundFileHandle::__Dead)
      34             : {
      35           0 :     MOZ_COUNT_CTOR(PBackgroundFileHandleParent);
      36           0 : }
      37             : 
      38           0 : PBackgroundFileHandleParent::~PBackgroundFileHandleParent()
      39             : {
      40           0 :     MOZ_COUNT_DTOR(PBackgroundFileHandleParent);
      41           0 : }
      42             : 
      43           0 : auto PBackgroundFileHandleParent::Manager() const -> PBackgroundMutableFileParent*
      44             : {
      45           0 :     return static_cast<PBackgroundMutableFileParent*>(IProtocol::Manager());
      46             : }
      47             : 
      48           0 : auto PBackgroundFileHandleParent::ManagedPBackgroundFileRequestParent(nsTArray<PBackgroundFileRequestParent*>& aArr) const -> void
      49             : {
      50           0 :     (mManagedPBackgroundFileRequestParent).ToArray(aArr);
      51           0 : }
      52             : 
      53           0 : auto PBackgroundFileHandleParent::ManagedPBackgroundFileRequestParent() const -> const ManagedContainer<PBackgroundFileRequestParent>&
      54             : {
      55           0 :     return mManagedPBackgroundFileRequestParent;
      56             : }
      57             : 
      58           0 : auto PBackgroundFileHandleParent::Send__delete__(PBackgroundFileHandleParent* actor) -> bool
      59             : {
      60           0 :     if ((!(actor))) {
      61           0 :         return false;
      62             :     }
      63             : 
      64           0 :     IPC::Message* msg__ = PBackgroundFileHandle::Msg___delete__((actor)->Id());
      65             : 
      66           0 :     (actor)->Write(actor, msg__, false);
      67             :     // Sentinel = 'actor'
      68           0 :     (msg__)->WriteSentinel(875202478);
      69             : 
      70             : 
      71             : 
      72           0 :     if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
      73           0 :         mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      74             :     }
      75           0 :     AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg___delete__", OTHER);
      76           0 :     PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg___delete____ID, (&((actor)->mState)));
      77             : 
      78           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      79             : 
      80           0 :     IProtocol* mgr = (actor)->Manager();
      81           0 :     (actor)->DestroySubtree(Deletion);
      82           0 :     (actor)->DeallocSubtree();
      83           0 :     (mgr)->RemoveManagee(PBackgroundFileHandleMsgStart, actor);
      84           0 :     return sendok__;
      85             : }
      86             : 
      87           0 : auto PBackgroundFileHandleParent::SendComplete(const bool& aborted) -> bool
      88             : {
      89           0 :     IPC::Message* msg__ = PBackgroundFileHandle::Msg_Complete(Id());
      90             : 
      91           0 :     Write(aborted, msg__);
      92             :     // Sentinel = 'aborted'
      93           0 :     (msg__)->WriteSentinel(3877028438);
      94             : 
      95             : 
      96             : 
      97             : 
      98           0 :     if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
      99           0 :         mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     100             :     }
     101           0 :     AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg_Complete", OTHER);
     102           0 :     PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg_Complete__ID, (&(mState)));
     103             : 
     104           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     105           0 :     return sendok__;
     106             : }
     107             : 
     108           0 : auto PBackgroundFileHandleParent::RemoveManagee(
     109             :         int32_t aProtocolId,
     110             :         ProtocolBase* aListener) -> void
     111             : {
     112           0 :     switch (aProtocolId) {
     113             :     case PBackgroundFileRequestMsgStart:
     114             :         {
     115           0 :             PBackgroundFileRequestParent* actor = static_cast<PBackgroundFileRequestParent*>(aListener);
     116           0 :             auto& container = mManagedPBackgroundFileRequestParent;
     117           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     118             : 
     119           0 :             (container).RemoveEntry(actor);
     120           0 :             DeallocPBackgroundFileRequestParent(actor);
     121           0 :             return;
     122             :         }
     123             :     default:
     124             :         {
     125           0 :             FatalError("unreached");
     126           0 :             return;
     127             :         }
     128             :     }
     129             : }
     130             : 
     131           0 : auto PBackgroundFileHandleParent::OnMessageReceived(const Message& msg__) -> PBackgroundFileHandleParent::Result
     132             : {
     133           0 :     switch ((msg__).type()) {
     134             :     case PBackgroundFileHandle::Msg_DeleteMe__ID:
     135             :         {
     136           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
     137           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     138             :             }
     139           0 :             AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg_DeleteMe", OTHER);
     140             : 
     141           0 :             PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg_DeleteMe__ID, (&(mState)));
     142           0 :             if ((!(RecvDeleteMe()))) {
     143           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     144             :                 // Error handled in mozilla::ipc::IPCResult
     145           0 :                 return MsgProcessingError;
     146             :             }
     147             : 
     148           0 :             return MsgProcessed;
     149             :         }
     150             :     case PBackgroundFileHandle::Msg_Finish__ID:
     151             :         {
     152           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
     153           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     154             :             }
     155           0 :             AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg_Finish", OTHER);
     156             : 
     157           0 :             PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg_Finish__ID, (&(mState)));
     158           0 :             if ((!(RecvFinish()))) {
     159           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     160             :                 // Error handled in mozilla::ipc::IPCResult
     161           0 :                 return MsgProcessingError;
     162             :             }
     163             : 
     164           0 :             return MsgProcessed;
     165             :         }
     166             :     case PBackgroundFileHandle::Msg_Abort__ID:
     167             :         {
     168           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
     169           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     170             :             }
     171           0 :             AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg_Abort", OTHER);
     172             : 
     173           0 :             PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg_Abort__ID, (&(mState)));
     174           0 :             if ((!(RecvAbort()))) {
     175           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     176             :                 // Error handled in mozilla::ipc::IPCResult
     177           0 :                 return MsgProcessingError;
     178             :             }
     179             : 
     180           0 :             return MsgProcessed;
     181             :         }
     182             :     case PBackgroundFileHandle::Msg_PBackgroundFileRequestConstructor__ID:
     183             :         {
     184           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundFileHandleParent")) {
     185           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundFileHandleParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     186             :             }
     187           0 :             AUTO_PROFILER_LABEL("PBackgroundFileHandle::Msg_PBackgroundFileRequestConstructor", OTHER);
     188             : 
     189           0 :             PickleIterator iter__(msg__);
     190             :             ActorHandle handle__;
     191             :             PBackgroundFileRequestParent* actor;
     192           0 :             FileRequestParams params;
     193             : 
     194           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     195           0 :                 FatalError("Error deserializing 'ActorHandle'");
     196           0 :                 return MsgValueError;
     197             :             }
     198             :             // Sentinel = 'actor'
     199           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     200           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     201           0 :                 return MsgValueError;
     202             :             }
     203           0 :             if ((!(Read((&(params)), (&(msg__)), (&(iter__)))))) {
     204           0 :                 FatalError("Error deserializing 'FileRequestParams'");
     205           0 :                 return MsgValueError;
     206             :             }
     207             :             // Sentinel = 'params'
     208           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
     209           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'FileRequestParams'");
     210           0 :                 return MsgValueError;
     211             :             }
     212           0 :             (msg__).EndRead(iter__, (msg__).type());
     213           0 :             PBackgroundFileHandle::Transition(PBackgroundFileHandle::Msg_PBackgroundFileRequestConstructor__ID, (&(mState)));
     214           0 :             actor = AllocPBackgroundFileRequestParent(params);
     215           0 :             if ((!(actor))) {
     216           0 :                 NS_WARNING("Error constructing actor PBackgroundFileRequestParent");
     217           0 :                 return MsgValueError;
     218             :             }
     219           0 :             (actor)->SetManager(this);
     220           0 :             RegisterID(actor, (handle__).mId);
     221           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     222           0 :             (mManagedPBackgroundFileRequestParent).PutEntry(actor);
     223           0 :             (actor)->mState = mozilla::dom::PBackgroundFileRequest::__Start;
     224             : 
     225           0 :             if ((!(RecvPBackgroundFileRequestConstructor(mozilla::Move(actor), mozilla::Move(params))))) {
     226           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     227             :                 // Error handled in mozilla::ipc::IPCResult
     228           0 :                 return MsgProcessingError;
     229             :             }
     230             : 
     231           0 :             return MsgProcessed;
     232             :         }
     233             :     case PBackgroundFileHandle::Reply___delete____ID:
     234             :         {
     235           0 :             return MsgProcessed;
     236             :         }
     237             :     default:
     238             :         {
     239           0 :             return MsgNotKnown;
     240             :         }
     241             :     }
     242             : }
     243             : 
     244           0 : auto PBackgroundFileHandleParent::OnMessageReceived(
     245             :         const Message& msg__,
     246             :         Message*& reply__) -> PBackgroundFileHandleParent::Result
     247             : {
     248           0 :     return MsgNotKnown;
     249             : }
     250             : 
     251           0 : auto PBackgroundFileHandleParent::OnCallReceived(
     252             :         const Message& msg__,
     253             :         Message*& reply__) -> PBackgroundFileHandleParent::Result
     254             : {
     255           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     256             :     return MsgNotKnown;
     257             : }
     258             : 
     259           0 : auto PBackgroundFileHandleParent::GetProtocolTypeId() -> int32_t
     260             : {
     261           0 :     return PBackgroundFileHandleMsgStart;
     262             : }
     263             : 
     264           0 : auto PBackgroundFileHandleParent::ProtocolName() const -> const char*
     265             : {
     266           0 :     return "PBackgroundFileHandleParent";
     267             : }
     268             : 
     269           0 : auto PBackgroundFileHandleParent::DestroySubtree(ActorDestroyReason why) -> void
     270             : {
     271             :     // Unregister from our manager.
     272           0 :     Unregister(Id());
     273             : 
     274           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     275             : 
     276             :     {
     277             :         // Recursively shutting down PBackgroundFileRequest kids
     278           0 :         nsTArray<PBackgroundFileRequestParent*> kids;
     279             :         // Accumulate kids into a stable structure to iterate over
     280           0 :         ManagedPBackgroundFileRequestParent(kids);
     281           0 :         for (auto& kid : kids) {
     282             :             // Guarding against a child removing a sibling from the list during the iteration.
     283           0 :             if ((mManagedPBackgroundFileRequestParent).Contains(kid)) {
     284           0 :                 (kid)->DestroySubtree(subtreewhy);
     285             :             }
     286             :         }
     287             :     }
     288             : 
     289             :     // Reject owning pending promises.
     290           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     291             : 
     292             :     // Finally, destroy "us".
     293           0 :     ActorDestroy(why);
     294           0 : }
     295             : 
     296           0 : auto PBackgroundFileHandleParent::DeallocSubtree() -> void
     297             : {
     298             :     {
     299             :         // Recursively deleting PBackgroundFileRequest kids
     300           0 :         for (auto iter = (mManagedPBackgroundFileRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     301           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     302             :         }
     303             : 
     304           0 :         for (auto iter = (mManagedPBackgroundFileRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     305           0 :             DeallocPBackgroundFileRequestParent(((iter).Get())->GetKey());
     306             :         }
     307           0 :         (mManagedPBackgroundFileRequestParent).Clear();
     308             :     }
     309           0 : }
     310             : 
     311           0 : auto PBackgroundFileHandleParent::Write(
     312             :         const nsTArray<InputStreamParams>& v__,
     313             :         Message* msg__) -> void
     314             : {
     315           0 :     uint32_t length = (v__).Length();
     316           0 :     Write(length, msg__);
     317             :     // Sentinel = ('length', 'InputStreamParams[]')
     318           0 :     (msg__)->WriteSentinel(348334258);
     319             : 
     320           0 :     for (auto& elem : v__) {
     321           0 :         Write(elem, msg__);
     322             :         // Sentinel = 'InputStreamParams[]'
     323           0 :         (msg__)->WriteSentinel(2927715197);
     324             :     }
     325           0 : }
     326             : 
     327           0 : auto PBackgroundFileHandleParent::Read(
     328             :         nsTArray<InputStreamParams>* v__,
     329             :         const Message* msg__,
     330             :         PickleIterator* iter__) -> bool
     331             : {
     332           0 :     nsTArray<InputStreamParams> fa;
     333             :     uint32_t length;
     334           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     335           0 :         mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
     336           0 :         return false;
     337             :     }
     338             :     // Sentinel = ('length', 'InputStreamParams[]')
     339           0 :     if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
     340           0 :         mozilla::ipc::SentinelReadError("InputStreamParams[]");
     341           0 :         return false;
     342             :     }
     343             : 
     344           0 :     InputStreamParams* elems = (fa).AppendElements(length);
     345           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     346           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     347           0 :             FatalError("Error deserializing 'InputStreamParams[i]'");
     348           0 :             return false;
     349             :         }
     350             :         // Sentinel = 'InputStreamParams[]'
     351           0 :         if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
     352           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
     353           0 :             return false;
     354             :         }
     355             :     }
     356           0 :     (v__)->SwapElements(fa);
     357           0 :     return true;
     358             : }
     359             : 
     360           0 : auto PBackgroundFileHandleParent::Write(
     361             :         const IPCFile& v__,
     362             :         Message* msg__) -> void
     363             : {
     364           0 :     Write((v__).name(), msg__);
     365             :     // Sentinel = 'name'
     366           0 :     (msg__)->WriteSentinel(15034981);
     367           0 :     Write((v__).lastModified(), msg__);
     368             :     // Sentinel = 'lastModified'
     369           0 :     (msg__)->WriteSentinel(3456113257);
     370           0 :     Write((v__).DOMPath(), msg__);
     371             :     // Sentinel = 'DOMPath'
     372           0 :     (msg__)->WriteSentinel(1724352494);
     373           0 :     Write((v__).fullPath(), msg__);
     374             :     // Sentinel = 'fullPath'
     375           0 :     (msg__)->WriteSentinel(385652698);
     376           0 :     Write((v__).isDirectory(), msg__);
     377             :     // Sentinel = 'isDirectory'
     378           0 :     (msg__)->WriteSentinel(2309743506);
     379           0 : }
     380             : 
     381           0 : auto PBackgroundFileHandleParent::Read(
     382             :         IPCFile* v__,
     383             :         const Message* msg__,
     384             :         PickleIterator* iter__) -> bool
     385             : {
     386           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
     387           0 :         FatalError("Error deserializing 'name' (nsString) member of 'IPCFile'");
     388           0 :         return false;
     389             :     }
     390             :     // Sentinel = 'name'
     391           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
     392           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'IPCFile'");
     393           0 :         return false;
     394             :     }
     395           0 :     if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
     396           0 :         FatalError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
     397           0 :         return false;
     398             :     }
     399             :     // Sentinel = 'lastModified'
     400           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
     401           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (int64_t) member of 'IPCFile'");
     402           0 :         return false;
     403             :     }
     404           0 :     if ((!(Read((&((v__)->DOMPath())), msg__, iter__)))) {
     405           0 :         FatalError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
     406           0 :         return false;
     407             :     }
     408             :     // Sentinel = 'DOMPath'
     409           0 :     if ((!((msg__)->ReadSentinel(iter__, 1724352494)))) {
     410           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'DOMPath' (nsString) member of 'IPCFile'");
     411           0 :         return false;
     412             :     }
     413           0 :     if ((!(Read((&((v__)->fullPath())), msg__, iter__)))) {
     414           0 :         FatalError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
     415           0 :         return false;
     416             :     }
     417             :     // Sentinel = 'fullPath'
     418           0 :     if ((!((msg__)->ReadSentinel(iter__, 385652698)))) {
     419           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fullPath' (nsString) member of 'IPCFile'");
     420           0 :         return false;
     421             :     }
     422           0 :     if ((!(Read((&((v__)->isDirectory())), msg__, iter__)))) {
     423           0 :         FatalError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
     424           0 :         return false;
     425             :     }
     426             :     // Sentinel = 'isDirectory'
     427           0 :     if ((!((msg__)->ReadSentinel(iter__, 2309743506)))) {
     428           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'isDirectory' (bool) member of 'IPCFile'");
     429           0 :         return false;
     430             :     }
     431           0 :     return true;
     432             : }
     433             : 
     434           0 : auto PBackgroundFileHandleParent::Write(
     435             :         const OptionalInputStreamParams& v__,
     436             :         Message* msg__) -> void
     437             : {
     438             :     typedef OptionalInputStreamParams type__;
     439           0 :     Write(int((v__).type()), msg__);
     440             :     // Sentinel = 'OptionalInputStreamParams'
     441           0 :     (msg__)->WriteSentinel(1355174443);
     442             : 
     443           0 :     switch ((v__).type()) {
     444             :     case type__::Tvoid_t:
     445             :         {
     446           0 :             Write((v__).get_void_t(), msg__);
     447             :             // Sentinel = 'Tvoid_t'
     448           0 :             (msg__)->WriteSentinel(3041273328);
     449           0 :             return;
     450             :         }
     451             :     case type__::TInputStreamParams:
     452             :         {
     453           0 :             Write((v__).get_InputStreamParams(), msg__);
     454             :             // Sentinel = 'TInputStreamParams'
     455           0 :             (msg__)->WriteSentinel(55652096);
     456           0 :             return;
     457             :         }
     458             :     default:
     459             :         {
     460           0 :             FatalError("unknown union type");
     461           0 :             return;
     462             :         }
     463             :     }
     464             : }
     465             : 
     466           0 : auto PBackgroundFileHandleParent::Read(
     467             :         OptionalInputStreamParams* v__,
     468             :         const Message* msg__,
     469             :         PickleIterator* iter__) -> bool
     470             : {
     471             :     typedef OptionalInputStreamParams type__;
     472             :     int type;
     473           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     474           0 :         mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
     475           0 :         return false;
     476             :     }
     477             :     // Sentinel = 'OptionalInputStreamParams'
     478           0 :     if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
     479           0 :         mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
     480           0 :         return false;
     481             :     }
     482             : 
     483           0 :     switch (type) {
     484             :     case type__::Tvoid_t:
     485             :         {
     486             :             void_t tmp = void_t();
     487           0 :             (*(v__)) = tmp;
     488           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     489           0 :                 FatalError("Error deserializing Union type");
     490           0 :                 return false;
     491             :             }
     492             :             // Sentinel = 'Tvoid_t'
     493           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     494           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     495           0 :                 return false;
     496             :             }
     497           0 :             return true;
     498             :         }
     499             :     case type__::TInputStreamParams:
     500             :         {
     501           0 :             InputStreamParams tmp = InputStreamParams();
     502           0 :             (*(v__)) = tmp;
     503           0 :             if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
     504           0 :                 FatalError("Error deserializing Union type");
     505           0 :                 return false;
     506             :             }
     507             :             // Sentinel = 'TInputStreamParams'
     508           0 :             if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
     509           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     510           0 :                 return false;
     511             :             }
     512           0 :             return true;
     513             :         }
     514             :     default:
     515             :         {
     516           0 :             FatalError("unknown union type");
     517           0 :             return false;
     518             :         }
     519             :     }
     520             : }
     521             : 
     522           0 : auto PBackgroundFileHandleParent::Write(
     523             :         const FileRequestReadParams& v__,
     524             :         Message* msg__) -> void
     525             : {
     526           0 :     Write((v__).offset(), msg__);
     527             :     // Sentinel = 'offset'
     528           0 :     (msg__)->WriteSentinel(1369947863);
     529           0 :     Write((v__).size(), msg__);
     530             :     // Sentinel = 'size'
     531           0 :     (msg__)->WriteSentinel(931048223);
     532           0 : }
     533             : 
     534           0 : auto PBackgroundFileHandleParent::Read(
     535             :         FileRequestReadParams* v__,
     536             :         const Message* msg__,
     537             :         PickleIterator* iter__) -> bool
     538             : {
     539           0 :     if ((!(Read((&((v__)->offset())), msg__, iter__)))) {
     540           0 :         FatalError("Error deserializing 'offset' (uint64_t) member of 'FileRequestReadParams'");
     541           0 :         return false;
     542             :     }
     543             :     // Sentinel = 'offset'
     544           0 :     if ((!((msg__)->ReadSentinel(iter__, 1369947863)))) {
     545           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'offset' (uint64_t) member of 'FileRequestReadParams'");
     546           0 :         return false;
     547             :     }
     548           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
     549           0 :         FatalError("Error deserializing 'size' (uint64_t) member of 'FileRequestReadParams'");
     550           0 :         return false;
     551             :     }
     552             :     // Sentinel = 'size'
     553           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
     554           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint64_t) member of 'FileRequestReadParams'");
     555           0 :         return false;
     556             :     }
     557           0 :     return true;
     558             : }
     559             : 
     560           0 : auto PBackgroundFileHandleParent::Write(
     561             :         const IPCRemoteStream& v__,
     562             :         Message* msg__) -> void
     563             : {
     564           0 :     Write((v__).delayedStart(), msg__);
     565             :     // Sentinel = 'delayedStart'
     566           0 :     (msg__)->WriteSentinel(1491822294);
     567           0 :     Write((v__).stream(), msg__);
     568             :     // Sentinel = 'stream'
     569           0 :     (msg__)->WriteSentinel(4152748422);
     570           0 : }
     571             : 
     572           0 : auto PBackgroundFileHandleParent::Read(
     573             :         IPCRemoteStream* v__,
     574             :         const Message* msg__,
     575             :         PickleIterator* iter__) -> bool
     576             : {
     577           0 :     if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
     578           0 :         FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     579           0 :         return false;
     580             :     }
     581             :     // Sentinel = 'delayedStart'
     582           0 :     if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
     583           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
     584           0 :         return false;
     585             :     }
     586           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
     587           0 :         FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     588           0 :         return false;
     589             :     }
     590             :     // Sentinel = 'stream'
     591           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
     592           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
     593           0 :         return false;
     594             :     }
     595           0 :     return true;
     596             : }
     597             : 
     598           0 : auto PBackgroundFileHandleParent::Write(
     599             :         const FileRequestParams& v__,
     600             :         Message* msg__) -> void
     601             : {
     602             :     typedef FileRequestParams type__;
     603           0 :     Write(int((v__).type()), msg__);
     604             :     // Sentinel = 'FileRequestParams'
     605           0 :     (msg__)->WriteSentinel(3744650970);
     606             : 
     607           0 :     switch ((v__).type()) {
     608             :     case type__::TFileRequestGetMetadataParams:
     609             :         {
     610           0 :             Write((v__).get_FileRequestGetMetadataParams(), msg__);
     611             :             // Sentinel = 'TFileRequestGetMetadataParams'
     612           0 :             (msg__)->WriteSentinel(1166774555);
     613           0 :             return;
     614             :         }
     615             :     case type__::TFileRequestReadParams:
     616             :         {
     617           0 :             Write((v__).get_FileRequestReadParams(), msg__);
     618             :             // Sentinel = 'TFileRequestReadParams'
     619           0 :             (msg__)->WriteSentinel(1685693405);
     620           0 :             return;
     621             :         }
     622             :     case type__::TFileRequestWriteParams:
     623             :         {
     624           0 :             Write((v__).get_FileRequestWriteParams(), msg__);
     625             :             // Sentinel = 'TFileRequestWriteParams'
     626           0 :             (msg__)->WriteSentinel(2147439215);
     627           0 :             return;
     628             :         }
     629             :     case type__::TFileRequestTruncateParams:
     630             :         {
     631           0 :             Write((v__).get_FileRequestTruncateParams(), msg__);
     632             :             // Sentinel = 'TFileRequestTruncateParams'
     633           0 :             (msg__)->WriteSentinel(153458995);
     634           0 :             return;
     635             :         }
     636             :     case type__::TFileRequestFlushParams:
     637             :         {
     638           0 :             Write((v__).get_FileRequestFlushParams(), msg__);
     639             :             // Sentinel = 'TFileRequestFlushParams'
     640           0 :             (msg__)->WriteSentinel(258874732);
     641           0 :             return;
     642             :         }
     643             :     case type__::TFileRequestGetFileParams:
     644             :         {
     645           0 :             Write((v__).get_FileRequestGetFileParams(), msg__);
     646             :             // Sentinel = 'TFileRequestGetFileParams'
     647           0 :             (msg__)->WriteSentinel(3815923694);
     648           0 :             return;
     649             :         }
     650             :     default:
     651             :         {
     652           0 :             FatalError("unknown union type");
     653           0 :             return;
     654             :         }
     655             :     }
     656             : }
     657             : 
     658           0 : auto PBackgroundFileHandleParent::Read(
     659             :         FileRequestParams* v__,
     660             :         const Message* msg__,
     661             :         PickleIterator* iter__) -> bool
     662             : {
     663             :     typedef FileRequestParams type__;
     664             :     int type;
     665           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     666           0 :         mozilla::ipc::UnionTypeReadError("FileRequestParams");
     667           0 :         return false;
     668             :     }
     669             :     // Sentinel = 'FileRequestParams'
     670           0 :     if ((!((msg__)->ReadSentinel(iter__, 3744650970)))) {
     671           0 :         mozilla::ipc::SentinelReadError("FileRequestParams");
     672           0 :         return false;
     673             :     }
     674             : 
     675           0 :     switch (type) {
     676             :     case type__::TFileRequestGetMetadataParams:
     677             :         {
     678           0 :             FileRequestGetMetadataParams tmp = FileRequestGetMetadataParams();
     679           0 :             (*(v__)) = tmp;
     680           0 :             if ((!(Read((&((v__)->get_FileRequestGetMetadataParams())), msg__, iter__)))) {
     681           0 :                 FatalError("Error deserializing Union type");
     682           0 :                 return false;
     683             :             }
     684             :             // Sentinel = 'TFileRequestGetMetadataParams'
     685           0 :             if ((!((msg__)->ReadSentinel(iter__, 1166774555)))) {
     686           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     687           0 :                 return false;
     688             :             }
     689           0 :             return true;
     690             :         }
     691             :     case type__::TFileRequestReadParams:
     692             :         {
     693           0 :             FileRequestReadParams tmp = FileRequestReadParams();
     694           0 :             (*(v__)) = tmp;
     695           0 :             if ((!(Read((&((v__)->get_FileRequestReadParams())), msg__, iter__)))) {
     696           0 :                 FatalError("Error deserializing Union type");
     697           0 :                 return false;
     698             :             }
     699             :             // Sentinel = 'TFileRequestReadParams'
     700           0 :             if ((!((msg__)->ReadSentinel(iter__, 1685693405)))) {
     701           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     702           0 :                 return false;
     703             :             }
     704           0 :             return true;
     705             :         }
     706             :     case type__::TFileRequestWriteParams:
     707             :         {
     708           0 :             FileRequestWriteParams tmp = FileRequestWriteParams();
     709           0 :             (*(v__)) = tmp;
     710           0 :             if ((!(Read((&((v__)->get_FileRequestWriteParams())), msg__, iter__)))) {
     711           0 :                 FatalError("Error deserializing Union type");
     712           0 :                 return false;
     713             :             }
     714             :             // Sentinel = 'TFileRequestWriteParams'
     715           0 :             if ((!((msg__)->ReadSentinel(iter__, 2147439215)))) {
     716           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     717           0 :                 return false;
     718             :             }
     719           0 :             return true;
     720             :         }
     721             :     case type__::TFileRequestTruncateParams:
     722             :         {
     723           0 :             FileRequestTruncateParams tmp = FileRequestTruncateParams();
     724           0 :             (*(v__)) = tmp;
     725           0 :             if ((!(Read((&((v__)->get_FileRequestTruncateParams())), msg__, iter__)))) {
     726           0 :                 FatalError("Error deserializing Union type");
     727           0 :                 return false;
     728             :             }
     729             :             // Sentinel = 'TFileRequestTruncateParams'
     730           0 :             if ((!((msg__)->ReadSentinel(iter__, 153458995)))) {
     731           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     732           0 :                 return false;
     733             :             }
     734           0 :             return true;
     735             :         }
     736             :     case type__::TFileRequestFlushParams:
     737             :         {
     738           0 :             FileRequestFlushParams tmp = FileRequestFlushParams();
     739           0 :             (*(v__)) = tmp;
     740           0 :             if ((!(Read((&((v__)->get_FileRequestFlushParams())), msg__, iter__)))) {
     741           0 :                 FatalError("Error deserializing Union type");
     742           0 :                 return false;
     743             :             }
     744             :             // Sentinel = 'TFileRequestFlushParams'
     745           0 :             if ((!((msg__)->ReadSentinel(iter__, 258874732)))) {
     746           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     747           0 :                 return false;
     748             :             }
     749           0 :             return true;
     750             :         }
     751             :     case type__::TFileRequestGetFileParams:
     752             :         {
     753           0 :             FileRequestGetFileParams tmp = FileRequestGetFileParams();
     754           0 :             (*(v__)) = tmp;
     755           0 :             if ((!(Read((&((v__)->get_FileRequestGetFileParams())), msg__, iter__)))) {
     756           0 :                 FatalError("Error deserializing Union type");
     757           0 :                 return false;
     758             :             }
     759             :             // Sentinel = 'TFileRequestGetFileParams'
     760           0 :             if ((!((msg__)->ReadSentinel(iter__, 3815923694)))) {
     761           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     762           0 :                 return false;
     763             :             }
     764           0 :             return true;
     765             :         }
     766             :     default:
     767             :         {
     768           0 :             FatalError("unknown union type");
     769           0 :             return false;
     770             :         }
     771             :     }
     772             : }
     773             : 
     774           0 : auto PBackgroundFileHandleParent::Write(
     775             :         const FileRequestWriteParams& v__,
     776             :         Message* msg__) -> void
     777             : {
     778           0 :     Write((v__).offset(), msg__);
     779             :     // Sentinel = 'offset'
     780           0 :     (msg__)->WriteSentinel(1369947863);
     781           0 :     Write((v__).data(), msg__);
     782             :     // Sentinel = 'data'
     783           0 :     (msg__)->WriteSentinel(843352540);
     784           0 :     Write((v__).dataLength(), msg__);
     785             :     // Sentinel = 'dataLength'
     786           0 :     (msg__)->WriteSentinel(959713942);
     787           0 : }
     788             : 
     789           0 : auto PBackgroundFileHandleParent::Read(
     790             :         FileRequestWriteParams* v__,
     791             :         const Message* msg__,
     792             :         PickleIterator* iter__) -> bool
     793             : {
     794           0 :     if ((!(Read((&((v__)->offset())), msg__, iter__)))) {
     795           0 :         FatalError("Error deserializing 'offset' (uint64_t) member of 'FileRequestWriteParams'");
     796           0 :         return false;
     797             :     }
     798             :     // Sentinel = 'offset'
     799           0 :     if ((!((msg__)->ReadSentinel(iter__, 1369947863)))) {
     800           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'offset' (uint64_t) member of 'FileRequestWriteParams'");
     801           0 :         return false;
     802             :     }
     803           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
     804           0 :         FatalError("Error deserializing 'data' (FileRequestData) member of 'FileRequestWriteParams'");
     805           0 :         return false;
     806             :     }
     807             :     // Sentinel = 'data'
     808           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
     809           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (FileRequestData) member of 'FileRequestWriteParams'");
     810           0 :         return false;
     811             :     }
     812           0 :     if ((!(Read((&((v__)->dataLength())), msg__, iter__)))) {
     813           0 :         FatalError("Error deserializing 'dataLength' (uint64_t) member of 'FileRequestWriteParams'");
     814           0 :         return false;
     815             :     }
     816             :     // Sentinel = 'dataLength'
     817           0 :     if ((!((msg__)->ReadSentinel(iter__, 959713942)))) {
     818           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'dataLength' (uint64_t) member of 'FileRequestWriteParams'");
     819           0 :         return false;
     820             :     }
     821           0 :     return true;
     822             : }
     823             : 
     824           0 : auto PBackgroundFileHandleParent::Write(
     825             :         const FileInputStreamParams& v__,
     826             :         Message* msg__) -> void
     827             : {
     828           0 :     Write((v__).fileDescriptorIndex(), msg__);
     829             :     // Sentinel = 'fileDescriptorIndex'
     830           0 :     (msg__)->WriteSentinel(587329112);
     831           0 :     Write((v__).behaviorFlags(), msg__);
     832             :     // Sentinel = 'behaviorFlags'
     833           0 :     (msg__)->WriteSentinel(2404401962);
     834           0 :     Write((v__).ioFlags(), msg__);
     835             :     // Sentinel = 'ioFlags'
     836           0 :     (msg__)->WriteSentinel(1483009730);
     837           0 : }
     838             : 
     839           0 : auto PBackgroundFileHandleParent::Read(
     840             :         FileInputStreamParams* v__,
     841             :         const Message* msg__,
     842             :         PickleIterator* iter__) -> bool
     843             : {
     844           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
     845           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
     846           0 :         return false;
     847             :     }
     848             :     // Sentinel = 'fileDescriptorIndex'
     849           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
     850           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
     851           0 :         return false;
     852             :     }
     853           0 :     if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
     854           0 :         FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
     855           0 :         return false;
     856             :     }
     857             :     // Sentinel = 'behaviorFlags'
     858           0 :     if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
     859           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
     860           0 :         return false;
     861             :     }
     862           0 :     if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
     863           0 :         FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
     864           0 :         return false;
     865             :     }
     866             :     // Sentinel = 'ioFlags'
     867           0 :     if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
     868           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
     869           0 :         return false;
     870             :     }
     871           0 :     return true;
     872             : }
     873             : 
     874           0 : auto PBackgroundFileHandleParent::Write(
     875             :         const IPCBlobInputStreamParams& v__,
     876             :         Message* msg__) -> void
     877             : {
     878           0 :     Write((v__).id(), msg__);
     879             :     // Sentinel = 'id'
     880           0 :     (msg__)->WriteSentinel(2794505629);
     881           0 : }
     882             : 
     883           0 : auto PBackgroundFileHandleParent::Read(
     884             :         IPCBlobInputStreamParams* v__,
     885             :         const Message* msg__,
     886             :         PickleIterator* iter__) -> bool
     887             : {
     888           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
     889           0 :         FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     890           0 :         return false;
     891             :     }
     892             :     // Sentinel = 'id'
     893           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
     894           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
     895           0 :         return false;
     896             :     }
     897           0 :     return true;
     898             : }
     899             : 
     900           0 : auto PBackgroundFileHandleParent::Write(
     901             :         const FileRequestBlobData& v__,
     902             :         Message* msg__) -> void
     903             : {
     904           0 :     Write((v__).blob(), msg__);
     905             :     // Sentinel = 'blob'
     906           0 :     (msg__)->WriteSentinel(1963585077);
     907           0 : }
     908             : 
     909           0 : auto PBackgroundFileHandleParent::Read(
     910             :         FileRequestBlobData* v__,
     911             :         const Message* msg__,
     912             :         PickleIterator* iter__) -> bool
     913             : {
     914           0 :     if ((!(Read((&((v__)->blob())), msg__, iter__)))) {
     915           0 :         FatalError("Error deserializing 'blob' (IPCBlob) member of 'FileRequestBlobData'");
     916           0 :         return false;
     917             :     }
     918             :     // Sentinel = 'blob'
     919           0 :     if ((!((msg__)->ReadSentinel(iter__, 1963585077)))) {
     920           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'blob' (IPCBlob) member of 'FileRequestBlobData'");
     921           0 :         return false;
     922             :     }
     923           0 :     return true;
     924             : }
     925             : 
     926           0 : auto PBackgroundFileHandleParent::Write(
     927             :         const IPCFileUnion& v__,
     928             :         Message* msg__) -> void
     929             : {
     930             :     typedef IPCFileUnion type__;
     931           0 :     Write(int((v__).type()), msg__);
     932             :     // Sentinel = 'IPCFileUnion'
     933           0 :     (msg__)->WriteSentinel(1913022529);
     934             : 
     935           0 :     switch ((v__).type()) {
     936             :     case type__::Tvoid_t:
     937             :         {
     938           0 :             Write((v__).get_void_t(), msg__);
     939             :             // Sentinel = 'Tvoid_t'
     940           0 :             (msg__)->WriteSentinel(3041273328);
     941           0 :             return;
     942             :         }
     943             :     case type__::TIPCFile:
     944             :         {
     945           0 :             Write((v__).get_IPCFile(), msg__);
     946             :             // Sentinel = 'TIPCFile'
     947           0 :             (msg__)->WriteSentinel(3562676876);
     948           0 :             return;
     949             :         }
     950             :     default:
     951             :         {
     952           0 :             FatalError("unknown union type");
     953           0 :             return;
     954             :         }
     955             :     }
     956             : }
     957             : 
     958           0 : auto PBackgroundFileHandleParent::Read(
     959             :         IPCFileUnion* v__,
     960             :         const Message* msg__,
     961             :         PickleIterator* iter__) -> bool
     962             : {
     963             :     typedef IPCFileUnion type__;
     964             :     int type;
     965           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     966           0 :         mozilla::ipc::UnionTypeReadError("IPCFileUnion");
     967           0 :         return false;
     968             :     }
     969             :     // Sentinel = 'IPCFileUnion'
     970           0 :     if ((!((msg__)->ReadSentinel(iter__, 1913022529)))) {
     971           0 :         mozilla::ipc::SentinelReadError("IPCFileUnion");
     972           0 :         return false;
     973             :     }
     974             : 
     975           0 :     switch (type) {
     976             :     case type__::Tvoid_t:
     977             :         {
     978             :             void_t tmp = void_t();
     979           0 :             (*(v__)) = tmp;
     980           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     981           0 :                 FatalError("Error deserializing Union type");
     982           0 :                 return false;
     983             :             }
     984             :             // Sentinel = 'Tvoid_t'
     985           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     986           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     987           0 :                 return false;
     988             :             }
     989           0 :             return true;
     990             :         }
     991             :     case type__::TIPCFile:
     992             :         {
     993           0 :             IPCFile tmp = IPCFile();
     994           0 :             (*(v__)) = tmp;
     995           0 :             if ((!(Read((&((v__)->get_IPCFile())), msg__, iter__)))) {
     996           0 :                 FatalError("Error deserializing Union type");
     997           0 :                 return false;
     998             :             }
     999             :             // Sentinel = 'TIPCFile'
    1000           0 :             if ((!((msg__)->ReadSentinel(iter__, 3562676876)))) {
    1001           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1002           0 :                 return false;
    1003             :             }
    1004           0 :             return true;
    1005             :         }
    1006             :     default:
    1007             :         {
    1008           0 :             FatalError("unknown union type");
    1009           0 :             return false;
    1010             :         }
    1011             :     }
    1012             : }
    1013             : 
    1014           0 : auto PBackgroundFileHandleParent::Write(
    1015             :         const FileRequestGetMetadataParams& v__,
    1016             :         Message* msg__) -> void
    1017             : {
    1018           0 :     Write((v__).size(), msg__);
    1019             :     // Sentinel = 'size'
    1020           0 :     (msg__)->WriteSentinel(931048223);
    1021           0 :     Write((v__).lastModified(), msg__);
    1022             :     // Sentinel = 'lastModified'
    1023           0 :     (msg__)->WriteSentinel(3456113257);
    1024           0 : }
    1025             : 
    1026           0 : auto PBackgroundFileHandleParent::Read(
    1027             :         FileRequestGetMetadataParams* v__,
    1028             :         const Message* msg__,
    1029             :         PickleIterator* iter__) -> bool
    1030             : {
    1031           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    1032           0 :         FatalError("Error deserializing 'size' (bool) member of 'FileRequestGetMetadataParams'");
    1033           0 :         return false;
    1034             :     }
    1035             :     // Sentinel = 'size'
    1036           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    1037           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (bool) member of 'FileRequestGetMetadataParams'");
    1038           0 :         return false;
    1039             :     }
    1040           0 :     if ((!(Read((&((v__)->lastModified())), msg__, iter__)))) {
    1041           0 :         FatalError("Error deserializing 'lastModified' (bool) member of 'FileRequestGetMetadataParams'");
    1042           0 :         return false;
    1043             :     }
    1044             :     // Sentinel = 'lastModified'
    1045           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456113257)))) {
    1046           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'lastModified' (bool) member of 'FileRequestGetMetadataParams'");
    1047           0 :         return false;
    1048             :     }
    1049           0 :     return true;
    1050             : }
    1051             : 
    1052           0 : auto PBackgroundFileHandleParent::Write(
    1053             :         const FileRequestGetFileParams& v__,
    1054             :         Message* msg__) -> void
    1055             : {
    1056           0 : }
    1057             : 
    1058           0 : auto PBackgroundFileHandleParent::Read(
    1059             :         FileRequestGetFileParams* v__,
    1060             :         const Message* msg__,
    1061             :         PickleIterator* iter__) -> bool
    1062             : {
    1063           0 :     return true;
    1064             : }
    1065             : 
    1066           0 : auto PBackgroundFileHandleParent::Write(
    1067             :         const FileRequestData& v__,
    1068             :         Message* msg__) -> void
    1069             : {
    1070             :     typedef FileRequestData type__;
    1071           0 :     Write(int((v__).type()), msg__);
    1072             :     // Sentinel = 'FileRequestData'
    1073           0 :     (msg__)->WriteSentinel(2371456462);
    1074             : 
    1075           0 :     switch ((v__).type()) {
    1076             :     case type__::TFileRequestStringData:
    1077             :         {
    1078           0 :             Write((v__).get_FileRequestStringData(), msg__);
    1079             :             // Sentinel = 'TFileRequestStringData'
    1080           0 :             (msg__)->WriteSentinel(3179014272);
    1081           0 :             return;
    1082             :         }
    1083             :     case type__::TFileRequestBlobData:
    1084             :         {
    1085           0 :             Write((v__).get_FileRequestBlobData(), msg__);
    1086             :             // Sentinel = 'TFileRequestBlobData'
    1087           0 :             (msg__)->WriteSentinel(3085301148);
    1088           0 :             return;
    1089             :         }
    1090             :     default:
    1091             :         {
    1092           0 :             FatalError("unknown union type");
    1093           0 :             return;
    1094             :         }
    1095             :     }
    1096             : }
    1097             : 
    1098           0 : auto PBackgroundFileHandleParent::Read(
    1099             :         FileRequestData* v__,
    1100             :         const Message* msg__,
    1101             :         PickleIterator* iter__) -> bool
    1102             : {
    1103             :     typedef FileRequestData type__;
    1104             :     int type;
    1105           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1106           0 :         mozilla::ipc::UnionTypeReadError("FileRequestData");
    1107           0 :         return false;
    1108             :     }
    1109             :     // Sentinel = 'FileRequestData'
    1110           0 :     if ((!((msg__)->ReadSentinel(iter__, 2371456462)))) {
    1111           0 :         mozilla::ipc::SentinelReadError("FileRequestData");
    1112           0 :         return false;
    1113             :     }
    1114             : 
    1115           0 :     switch (type) {
    1116             :     case type__::TFileRequestStringData:
    1117             :         {
    1118           0 :             FileRequestStringData tmp = FileRequestStringData();
    1119           0 :             (*(v__)) = tmp;
    1120           0 :             if ((!(Read((&((v__)->get_FileRequestStringData())), msg__, iter__)))) {
    1121           0 :                 FatalError("Error deserializing Union type");
    1122           0 :                 return false;
    1123             :             }
    1124             :             // Sentinel = 'TFileRequestStringData'
    1125           0 :             if ((!((msg__)->ReadSentinel(iter__, 3179014272)))) {
    1126           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1127           0 :                 return false;
    1128             :             }
    1129           0 :             return true;
    1130             :         }
    1131             :     case type__::TFileRequestBlobData:
    1132             :         {
    1133           0 :             FileRequestBlobData tmp = FileRequestBlobData();
    1134           0 :             (*(v__)) = tmp;
    1135           0 :             if ((!(Read((&((v__)->get_FileRequestBlobData())), msg__, iter__)))) {
    1136           0 :                 FatalError("Error deserializing Union type");
    1137           0 :                 return false;
    1138             :             }
    1139             :             // Sentinel = 'TFileRequestBlobData'
    1140           0 :             if ((!((msg__)->ReadSentinel(iter__, 3085301148)))) {
    1141           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1142           0 :                 return false;
    1143             :             }
    1144           0 :             return true;
    1145             :         }
    1146             :     default:
    1147             :         {
    1148           0 :             FatalError("unknown union type");
    1149           0 :             return false;
    1150             :         }
    1151             :     }
    1152             : }
    1153             : 
    1154           0 : auto PBackgroundFileHandleParent::Write(
    1155             :         const InputStreamParamsWithFds& v__,
    1156             :         Message* msg__) -> void
    1157             : {
    1158           0 :     Write((v__).stream(), msg__);
    1159             :     // Sentinel = 'stream'
    1160           0 :     (msg__)->WriteSentinel(4152748422);
    1161           0 :     Write((v__).optionalFds(), msg__);
    1162             :     // Sentinel = 'optionalFds'
    1163           0 :     (msg__)->WriteSentinel(1021803302);
    1164           0 : }
    1165             : 
    1166           0 : auto PBackgroundFileHandleParent::Read(
    1167             :         InputStreamParamsWithFds* v__,
    1168             :         const Message* msg__,
    1169             :         PickleIterator* iter__) -> bool
    1170             : {
    1171           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1172           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1173           0 :         return false;
    1174             :     }
    1175             :     // Sentinel = 'stream'
    1176           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1177           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
    1178           0 :         return false;
    1179             :     }
    1180           0 :     if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
    1181           0 :         FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1182           0 :         return false;
    1183             :     }
    1184             :     // Sentinel = 'optionalFds'
    1185           0 :     if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
    1186           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
    1187           0 :         return false;
    1188             :     }
    1189           0 :     return true;
    1190             : }
    1191             : 
    1192           0 : auto PBackgroundFileHandleParent::Write(
    1193             :         const IPCBlobStream& v__,
    1194             :         Message* msg__) -> void
    1195             : {
    1196             :     typedef IPCBlobStream type__;
    1197           0 :     Write(int((v__).type()), msg__);
    1198             :     // Sentinel = 'IPCBlobStream'
    1199           0 :     (msg__)->WriteSentinel(2926762354);
    1200             : 
    1201           0 :     switch ((v__).type()) {
    1202             :     case type__::TPIPCBlobInputStreamParent:
    1203             :         {
    1204           0 :             Write((v__).get_PIPCBlobInputStreamParent(), msg__, false);
    1205             :             // Sentinel = 'TPIPCBlobInputStreamParent'
    1206           0 :             (msg__)->WriteSentinel(2944059743);
    1207           0 :             return;
    1208             :         }
    1209             :     case type__::TPIPCBlobInputStreamChild:
    1210             :         {
    1211           0 :             FatalError("wrong side!");
    1212           0 :             return;
    1213             :         }
    1214             :     case type__::TIPCStream:
    1215             :         {
    1216           0 :             Write((v__).get_IPCStream(), msg__);
    1217             :             // Sentinel = 'TIPCStream'
    1218           0 :             (msg__)->WriteSentinel(40701900);
    1219           0 :             return;
    1220             :         }
    1221             :     default:
    1222             :         {
    1223           0 :             FatalError("unknown union type");
    1224           0 :             return;
    1225             :         }
    1226             :     }
    1227             : }
    1228             : 
    1229           0 : auto PBackgroundFileHandleParent::Read(
    1230             :         IPCBlobStream* v__,
    1231             :         const Message* msg__,
    1232             :         PickleIterator* iter__) -> bool
    1233             : {
    1234             :     typedef IPCBlobStream type__;
    1235             :     int type;
    1236           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1237           0 :         mozilla::ipc::UnionTypeReadError("IPCBlobStream");
    1238           0 :         return false;
    1239             :     }
    1240             :     // Sentinel = 'IPCBlobStream'
    1241           0 :     if ((!((msg__)->ReadSentinel(iter__, 2926762354)))) {
    1242           0 :         mozilla::ipc::SentinelReadError("IPCBlobStream");
    1243           0 :         return false;
    1244             :     }
    1245             : 
    1246           0 :     switch (type) {
    1247             :     case type__::TPIPCBlobInputStreamParent:
    1248             :         {
    1249           0 :             return false;
    1250             :         }
    1251             :     case type__::TPIPCBlobInputStreamChild:
    1252             :         {
    1253           0 :             PIPCBlobInputStreamParent* tmp = nullptr;
    1254           0 :             (*(v__)) = tmp;
    1255           0 :             if ((!(Read((&((v__)->get_PIPCBlobInputStreamParent())), msg__, iter__, false)))) {
    1256           0 :                 FatalError("Error deserializing Union type");
    1257           0 :                 return false;
    1258             :             }
    1259             :             // Sentinel = 'TPIPCBlobInputStreamChild'
    1260           0 :             if ((!((msg__)->ReadSentinel(iter__, 3349556844)))) {
    1261           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1262           0 :                 return false;
    1263             :             }
    1264           0 :             return true;
    1265             :         }
    1266             :     case type__::TIPCStream:
    1267             :         {
    1268           0 :             IPCStream tmp = IPCStream();
    1269           0 :             (*(v__)) = tmp;
    1270           0 :             if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
    1271           0 :                 FatalError("Error deserializing Union type");
    1272           0 :                 return false;
    1273             :             }
    1274             :             // Sentinel = 'TIPCStream'
    1275           0 :             if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
    1276           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1277           0 :                 return false;
    1278             :             }
    1279           0 :             return true;
    1280             :         }
    1281             :     default:
    1282             :         {
    1283           0 :             FatalError("unknown union type");
    1284           0 :             return false;
    1285             :         }
    1286             :     }
    1287             : }
    1288             : 
    1289           0 : auto PBackgroundFileHandleParent::Write(
    1290             :         const nsTArray<FileDescriptor>& v__,
    1291             :         Message* msg__) -> void
    1292             : {
    1293           0 :     uint32_t length = (v__).Length();
    1294           0 :     Write(length, msg__);
    1295             :     // Sentinel = ('length', 'FileDescriptor[]')
    1296           0 :     (msg__)->WriteSentinel(1697726450);
    1297             : 
    1298           0 :     for (auto& elem : v__) {
    1299           0 :         Write(elem, msg__);
    1300             :         // Sentinel = 'FileDescriptor[]'
    1301           0 :         (msg__)->WriteSentinel(1630221245);
    1302             :     }
    1303           0 : }
    1304             : 
    1305           0 : auto PBackgroundFileHandleParent::Read(
    1306             :         nsTArray<FileDescriptor>* v__,
    1307             :         const Message* msg__,
    1308             :         PickleIterator* iter__) -> bool
    1309             : {
    1310           0 :     nsTArray<FileDescriptor> fa;
    1311             :     uint32_t length;
    1312           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1313           0 :         mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
    1314           0 :         return false;
    1315             :     }
    1316             :     // Sentinel = ('length', 'FileDescriptor[]')
    1317           0 :     if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
    1318           0 :         mozilla::ipc::SentinelReadError("FileDescriptor[]");
    1319           0 :         return false;
    1320             :     }
    1321             : 
    1322           0 :     FileDescriptor* elems = (fa).AppendElements(length);
    1323           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1324           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1325           0 :             FatalError("Error deserializing 'FileDescriptor[i]'");
    1326           0 :             return false;
    1327             :         }
    1328             :         // Sentinel = 'FileDescriptor[]'
    1329           0 :         if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
    1330           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
    1331           0 :             return false;
    1332             :         }
    1333             :     }
    1334           0 :     (v__)->SwapElements(fa);
    1335           0 :     return true;
    1336             : }
    1337             : 
    1338           0 : auto PBackgroundFileHandleParent::Write(
    1339             :         const FileRequestFlushParams& v__,
    1340             :         Message* msg__) -> void
    1341             : {
    1342           0 : }
    1343             : 
    1344           0 : auto PBackgroundFileHandleParent::Read(
    1345             :         FileRequestFlushParams* v__,
    1346             :         const Message* msg__,
    1347             :         PickleIterator* iter__) -> bool
    1348             : {
    1349           0 :     return true;
    1350             : }
    1351             : 
    1352           0 : auto PBackgroundFileHandleParent::Write(
    1353             :         const nsTArray<HeaderEntry>& v__,
    1354             :         Message* msg__) -> void
    1355             : {
    1356           0 :     uint32_t length = (v__).Length();
    1357           0 :     Write(length, msg__);
    1358             :     // Sentinel = ('length', 'HeaderEntry[]')
    1359           0 :     (msg__)->WriteSentinel(2689457705);
    1360             : 
    1361           0 :     for (auto& elem : v__) {
    1362           0 :         Write(elem, msg__);
    1363             :         // Sentinel = 'HeaderEntry[]'
    1364           0 :         (msg__)->WriteSentinel(454836120);
    1365             :     }
    1366           0 : }
    1367             : 
    1368           0 : auto PBackgroundFileHandleParent::Read(
    1369             :         nsTArray<HeaderEntry>* v__,
    1370             :         const Message* msg__,
    1371             :         PickleIterator* iter__) -> bool
    1372             : {
    1373           0 :     nsTArray<HeaderEntry> fa;
    1374             :     uint32_t length;
    1375           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1376           0 :         mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
    1377           0 :         return false;
    1378             :     }
    1379             :     // Sentinel = ('length', 'HeaderEntry[]')
    1380           0 :     if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
    1381           0 :         mozilla::ipc::SentinelReadError("HeaderEntry[]");
    1382           0 :         return false;
    1383             :     }
    1384             : 
    1385           0 :     HeaderEntry* elems = (fa).AppendElements(length);
    1386           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1387           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1388           0 :             FatalError("Error deserializing 'HeaderEntry[i]'");
    1389           0 :             return false;
    1390             :         }
    1391             :         // Sentinel = 'HeaderEntry[]'
    1392           0 :         if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
    1393           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
    1394           0 :             return false;
    1395             :         }
    1396             :     }
    1397           0 :     (v__)->SwapElements(fa);
    1398           0 :     return true;
    1399             : }
    1400             : 
    1401           0 : auto PBackgroundFileHandleParent::Write(
    1402             :         const SlicedInputStreamParams& v__,
    1403             :         Message* msg__) -> void
    1404             : {
    1405           0 :     Write((v__).stream(), msg__);
    1406             :     // Sentinel = 'stream'
    1407           0 :     (msg__)->WriteSentinel(4152748422);
    1408           0 :     Write((v__).start(), msg__);
    1409             :     // Sentinel = 'start'
    1410           0 :     (msg__)->WriteSentinel(2088644401);
    1411           0 :     Write((v__).length(), msg__);
    1412             :     // Sentinel = 'length'
    1413           0 :     (msg__)->WriteSentinel(1726618354);
    1414           0 :     Write((v__).curPos(), msg__);
    1415             :     // Sentinel = 'curPos'
    1416           0 :     (msg__)->WriteSentinel(4042140974);
    1417           0 :     Write((v__).closed(), msg__);
    1418             :     // Sentinel = 'closed'
    1419           0 :     (msg__)->WriteSentinel(561249462);
    1420           0 : }
    1421             : 
    1422           0 : auto PBackgroundFileHandleParent::Read(
    1423             :         SlicedInputStreamParams* v__,
    1424             :         const Message* msg__,
    1425             :         PickleIterator* iter__) -> bool
    1426             : {
    1427           0 :     if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
    1428           0 :         FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    1429           0 :         return false;
    1430             :     }
    1431             :     // Sentinel = 'stream'
    1432           0 :     if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
    1433           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
    1434           0 :         return false;
    1435             :     }
    1436           0 :     if ((!(Read((&((v__)->start())), msg__, iter__)))) {
    1437           0 :         FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    1438           0 :         return false;
    1439             :     }
    1440             :     // Sentinel = 'start'
    1441           0 :     if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
    1442           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
    1443           0 :         return false;
    1444             :     }
    1445           0 :     if ((!(Read((&((v__)->length())), msg__, iter__)))) {
    1446           0 :         FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    1447           0 :         return false;
    1448             :     }
    1449             :     // Sentinel = 'length'
    1450           0 :     if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
    1451           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
    1452           0 :         return false;
    1453             :     }
    1454           0 :     if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
    1455           0 :         FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    1456           0 :         return false;
    1457             :     }
    1458             :     // Sentinel = 'curPos'
    1459           0 :     if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
    1460           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
    1461           0 :         return false;
    1462             :     }
    1463           0 :     if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
    1464           0 :         FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    1465           0 :         return false;
    1466             :     }
    1467             :     // Sentinel = 'closed'
    1468           0 :     if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
    1469           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
    1470           0 :         return false;
    1471             :     }
    1472           0 :     return true;
    1473             : }
    1474             : 
    1475           0 : auto PBackgroundFileHandleParent::Write(
    1476             :         const FileRequestTruncateParams& v__,
    1477             :         Message* msg__) -> void
    1478             : {
    1479           0 :     Write((v__).offset(), msg__);
    1480             :     // Sentinel = 'offset'
    1481           0 :     (msg__)->WriteSentinel(1369947863);
    1482           0 : }
    1483             : 
    1484           0 : auto PBackgroundFileHandleParent::Read(
    1485             :         FileRequestTruncateParams* v__,
    1486             :         const Message* msg__,
    1487             :         PickleIterator* iter__) -> bool
    1488             : {
    1489           0 :     if ((!(Read((&((v__)->offset())), msg__, iter__)))) {
    1490           0 :         FatalError("Error deserializing 'offset' (uint64_t) member of 'FileRequestTruncateParams'");
    1491           0 :         return false;
    1492             :     }
    1493             :     // Sentinel = 'offset'
    1494           0 :     if ((!((msg__)->ReadSentinel(iter__, 1369947863)))) {
    1495           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'offset' (uint64_t) member of 'FileRequestTruncateParams'");
    1496           0 :         return false;
    1497             :     }
    1498           0 :     return true;
    1499             : }
    1500             : 
    1501           0 : auto PBackgroundFileHandleParent::Write(
    1502             :         const IPCRemoteStreamType& v__,
    1503             :         Message* msg__) -> void
    1504             : {
    1505             :     typedef IPCRemoteStreamType type__;
    1506           0 :     Write(int((v__).type()), msg__);
    1507             :     // Sentinel = 'IPCRemoteStreamType'
    1508           0 :     (msg__)->WriteSentinel(391674895);
    1509             : 
    1510           0 :     switch ((v__).type()) {
    1511             :     case type__::TPChildToParentStreamParent:
    1512             :         {
    1513           0 :             Write((v__).get_PChildToParentStreamParent(), msg__, false);
    1514             :             // Sentinel = 'TPChildToParentStreamParent'
    1515           0 :             (msg__)->WriteSentinel(2724777622);
    1516           0 :             return;
    1517             :         }
    1518             :     case type__::TPChildToParentStreamChild:
    1519             :         {
    1520           0 :             FatalError("wrong side!");
    1521           0 :             return;
    1522             :         }
    1523             :     case type__::TPParentToChildStreamParent:
    1524             :         {
    1525           0 :             Write((v__).get_PParentToChildStreamParent(), msg__, false);
    1526             :             // Sentinel = 'TPParentToChildStreamParent'
    1527           0 :             (msg__)->WriteSentinel(3335986876);
    1528           0 :             return;
    1529             :         }
    1530             :     case type__::TPParentToChildStreamChild:
    1531             :         {
    1532           0 :             FatalError("wrong side!");
    1533           0 :             return;
    1534             :         }
    1535             :     default:
    1536             :         {
    1537           0 :             FatalError("unknown union type");
    1538           0 :             return;
    1539             :         }
    1540             :     }
    1541             : }
    1542             : 
    1543           0 : auto PBackgroundFileHandleParent::Read(
    1544             :         IPCRemoteStreamType* v__,
    1545             :         const Message* msg__,
    1546             :         PickleIterator* iter__) -> bool
    1547             : {
    1548             :     typedef IPCRemoteStreamType type__;
    1549             :     int type;
    1550           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1551           0 :         mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
    1552           0 :         return false;
    1553             :     }
    1554             :     // Sentinel = 'IPCRemoteStreamType'
    1555           0 :     if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
    1556           0 :         mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
    1557           0 :         return false;
    1558             :     }
    1559             : 
    1560           0 :     switch (type) {
    1561             :     case type__::TPChildToParentStreamParent:
    1562             :         {
    1563           0 :             return false;
    1564             :         }
    1565             :     case type__::TPChildToParentStreamChild:
    1566             :         {
    1567           0 :             PChildToParentStreamParent* tmp = nullptr;
    1568           0 :             (*(v__)) = tmp;
    1569           0 :             if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
    1570           0 :                 FatalError("Error deserializing Union type");
    1571           0 :                 return false;
    1572             :             }
    1573             :             // Sentinel = 'TPChildToParentStreamChild'
    1574           0 :             if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
    1575           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1576           0 :                 return false;
    1577             :             }
    1578           0 :             return true;
    1579             :         }
    1580             :     case type__::TPParentToChildStreamParent:
    1581             :         {
    1582           0 :             return false;
    1583             :         }
    1584             :     case type__::TPParentToChildStreamChild:
    1585             :         {
    1586           0 :             PParentToChildStreamParent* tmp = nullptr;
    1587           0 :             (*(v__)) = tmp;
    1588           0 :             if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
    1589           0 :                 FatalError("Error deserializing Union type");
    1590           0 :                 return false;
    1591             :             }
    1592             :             // Sentinel = 'TPParentToChildStreamChild'
    1593           0 :             if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
    1594           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1595           0 :                 return false;
    1596             :             }
    1597           0 :             return true;
    1598             :         }
    1599             :     default:
    1600             :         {
    1601           0 :             FatalError("unknown union type");
    1602           0 :             return false;
    1603             :         }
    1604             :     }
    1605             : }
    1606             : 
    1607           0 : auto PBackgroundFileHandleParent::Write(
    1608             :         const TemporaryFileInputStreamParams& v__,
    1609             :         Message* msg__) -> void
    1610             : {
    1611           0 :     Write((v__).fileDescriptorIndex(), msg__);
    1612             :     // Sentinel = 'fileDescriptorIndex'
    1613           0 :     (msg__)->WriteSentinel(587329112);
    1614           0 :     Write((v__).startPos(), msg__);
    1615             :     // Sentinel = 'startPos'
    1616           0 :     (msg__)->WriteSentinel(557207962);
    1617           0 :     Write((v__).endPos(), msg__);
    1618             :     // Sentinel = 'endPos'
    1619           0 :     (msg__)->WriteSentinel(881536245);
    1620           0 : }
    1621             : 
    1622           0 : auto PBackgroundFileHandleParent::Read(
    1623             :         TemporaryFileInputStreamParams* v__,
    1624             :         const Message* msg__,
    1625             :         PickleIterator* iter__) -> bool
    1626             : {
    1627           0 :     if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
    1628           0 :         FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    1629           0 :         return false;
    1630             :     }
    1631             :     // Sentinel = 'fileDescriptorIndex'
    1632           0 :     if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
    1633           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
    1634           0 :         return false;
    1635             :     }
    1636           0 :     if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
    1637           0 :         FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1638           0 :         return false;
    1639             :     }
    1640             :     // Sentinel = 'startPos'
    1641           0 :     if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
    1642           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1643           0 :         return false;
    1644             :     }
    1645           0 :     if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
    1646           0 :         FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1647           0 :         return false;
    1648             :     }
    1649             :     // Sentinel = 'endPos'
    1650           0 :     if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
    1651           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
    1652           0 :         return false;
    1653             :     }
    1654           0 :     return true;
    1655             : }
    1656             : 
    1657           0 : auto PBackgroundFileHandleParent::Write(
    1658             :         const MIMEInputStreamParams& v__,
    1659             :         Message* msg__) -> void
    1660             : {
    1661           0 :     Write((v__).optionalStream(), msg__);
    1662             :     // Sentinel = 'optionalStream'
    1663           0 :     (msg__)->WriteSentinel(1003718562);
    1664           0 :     Write((v__).headers(), msg__);
    1665             :     // Sentinel = 'headers'
    1666           0 :     (msg__)->WriteSentinel(4284175217);
    1667           0 :     Write((v__).startedReading(), msg__);
    1668             :     // Sentinel = 'startedReading'
    1669           0 :     (msg__)->WriteSentinel(1906875903);
    1670           0 : }
    1671             : 
    1672           0 : auto PBackgroundFileHandleParent::Read(
    1673             :         MIMEInputStreamParams* v__,
    1674             :         const Message* msg__,
    1675             :         PickleIterator* iter__) -> bool
    1676             : {
    1677           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    1678           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    1679           0 :         return false;
    1680             :     }
    1681             :     // Sentinel = 'optionalStream'
    1682           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    1683           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
    1684           0 :         return false;
    1685             :     }
    1686           0 :     if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
    1687           0 :         FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    1688           0 :         return false;
    1689             :     }
    1690             :     // Sentinel = 'headers'
    1691           0 :     if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
    1692           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
    1693           0 :         return false;
    1694             :     }
    1695           0 :     if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
    1696           0 :         FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    1697           0 :         return false;
    1698             :     }
    1699             :     // Sentinel = 'startedReading'
    1700           0 :     if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
    1701           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
    1702           0 :         return false;
    1703             :     }
    1704           0 :     return true;
    1705             : }
    1706             : 
    1707           0 : auto PBackgroundFileHandleParent::Write(
    1708             :         const FileRequestStringData& v__,
    1709             :         Message* msg__) -> void
    1710             : {
    1711           0 :     Write((v__).string(), msg__);
    1712             :     // Sentinel = 'string'
    1713           0 :     (msg__)->WriteSentinel(2752301125);
    1714           0 : }
    1715             : 
    1716           0 : auto PBackgroundFileHandleParent::Read(
    1717             :         FileRequestStringData* v__,
    1718             :         const Message* msg__,
    1719             :         PickleIterator* iter__) -> bool
    1720             : {
    1721           0 :     if ((!(Read((&((v__)->string())), msg__, iter__)))) {
    1722           0 :         FatalError("Error deserializing 'string' (nsCString) member of 'FileRequestStringData'");
    1723           0 :         return false;
    1724             :     }
    1725             :     // Sentinel = 'string'
    1726           0 :     if ((!((msg__)->ReadSentinel(iter__, 2752301125)))) {
    1727           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'string' (nsCString) member of 'FileRequestStringData'");
    1728           0 :         return false;
    1729             :     }
    1730           0 :     return true;
    1731             : }
    1732             : 
    1733           0 : auto PBackgroundFileHandleParent::Write(
    1734             :         const InputStreamParams& v__,
    1735             :         Message* msg__) -> void
    1736             : {
    1737             :     typedef InputStreamParams type__;
    1738           0 :     Write(int((v__).type()), msg__);
    1739             :     // Sentinel = 'InputStreamParams'
    1740           0 :     (msg__)->WriteSentinel(4114814015);
    1741             : 
    1742           0 :     switch ((v__).type()) {
    1743             :     case type__::TStringInputStreamParams:
    1744             :         {
    1745           0 :             Write((v__).get_StringInputStreamParams(), msg__);
    1746             :             // Sentinel = 'TStringInputStreamParams'
    1747           0 :             (msg__)->WriteSentinel(3395831651);
    1748           0 :             return;
    1749             :         }
    1750             :     case type__::TFileInputStreamParams:
    1751             :         {
    1752           0 :             Write((v__).get_FileInputStreamParams(), msg__);
    1753             :             // Sentinel = 'TFileInputStreamParams'
    1754           0 :             (msg__)->WriteSentinel(2543620282);
    1755           0 :             return;
    1756             :         }
    1757             :     case type__::TTemporaryFileInputStreamParams:
    1758             :         {
    1759           0 :             Write((v__).get_TemporaryFileInputStreamParams(), msg__);
    1760             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    1761           0 :             (msg__)->WriteSentinel(587771548);
    1762           0 :             return;
    1763             :         }
    1764             :     case type__::TBufferedInputStreamParams:
    1765             :         {
    1766           0 :             Write((v__).get_BufferedInputStreamParams(), msg__);
    1767             :             // Sentinel = 'TBufferedInputStreamParams'
    1768           0 :             (msg__)->WriteSentinel(1698289307);
    1769           0 :             return;
    1770             :         }
    1771             :     case type__::TMIMEInputStreamParams:
    1772             :         {
    1773           0 :             Write((v__).get_MIMEInputStreamParams(), msg__);
    1774             :             // Sentinel = 'TMIMEInputStreamParams'
    1775           0 :             (msg__)->WriteSentinel(1948001964);
    1776           0 :             return;
    1777             :         }
    1778             :     case type__::TMultiplexInputStreamParams:
    1779             :         {
    1780           0 :             Write((v__).get_MultiplexInputStreamParams(), msg__);
    1781             :             // Sentinel = 'TMultiplexInputStreamParams'
    1782           0 :             (msg__)->WriteSentinel(3317853213);
    1783           0 :             return;
    1784             :         }
    1785             :     case type__::TSlicedInputStreamParams:
    1786             :         {
    1787           0 :             Write((v__).get_SlicedInputStreamParams(), msg__);
    1788             :             // Sentinel = 'TSlicedInputStreamParams'
    1789           0 :             (msg__)->WriteSentinel(445810472);
    1790           0 :             return;
    1791             :         }
    1792             :     case type__::TIPCBlobInputStreamParams:
    1793             :         {
    1794           0 :             Write((v__).get_IPCBlobInputStreamParams(), msg__);
    1795             :             // Sentinel = 'TIPCBlobInputStreamParams'
    1796           0 :             (msg__)->WriteSentinel(2436989998);
    1797           0 :             return;
    1798             :         }
    1799             :     default:
    1800             :         {
    1801           0 :             FatalError("unknown union type");
    1802           0 :             return;
    1803             :         }
    1804             :     }
    1805             : }
    1806             : 
    1807           0 : auto PBackgroundFileHandleParent::Read(
    1808             :         InputStreamParams* v__,
    1809             :         const Message* msg__,
    1810             :         PickleIterator* iter__) -> bool
    1811             : {
    1812             :     typedef InputStreamParams type__;
    1813             :     int type;
    1814           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    1815           0 :         mozilla::ipc::UnionTypeReadError("InputStreamParams");
    1816           0 :         return false;
    1817             :     }
    1818             :     // Sentinel = 'InputStreamParams'
    1819           0 :     if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
    1820           0 :         mozilla::ipc::SentinelReadError("InputStreamParams");
    1821           0 :         return false;
    1822             :     }
    1823             : 
    1824           0 :     switch (type) {
    1825             :     case type__::TStringInputStreamParams:
    1826             :         {
    1827           0 :             StringInputStreamParams tmp = StringInputStreamParams();
    1828           0 :             (*(v__)) = tmp;
    1829           0 :             if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
    1830           0 :                 FatalError("Error deserializing Union type");
    1831           0 :                 return false;
    1832             :             }
    1833             :             // Sentinel = 'TStringInputStreamParams'
    1834           0 :             if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
    1835           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1836           0 :                 return false;
    1837             :             }
    1838           0 :             return true;
    1839             :         }
    1840             :     case type__::TFileInputStreamParams:
    1841             :         {
    1842           0 :             FileInputStreamParams tmp = FileInputStreamParams();
    1843           0 :             (*(v__)) = tmp;
    1844           0 :             if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
    1845           0 :                 FatalError("Error deserializing Union type");
    1846           0 :                 return false;
    1847             :             }
    1848             :             // Sentinel = 'TFileInputStreamParams'
    1849           0 :             if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
    1850           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1851           0 :                 return false;
    1852             :             }
    1853           0 :             return true;
    1854             :         }
    1855             :     case type__::TTemporaryFileInputStreamParams:
    1856             :         {
    1857           0 :             TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
    1858           0 :             (*(v__)) = tmp;
    1859           0 :             if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
    1860           0 :                 FatalError("Error deserializing Union type");
    1861           0 :                 return false;
    1862             :             }
    1863             :             // Sentinel = 'TTemporaryFileInputStreamParams'
    1864           0 :             if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
    1865           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1866           0 :                 return false;
    1867             :             }
    1868           0 :             return true;
    1869             :         }
    1870             :     case type__::TBufferedInputStreamParams:
    1871             :         {
    1872           0 :             BufferedInputStreamParams tmp = BufferedInputStreamParams();
    1873           0 :             (*(v__)) = tmp;
    1874           0 :             if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
    1875           0 :                 FatalError("Error deserializing Union type");
    1876           0 :                 return false;
    1877             :             }
    1878             :             // Sentinel = 'TBufferedInputStreamParams'
    1879           0 :             if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
    1880           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1881           0 :                 return false;
    1882             :             }
    1883           0 :             return true;
    1884             :         }
    1885             :     case type__::TMIMEInputStreamParams:
    1886             :         {
    1887           0 :             MIMEInputStreamParams tmp = MIMEInputStreamParams();
    1888           0 :             (*(v__)) = tmp;
    1889           0 :             if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
    1890           0 :                 FatalError("Error deserializing Union type");
    1891           0 :                 return false;
    1892             :             }
    1893             :             // Sentinel = 'TMIMEInputStreamParams'
    1894           0 :             if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
    1895           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1896           0 :                 return false;
    1897             :             }
    1898           0 :             return true;
    1899             :         }
    1900             :     case type__::TMultiplexInputStreamParams:
    1901             :         {
    1902           0 :             MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
    1903           0 :             (*(v__)) = tmp;
    1904           0 :             if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
    1905           0 :                 FatalError("Error deserializing Union type");
    1906           0 :                 return false;
    1907             :             }
    1908             :             // Sentinel = 'TMultiplexInputStreamParams'
    1909           0 :             if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
    1910           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1911           0 :                 return false;
    1912             :             }
    1913           0 :             return true;
    1914             :         }
    1915             :     case type__::TSlicedInputStreamParams:
    1916             :         {
    1917           0 :             SlicedInputStreamParams tmp = SlicedInputStreamParams();
    1918           0 :             (*(v__)) = tmp;
    1919           0 :             if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
    1920           0 :                 FatalError("Error deserializing Union type");
    1921           0 :                 return false;
    1922             :             }
    1923             :             // Sentinel = 'TSlicedInputStreamParams'
    1924           0 :             if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
    1925           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1926           0 :                 return false;
    1927             :             }
    1928           0 :             return true;
    1929             :         }
    1930             :     case type__::TIPCBlobInputStreamParams:
    1931             :         {
    1932           0 :             IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
    1933           0 :             (*(v__)) = tmp;
    1934           0 :             if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
    1935           0 :                 FatalError("Error deserializing Union type");
    1936           0 :                 return false;
    1937             :             }
    1938             :             // Sentinel = 'TIPCBlobInputStreamParams'
    1939           0 :             if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
    1940           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    1941           0 :                 return false;
    1942             :             }
    1943           0 :             return true;
    1944             :         }
    1945             :     default:
    1946             :         {
    1947           0 :             FatalError("unknown union type");
    1948           0 :             return false;
    1949             :         }
    1950             :     }
    1951             : }
    1952             : 
    1953           0 : auto PBackgroundFileHandleParent::Write(
    1954             :         const PParentToChildStreamParent* v__,
    1955             :         Message* msg__,
    1956             :         bool nullable__) -> void
    1957             : {
    1958             :     int32_t id;
    1959           0 :     if ((!(v__))) {
    1960           0 :         if ((!(nullable__))) {
    1961           0 :             FatalError("NULL actor value passed to non-nullable param");
    1962             :         }
    1963           0 :         id = 0;
    1964             :     }
    1965             :     else {
    1966           0 :         id = (v__)->Id();
    1967           0 :         if ((1) == (id)) {
    1968           0 :             FatalError("actor has been |delete|d");
    1969             :         }
    1970             :     }
    1971             : 
    1972           0 :     Write(id, msg__);
    1973           0 : }
    1974             : 
    1975           0 : auto PBackgroundFileHandleParent::Read(
    1976             :         PParentToChildStreamParent** v__,
    1977             :         const Message* msg__,
    1978             :         PickleIterator* iter__,
    1979             :         bool nullable__) -> bool
    1980             : {
    1981           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
    1982           0 :     if ((actor).isNothing()) {
    1983           0 :         return false;
    1984             :     }
    1985             : 
    1986           0 :     (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
    1987           0 :     return true;
    1988             : }
    1989             : 
    1990           0 : auto PBackgroundFileHandleParent::Write(
    1991             :         const PBackgroundFileRequestParent* v__,
    1992             :         Message* msg__,
    1993             :         bool nullable__) -> void
    1994             : {
    1995             :     int32_t id;
    1996           0 :     if ((!(v__))) {
    1997           0 :         if ((!(nullable__))) {
    1998           0 :             FatalError("NULL actor value passed to non-nullable param");
    1999             :         }
    2000           0 :         id = 0;
    2001             :     }
    2002             :     else {
    2003           0 :         id = (v__)->Id();
    2004           0 :         if ((1) == (id)) {
    2005           0 :             FatalError("actor has been |delete|d");
    2006             :         }
    2007             :     }
    2008             : 
    2009           0 :     Write(id, msg__);
    2010           0 : }
    2011             : 
    2012           0 : auto PBackgroundFileHandleParent::Read(
    2013             :         PBackgroundFileRequestParent** v__,
    2014             :         const Message* msg__,
    2015             :         PickleIterator* iter__,
    2016             :         bool nullable__) -> bool
    2017             : {
    2018           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundFileRequest", PBackgroundFileRequestMsgStart);
    2019           0 :     if ((actor).isNothing()) {
    2020           0 :         return false;
    2021             :     }
    2022             : 
    2023           0 :     (*(v__)) = static_cast<PBackgroundFileRequestParent*>((actor).value());
    2024           0 :     return true;
    2025             : }
    2026             : 
    2027           0 : auto PBackgroundFileHandleParent::Write(
    2028             :         const IPCStream& v__,
    2029             :         Message* msg__) -> void
    2030             : {
    2031             :     typedef IPCStream type__;
    2032           0 :     Write(int((v__).type()), msg__);
    2033             :     // Sentinel = 'IPCStream'
    2034           0 :     (msg__)->WriteSentinel(442610715);
    2035             : 
    2036           0 :     switch ((v__).type()) {
    2037             :     case type__::TInputStreamParamsWithFds:
    2038             :         {
    2039           0 :             Write((v__).get_InputStreamParamsWithFds(), msg__);
    2040             :             // Sentinel = 'TInputStreamParamsWithFds'
    2041           0 :             (msg__)->WriteSentinel(2170706066);
    2042           0 :             return;
    2043             :         }
    2044             :     case type__::TIPCRemoteStream:
    2045             :         {
    2046           0 :             Write((v__).get_IPCRemoteStream(), msg__);
    2047             :             // Sentinel = 'TIPCRemoteStream'
    2048           0 :             (msg__)->WriteSentinel(2978132448);
    2049           0 :             return;
    2050             :         }
    2051             :     default:
    2052             :         {
    2053           0 :             FatalError("unknown union type");
    2054           0 :             return;
    2055             :         }
    2056             :     }
    2057             : }
    2058             : 
    2059           0 : auto PBackgroundFileHandleParent::Read(
    2060             :         IPCStream* v__,
    2061             :         const Message* msg__,
    2062             :         PickleIterator* iter__) -> bool
    2063             : {
    2064             :     typedef IPCStream type__;
    2065             :     int type;
    2066           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2067           0 :         mozilla::ipc::UnionTypeReadError("IPCStream");
    2068           0 :         return false;
    2069             :     }
    2070             :     // Sentinel = 'IPCStream'
    2071           0 :     if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
    2072           0 :         mozilla::ipc::SentinelReadError("IPCStream");
    2073           0 :         return false;
    2074             :     }
    2075             : 
    2076           0 :     switch (type) {
    2077             :     case type__::TInputStreamParamsWithFds:
    2078             :         {
    2079           0 :             InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
    2080           0 :             (*(v__)) = tmp;
    2081           0 :             if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
    2082           0 :                 FatalError("Error deserializing Union type");
    2083           0 :                 return false;
    2084             :             }
    2085             :             // Sentinel = 'TInputStreamParamsWithFds'
    2086           0 :             if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
    2087           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2088           0 :                 return false;
    2089             :             }
    2090           0 :             return true;
    2091             :         }
    2092             :     case type__::TIPCRemoteStream:
    2093             :         {
    2094           0 :             IPCRemoteStream tmp = IPCRemoteStream();
    2095           0 :             (*(v__)) = tmp;
    2096           0 :             if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
    2097           0 :                 FatalError("Error deserializing Union type");
    2098           0 :                 return false;
    2099             :             }
    2100             :             // Sentinel = 'TIPCRemoteStream'
    2101           0 :             if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
    2102           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2103           0 :                 return false;
    2104             :             }
    2105           0 :             return true;
    2106             :         }
    2107             :     default:
    2108             :         {
    2109           0 :             FatalError("unknown union type");
    2110           0 :             return false;
    2111             :         }
    2112             :     }
    2113             : }
    2114             : 
    2115           0 : auto PBackgroundFileHandleParent::Write(
    2116             :         const StringInputStreamParams& v__,
    2117             :         Message* msg__) -> void
    2118             : {
    2119           0 :     Write((v__).data(), msg__);
    2120             :     // Sentinel = 'data'
    2121           0 :     (msg__)->WriteSentinel(843352540);
    2122           0 : }
    2123             : 
    2124           0 : auto PBackgroundFileHandleParent::Read(
    2125             :         StringInputStreamParams* v__,
    2126             :         const Message* msg__,
    2127             :         PickleIterator* iter__) -> bool
    2128             : {
    2129           0 :     if ((!(Read((&((v__)->data())), msg__, iter__)))) {
    2130           0 :         FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    2131           0 :         return false;
    2132             :     }
    2133             :     // Sentinel = 'data'
    2134           0 :     if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
    2135           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
    2136           0 :         return false;
    2137             :     }
    2138           0 :     return true;
    2139             : }
    2140             : 
    2141           0 : auto PBackgroundFileHandleParent::Write(
    2142             :         const MultiplexInputStreamParams& v__,
    2143             :         Message* msg__) -> void
    2144             : {
    2145           0 :     Write((v__).streams(), msg__);
    2146             :     // Sentinel = 'streams'
    2147           0 :     (msg__)->WriteSentinel(4240383220);
    2148           0 :     Write((v__).currentStream(), msg__);
    2149             :     // Sentinel = 'currentStream'
    2150           0 :     (msg__)->WriteSentinel(682778074);
    2151           0 :     Write((v__).status(), msg__);
    2152             :     // Sentinel = 'status'
    2153           0 :     (msg__)->WriteSentinel(3714608576);
    2154           0 :     Write((v__).startedReadingCurrent(), msg__);
    2155             :     // Sentinel = 'startedReadingCurrent'
    2156           0 :     (msg__)->WriteSentinel(970542033);
    2157           0 : }
    2158             : 
    2159           0 : auto PBackgroundFileHandleParent::Read(
    2160             :         MultiplexInputStreamParams* v__,
    2161             :         const Message* msg__,
    2162             :         PickleIterator* iter__) -> bool
    2163             : {
    2164           0 :     if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
    2165           0 :         FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    2166           0 :         return false;
    2167             :     }
    2168             :     // Sentinel = 'streams'
    2169           0 :     if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
    2170           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
    2171           0 :         return false;
    2172             :     }
    2173           0 :     if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
    2174           0 :         FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    2175           0 :         return false;
    2176             :     }
    2177             :     // Sentinel = 'currentStream'
    2178           0 :     if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
    2179           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
    2180           0 :         return false;
    2181             :     }
    2182           0 :     if ((!(Read((&((v__)->status())), msg__, iter__)))) {
    2183           0 :         FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    2184           0 :         return false;
    2185             :     }
    2186             :     // Sentinel = 'status'
    2187           0 :     if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
    2188           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
    2189           0 :         return false;
    2190             :     }
    2191           0 :     if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
    2192           0 :         FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    2193           0 :         return false;
    2194             :     }
    2195             :     // Sentinel = 'startedReadingCurrent'
    2196           0 :     if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
    2197           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
    2198           0 :         return false;
    2199             :     }
    2200           0 :     return true;
    2201             : }
    2202             : 
    2203           0 : auto PBackgroundFileHandleParent::Write(
    2204             :         const PFileDescriptorSetParent* v__,
    2205             :         Message* msg__,
    2206             :         bool nullable__) -> void
    2207             : {
    2208             :     int32_t id;
    2209           0 :     if ((!(v__))) {
    2210           0 :         if ((!(nullable__))) {
    2211           0 :             FatalError("NULL actor value passed to non-nullable param");
    2212             :         }
    2213           0 :         id = 0;
    2214             :     }
    2215             :     else {
    2216           0 :         id = (v__)->Id();
    2217           0 :         if ((1) == (id)) {
    2218           0 :             FatalError("actor has been |delete|d");
    2219             :         }
    2220             :     }
    2221             : 
    2222           0 :     Write(id, msg__);
    2223           0 : }
    2224             : 
    2225           0 : auto PBackgroundFileHandleParent::Read(
    2226             :         PFileDescriptorSetParent** v__,
    2227             :         const Message* msg__,
    2228             :         PickleIterator* iter__,
    2229             :         bool nullable__) -> bool
    2230             : {
    2231           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
    2232           0 :     if ((actor).isNothing()) {
    2233           0 :         return false;
    2234             :     }
    2235             : 
    2236           0 :     (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
    2237           0 :     return true;
    2238             : }
    2239             : 
    2240           0 : auto PBackgroundFileHandleParent::Write(
    2241             :         const PIPCBlobInputStreamParent* v__,
    2242             :         Message* msg__,
    2243             :         bool nullable__) -> void
    2244             : {
    2245             :     int32_t id;
    2246           0 :     if ((!(v__))) {
    2247           0 :         if ((!(nullable__))) {
    2248           0 :             FatalError("NULL actor value passed to non-nullable param");
    2249             :         }
    2250           0 :         id = 0;
    2251             :     }
    2252             :     else {
    2253           0 :         id = (v__)->Id();
    2254           0 :         if ((1) == (id)) {
    2255           0 :             FatalError("actor has been |delete|d");
    2256             :         }
    2257             :     }
    2258             : 
    2259           0 :     Write(id, msg__);
    2260           0 : }
    2261             : 
    2262           0 : auto PBackgroundFileHandleParent::Read(
    2263             :         PIPCBlobInputStreamParent** v__,
    2264             :         const Message* msg__,
    2265             :         PickleIterator* iter__,
    2266             :         bool nullable__) -> bool
    2267             : {
    2268           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PIPCBlobInputStream", PIPCBlobInputStreamMsgStart);
    2269           0 :     if ((actor).isNothing()) {
    2270           0 :         return false;
    2271             :     }
    2272             : 
    2273           0 :     (*(v__)) = static_cast<PIPCBlobInputStreamParent*>((actor).value());
    2274           0 :     return true;
    2275             : }
    2276             : 
    2277           0 : auto PBackgroundFileHandleParent::Write(
    2278             :         const OptionalFileDescriptorSet& v__,
    2279             :         Message* msg__) -> void
    2280             : {
    2281             :     typedef OptionalFileDescriptorSet type__;
    2282           0 :     Write(int((v__).type()), msg__);
    2283             :     // Sentinel = 'OptionalFileDescriptorSet'
    2284           0 :     (msg__)->WriteSentinel(955222862);
    2285             : 
    2286           0 :     switch ((v__).type()) {
    2287             :     case type__::TPFileDescriptorSetParent:
    2288             :         {
    2289           0 :             Write((v__).get_PFileDescriptorSetParent(), msg__, false);
    2290             :             // Sentinel = 'TPFileDescriptorSetParent'
    2291           0 :             (msg__)->WriteSentinel(143041934);
    2292           0 :             return;
    2293             :         }
    2294             :     case type__::TPFileDescriptorSetChild:
    2295             :         {
    2296           0 :             FatalError("wrong side!");
    2297           0 :             return;
    2298             :         }
    2299             :     case type__::TArrayOfFileDescriptor:
    2300             :         {
    2301           0 :             Write((v__).get_ArrayOfFileDescriptor(), msg__);
    2302             :             // Sentinel = 'TArrayOfFileDescriptor'
    2303           0 :             (msg__)->WriteSentinel(2366096715);
    2304           0 :             return;
    2305             :         }
    2306             :     case type__::Tvoid_t:
    2307             :         {
    2308           0 :             Write((v__).get_void_t(), msg__);
    2309             :             // Sentinel = 'Tvoid_t'
    2310           0 :             (msg__)->WriteSentinel(3041273328);
    2311           0 :             return;
    2312             :         }
    2313             :     default:
    2314             :         {
    2315           0 :             FatalError("unknown union type");
    2316           0 :             return;
    2317             :         }
    2318             :     }
    2319             : }
    2320             : 
    2321           0 : auto PBackgroundFileHandleParent::Read(
    2322             :         OptionalFileDescriptorSet* v__,
    2323             :         const Message* msg__,
    2324             :         PickleIterator* iter__) -> bool
    2325             : {
    2326             :     typedef OptionalFileDescriptorSet type__;
    2327             :     int type;
    2328           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
    2329           0 :         mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
    2330           0 :         return false;
    2331             :     }
    2332             :     // Sentinel = 'OptionalFileDescriptorSet'
    2333           0 :     if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
    2334           0 :         mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
    2335           0 :         return false;
    2336             :     }
    2337             : 
    2338           0 :     switch (type) {
    2339             :     case type__::TPFileDescriptorSetParent:
    2340             :         {
    2341           0 :             return false;
    2342             :         }
    2343             :     case type__::TPFileDescriptorSetChild:
    2344             :         {
    2345           0 :             PFileDescriptorSetParent* tmp = nullptr;
    2346           0 :             (*(v__)) = tmp;
    2347           0 :             if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
    2348           0 :                 FatalError("Error deserializing Union type");
    2349           0 :                 return false;
    2350             :             }
    2351             :             // Sentinel = 'TPFileDescriptorSetChild'
    2352           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
    2353           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2354           0 :                 return false;
    2355             :             }
    2356           0 :             return true;
    2357             :         }
    2358             :     case type__::TArrayOfFileDescriptor:
    2359             :         {
    2360           0 :             nsTArray<FileDescriptor> tmp;
    2361           0 :             (*(v__)) = tmp;
    2362           0 :             if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
    2363           0 :                 FatalError("Error deserializing Union type");
    2364           0 :                 return false;
    2365             :             }
    2366             :             // Sentinel = 'TArrayOfFileDescriptor'
    2367           0 :             if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
    2368           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2369           0 :                 return false;
    2370             :             }
    2371           0 :             return true;
    2372             :         }
    2373             :     case type__::Tvoid_t:
    2374             :         {
    2375             :             void_t tmp = void_t();
    2376           0 :             (*(v__)) = tmp;
    2377           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
    2378           0 :                 FatalError("Error deserializing Union type");
    2379           0 :                 return false;
    2380             :             }
    2381             :             // Sentinel = 'Tvoid_t'
    2382           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
    2383           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
    2384           0 :                 return false;
    2385             :             }
    2386           0 :             return true;
    2387             :         }
    2388             :     default:
    2389             :         {
    2390           0 :             FatalError("unknown union type");
    2391           0 :             return false;
    2392             :         }
    2393             :     }
    2394             : }
    2395             : 
    2396           0 : auto PBackgroundFileHandleParent::Write(
    2397             :         const PBackgroundFileHandleParent* v__,
    2398             :         Message* msg__,
    2399             :         bool nullable__) -> void
    2400             : {
    2401             :     int32_t id;
    2402           0 :     if ((!(v__))) {
    2403           0 :         if ((!(nullable__))) {
    2404           0 :             FatalError("NULL actor value passed to non-nullable param");
    2405             :         }
    2406           0 :         id = 0;
    2407             :     }
    2408             :     else {
    2409           0 :         id = (v__)->Id();
    2410           0 :         if ((1) == (id)) {
    2411           0 :             FatalError("actor has been |delete|d");
    2412             :         }
    2413             :     }
    2414             : 
    2415           0 :     Write(id, msg__);
    2416           0 : }
    2417             : 
    2418           0 : auto PBackgroundFileHandleParent::Read(
    2419             :         PBackgroundFileHandleParent** v__,
    2420             :         const Message* msg__,
    2421             :         PickleIterator* iter__,
    2422             :         bool nullable__) -> bool
    2423             : {
    2424           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundFileHandle", PBackgroundFileHandleMsgStart);
    2425           0 :     if ((actor).isNothing()) {
    2426           0 :         return false;
    2427             :     }
    2428             : 
    2429           0 :     (*(v__)) = static_cast<PBackgroundFileHandleParent*>((actor).value());
    2430           0 :     return true;
    2431             : }
    2432             : 
    2433           0 : auto PBackgroundFileHandleParent::Write(
    2434             :         const IPCBlob& v__,
    2435             :         Message* msg__) -> void
    2436             : {
    2437           0 :     Write((v__).type(), msg__);
    2438             :     // Sentinel = 'type'
    2439           0 :     (msg__)->WriteSentinel(2982068540);
    2440           0 :     Write((v__).size(), msg__);
    2441             :     // Sentinel = 'size'
    2442           0 :     (msg__)->WriteSentinel(931048223);
    2443           0 :     Write((v__).inputStream(), msg__);
    2444             :     // Sentinel = 'inputStream'
    2445           0 :     (msg__)->WriteSentinel(2684883823);
    2446           0 :     Write((v__).file(), msg__);
    2447             :     // Sentinel = 'file'
    2448           0 :     (msg__)->WriteSentinel(224874390);
    2449           0 :     Write((v__).fileId(), msg__);
    2450             :     // Sentinel = 'fileId'
    2451           0 :     (msg__)->WriteSentinel(108004447);
    2452           0 : }
    2453             : 
    2454           0 : auto PBackgroundFileHandleParent::Read(
    2455             :         IPCBlob* v__,
    2456             :         const Message* msg__,
    2457             :         PickleIterator* iter__) -> bool
    2458             : {
    2459           0 :     if ((!(Read((&((v__)->type())), msg__, iter__)))) {
    2460           0 :         FatalError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
    2461           0 :         return false;
    2462             :     }
    2463             :     // Sentinel = 'type'
    2464           0 :     if ((!((msg__)->ReadSentinel(iter__, 2982068540)))) {
    2465           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsString) member of 'IPCBlob'");
    2466           0 :         return false;
    2467             :     }
    2468           0 :     if ((!(Read((&((v__)->size())), msg__, iter__)))) {
    2469           0 :         FatalError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
    2470           0 :         return false;
    2471             :     }
    2472             :     // Sentinel = 'size'
    2473           0 :     if ((!((msg__)->ReadSentinel(iter__, 931048223)))) {
    2474           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'size' (uint64_t) member of 'IPCBlob'");
    2475           0 :         return false;
    2476             :     }
    2477           0 :     if ((!(Read((&((v__)->inputStream())), msg__, iter__)))) {
    2478           0 :         FatalError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
    2479           0 :         return false;
    2480             :     }
    2481             :     // Sentinel = 'inputStream'
    2482           0 :     if ((!((msg__)->ReadSentinel(iter__, 2684883823)))) {
    2483           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'inputStream' (IPCBlobStream) member of 'IPCBlob'");
    2484           0 :         return false;
    2485             :     }
    2486           0 :     if ((!(Read((&((v__)->file())), msg__, iter__)))) {
    2487           0 :         FatalError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
    2488           0 :         return false;
    2489             :     }
    2490             :     // Sentinel = 'file'
    2491           0 :     if ((!((msg__)->ReadSentinel(iter__, 224874390)))) {
    2492           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'file' (IPCFileUnion) member of 'IPCBlob'");
    2493           0 :         return false;
    2494             :     }
    2495           0 :     if ((!(Read((&((v__)->fileId())), msg__, iter__)))) {
    2496           0 :         FatalError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
    2497           0 :         return false;
    2498             :     }
    2499             :     // Sentinel = 'fileId'
    2500           0 :     if ((!((msg__)->ReadSentinel(iter__, 108004447)))) {
    2501           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'fileId' (int64_t) member of 'IPCBlob'");
    2502           0 :         return false;
    2503             :     }
    2504           0 :     return true;
    2505             : }
    2506             : 
    2507           0 : auto PBackgroundFileHandleParent::Write(
    2508             :         const FileDescriptor& v__,
    2509             :         Message* msg__) -> void
    2510             : {
    2511           0 :     FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
    2512           0 :     IPC::WriteParam(msg__, pfd);
    2513           0 : }
    2514             : 
    2515           0 : auto PBackgroundFileHandleParent::Read(
    2516             :         FileDescriptor* v__,
    2517             :         const Message* msg__,
    2518             :         PickleIterator* iter__) -> bool
    2519             : {
    2520           0 :     FileDescriptor::PickleType pfd;
    2521           0 :     if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
    2522           0 :         return false;
    2523             :     }
    2524             : 
    2525           0 :     FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
    2526           0 :     if ((!((fd).IsValid()))) {
    2527           0 :         mozilla::ipc::ProtocolErrorBreakpoint("[PBackgroundFileHandleParent] Received an invalid file descriptor!");
    2528             :     }
    2529             : 
    2530           0 :     (*(v__)) = fd;
    2531           0 :     return true;
    2532             : }
    2533             : 
    2534           0 : auto PBackgroundFileHandleParent::Write(
    2535             :         const BufferedInputStreamParams& v__,
    2536             :         Message* msg__) -> void
    2537             : {
    2538           0 :     Write((v__).optionalStream(), msg__);
    2539             :     // Sentinel = 'optionalStream'
    2540           0 :     (msg__)->WriteSentinel(1003718562);
    2541           0 :     Write((v__).bufferSize(), msg__);
    2542             :     // Sentinel = 'bufferSize'
    2543           0 :     (msg__)->WriteSentinel(3444538779);
    2544           0 : }
    2545             : 
    2546           0 : auto PBackgroundFileHandleParent::Read(
    2547             :         BufferedInputStreamParams* v__,
    2548             :         const Message* msg__,
    2549             :         PickleIterator* iter__) -> bool
    2550             : {
    2551           0 :     if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
    2552           0 :         FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    2553           0 :         return false;
    2554             :     }
    2555             :     // Sentinel = 'optionalStream'
    2556           0 :     if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
    2557           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
    2558           0 :         return false;
    2559             :     }
    2560           0 :     if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
    2561           0 :         FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    2562           0 :         return false;
    2563             :     }
    2564             :     // Sentinel = 'bufferSize'
    2565           0 :     if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
    2566           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
    2567           0 :         return false;
    2568             :     }
    2569           0 :     return true;
    2570             : }
    2571             : 
    2572           0 : auto PBackgroundFileHandleParent::Write(
    2573             :         const HeaderEntry& v__,
    2574             :         Message* msg__) -> void
    2575             : {
    2576           0 :     Write((v__).name(), msg__);
    2577             :     // Sentinel = 'name'
    2578           0 :     (msg__)->WriteSentinel(15034981);
    2579           0 :     Write((v__).value(), msg__);
    2580             :     // Sentinel = 'value'
    2581           0 :     (msg__)->WriteSentinel(3456818542);
    2582           0 : }
    2583             : 
    2584           0 : auto PBackgroundFileHandleParent::Read(
    2585             :         HeaderEntry* v__,
    2586             :         const Message* msg__,
    2587             :         PickleIterator* iter__) -> bool
    2588             : {
    2589           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    2590           0 :         FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2591           0 :         return false;
    2592             :     }
    2593             :     // Sentinel = 'name'
    2594           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    2595           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
    2596           0 :         return false;
    2597             :     }
    2598           0 :     if ((!(Read((&((v__)->value())), msg__, iter__)))) {
    2599           0 :         FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2600           0 :         return false;
    2601             :     }
    2602             :     // Sentinel = 'value'
    2603           0 :     if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
    2604           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
    2605           0 :         return false;
    2606             :     }
    2607           0 :     return true;
    2608             : }
    2609             : 
    2610           0 : auto PBackgroundFileHandleParent::Write(
    2611             :         const PChildToParentStreamParent* v__,
    2612             :         Message* msg__,
    2613             :         bool nullable__) -> void
    2614             : {
    2615             :     int32_t id;
    2616           0 :     if ((!(v__))) {
    2617           0 :         if ((!(nullable__))) {
    2618           0 :             FatalError("NULL actor value passed to non-nullable param");
    2619             :         }
    2620           0 :         id = 0;
    2621             :     }
    2622             :     else {
    2623           0 :         id = (v__)->Id();
    2624           0 :         if ((1) == (id)) {
    2625           0 :             FatalError("actor has been |delete|d");
    2626             :         }
    2627             :     }
    2628             : 
    2629           0 :     Write(id, msg__);
    2630           0 : }
    2631             : 
    2632           0 : auto PBackgroundFileHandleParent::Read(
    2633             :         PChildToParentStreamParent** v__,
    2634             :         const Message* msg__,
    2635             :         PickleIterator* iter__,
    2636             :         bool nullable__) -> bool
    2637             : {
    2638           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
    2639           0 :     if ((actor).isNothing()) {
    2640           0 :         return false;
    2641             :     }
    2642             : 
    2643           0 :     (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
    2644           0 :     return true;
    2645             : }
    2646             : 
    2647             : 
    2648             : 
    2649             : } // namespace dom
    2650             : } // namespace mozilla

Generated by: LCOV version 1.13