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

Generated by: LCOV version 1.13