LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundIDBFactoryParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 730 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 62 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/indexedDB/PBackgroundIDBFactoryParent.h"
       8             : #include "ipc/IPCMessageUtils.h"
       9             : 
      10             : #include "mozilla/ipc/PBackgroundParent.h"
      11             : #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseParent.h"
      12             : #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryRequestParent.h"
      13             : 
      14             : #include "nsIFile.h"
      15             : #include "GeckoProfiler.h"
      16             : 
      17             : namespace mozilla {
      18             : namespace dom {
      19             : namespace indexedDB {
      20             : 
      21             : 
      22           0 : auto PBackgroundIDBFactoryParent::RecvPBackgroundIDBFactoryRequestConstructor(
      23             :         PBackgroundIDBFactoryRequestParent* actor,
      24             :         const FactoryRequestParams& params) -> mozilla::ipc::IPCResult
      25             : {
      26           0 :     return IPC_OK();
      27             : }
      28             : 
      29             : 
      30           0 : MOZ_IMPLICIT PBackgroundIDBFactoryParent::PBackgroundIDBFactoryParent() :
      31             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      32           0 :     mState(PBackgroundIDBFactory::__Dead)
      33             : {
      34           0 :     MOZ_COUNT_CTOR(PBackgroundIDBFactoryParent);
      35           0 : }
      36             : 
      37           0 : PBackgroundIDBFactoryParent::~PBackgroundIDBFactoryParent()
      38             : {
      39           0 :     MOZ_COUNT_DTOR(PBackgroundIDBFactoryParent);
      40           0 : }
      41             : 
      42           0 : auto PBackgroundIDBFactoryParent::Manager() const -> PBackgroundParent*
      43             : {
      44           0 :     return static_cast<PBackgroundParent*>(IProtocol::Manager());
      45             : }
      46             : 
      47           0 : auto PBackgroundIDBFactoryParent::ManagedPBackgroundIDBDatabaseParent(nsTArray<PBackgroundIDBDatabaseParent*>& aArr) const -> void
      48             : {
      49           0 :     (mManagedPBackgroundIDBDatabaseParent).ToArray(aArr);
      50           0 : }
      51             : 
      52           0 : auto PBackgroundIDBFactoryParent::ManagedPBackgroundIDBDatabaseParent() const -> const ManagedContainer<PBackgroundIDBDatabaseParent>&
      53             : {
      54           0 :     return mManagedPBackgroundIDBDatabaseParent;
      55             : }
      56             : 
      57           0 : auto PBackgroundIDBFactoryParent::ManagedPBackgroundIDBFactoryRequestParent(nsTArray<PBackgroundIDBFactoryRequestParent*>& aArr) const -> void
      58             : {
      59           0 :     (mManagedPBackgroundIDBFactoryRequestParent).ToArray(aArr);
      60           0 : }
      61             : 
      62           0 : auto PBackgroundIDBFactoryParent::ManagedPBackgroundIDBFactoryRequestParent() const -> const ManagedContainer<PBackgroundIDBFactoryRequestParent>&
      63             : {
      64           0 :     return mManagedPBackgroundIDBFactoryRequestParent;
      65             : }
      66             : 
      67           0 : auto PBackgroundIDBFactoryParent::Send__delete__(PBackgroundIDBFactoryParent* actor) -> bool
      68             : {
      69           0 :     if ((!(actor))) {
      70           0 :         return false;
      71             :     }
      72             : 
      73           0 :     IPC::Message* msg__ = PBackgroundIDBFactory::Msg___delete__((actor)->Id());
      74             : 
      75           0 :     (actor)->Write(actor, msg__, false);
      76             :     // Sentinel = 'actor'
      77           0 :     (msg__)->WriteSentinel(875202478);
      78             : 
      79             : 
      80             : 
      81           0 :     if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryParent")) {
      82           0 :         mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      83             :     }
      84           0 :     AUTO_PROFILER_LABEL("PBackgroundIDBFactory::Msg___delete__", OTHER);
      85           0 :     PBackgroundIDBFactory::Transition(PBackgroundIDBFactory::Msg___delete____ID, (&((actor)->mState)));
      86             : 
      87           0 :     bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
      88             : 
      89           0 :     IProtocol* mgr = (actor)->Manager();
      90           0 :     (actor)->DestroySubtree(Deletion);
      91           0 :     (actor)->DeallocSubtree();
      92           0 :     (mgr)->RemoveManagee(PBackgroundIDBFactoryMsgStart, actor);
      93           0 :     return sendok__;
      94             : }
      95             : 
      96           0 : auto PBackgroundIDBFactoryParent::SendPBackgroundIDBDatabaseConstructor(
      97             :         const DatabaseSpec& spec,
      98             :         PBackgroundIDBFactoryRequestParent* request) -> PBackgroundIDBDatabaseParent*
      99             : {
     100           0 :     return SendPBackgroundIDBDatabaseConstructor(AllocPBackgroundIDBDatabaseParent(spec, request), spec, request);
     101             : }
     102             : 
     103           0 : auto PBackgroundIDBFactoryParent::SendPBackgroundIDBDatabaseConstructor(
     104             :         PBackgroundIDBDatabaseParent* actor,
     105             :         const DatabaseSpec& spec,
     106             :         PBackgroundIDBFactoryRequestParent* request) -> PBackgroundIDBDatabaseParent*
     107             : {
     108           0 :     if ((!(actor))) {
     109           0 :         NS_WARNING("Error constructing actor PBackgroundIDBDatabaseParent");
     110           0 :         return nullptr;
     111             :     }
     112           0 :     (actor)->SetManager(this);
     113           0 :     Register(actor);
     114           0 :     (actor)->SetIPCChannel(GetIPCChannel());
     115           0 :     (mManagedPBackgroundIDBDatabaseParent).PutEntry(actor);
     116           0 :     (actor)->mState = mozilla::dom::indexedDB::PBackgroundIDBDatabase::__Start;
     117             : 
     118           0 :     IPC::Message* msg__ = PBackgroundIDBFactory::Msg_PBackgroundIDBDatabaseConstructor(Id());
     119             : 
     120           0 :     Write(actor, msg__, false);
     121             :     // Sentinel = 'actor'
     122           0 :     (msg__)->WriteSentinel(875202478);
     123           0 :     Write(spec, msg__);
     124             :     // Sentinel = 'spec'
     125           0 :     (msg__)->WriteSentinel(1630740541);
     126           0 :     Write(request, msg__, false);
     127             :     // Sentinel = 'request'
     128           0 :     (msg__)->WriteSentinel(2366856172);
     129             : 
     130           0 :     (msg__)->set_constructor();
     131             : 
     132             : 
     133           0 :     if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryParent")) {
     134           0 :         mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     135             :     }
     136           0 :     AUTO_PROFILER_LABEL("PBackgroundIDBFactory::Msg_PBackgroundIDBDatabaseConstructor", OTHER);
     137           0 :     PBackgroundIDBFactory::Transition(PBackgroundIDBFactory::Msg_PBackgroundIDBDatabaseConstructor__ID, (&(mState)));
     138             : 
     139           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     140           0 :     if ((!(sendok__))) {
     141           0 :         IProtocol* mgr = (actor)->Manager();
     142           0 :         (actor)->DestroySubtree(FailedConstructor);
     143           0 :         (actor)->DeallocSubtree();
     144           0 :         (mgr)->RemoveManagee(PBackgroundIDBDatabaseMsgStart, actor);
     145           0 :         return nullptr;
     146             :     }
     147           0 :     return actor;
     148             : }
     149             : 
     150           0 : auto PBackgroundIDBFactoryParent::RemoveManagee(
     151             :         int32_t aProtocolId,
     152             :         ProtocolBase* aListener) -> void
     153             : {
     154           0 :     switch (aProtocolId) {
     155             :     case PBackgroundIDBDatabaseMsgStart:
     156             :         {
     157           0 :             PBackgroundIDBDatabaseParent* actor = static_cast<PBackgroundIDBDatabaseParent*>(aListener);
     158           0 :             auto& container = mManagedPBackgroundIDBDatabaseParent;
     159           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     160             : 
     161           0 :             (container).RemoveEntry(actor);
     162           0 :             DeallocPBackgroundIDBDatabaseParent(actor);
     163           0 :             return;
     164             :         }
     165             :     case PBackgroundIDBFactoryRequestMsgStart:
     166             :         {
     167           0 :             PBackgroundIDBFactoryRequestParent* actor = static_cast<PBackgroundIDBFactoryRequestParent*>(aListener);
     168           0 :             auto& container = mManagedPBackgroundIDBFactoryRequestParent;
     169           0 :             MOZ_RELEASE_ASSERT((container).Contains(actor), "actor not managed by this!");
     170             : 
     171           0 :             (container).RemoveEntry(actor);
     172           0 :             DeallocPBackgroundIDBFactoryRequestParent(actor);
     173           0 :             return;
     174             :         }
     175             :     default:
     176             :         {
     177           0 :             FatalError("unreached");
     178           0 :             return;
     179             :         }
     180             :     }
     181             : }
     182             : 
     183           0 : auto PBackgroundIDBFactoryParent::OnMessageReceived(const Message& msg__) -> PBackgroundIDBFactoryParent::Result
     184             : {
     185           0 :     switch ((msg__).type()) {
     186             :     case PBackgroundIDBFactory::Msg_DeleteMe__ID:
     187             :         {
     188           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryParent")) {
     189           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     190             :             }
     191           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactory::Msg_DeleteMe", OTHER);
     192             : 
     193           0 :             PBackgroundIDBFactory::Transition(PBackgroundIDBFactory::Msg_DeleteMe__ID, (&(mState)));
     194           0 :             if ((!(RecvDeleteMe()))) {
     195           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     196             :                 // Error handled in mozilla::ipc::IPCResult
     197           0 :                 return MsgProcessingError;
     198             :             }
     199             : 
     200           0 :             return MsgProcessed;
     201             :         }
     202             :     case PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor__ID:
     203             :         {
     204           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryParent")) {
     205           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     206             :             }
     207           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor", OTHER);
     208             : 
     209           0 :             PickleIterator iter__(msg__);
     210             :             ActorHandle handle__;
     211             :             PBackgroundIDBFactoryRequestParent* actor;
     212           0 :             FactoryRequestParams params;
     213             : 
     214           0 :             if ((!(Read((&(handle__)), (&(msg__)), (&(iter__)))))) {
     215           0 :                 FatalError("Error deserializing 'ActorHandle'");
     216           0 :                 return MsgValueError;
     217             :             }
     218             :             // Sentinel = 'actor'
     219           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     220           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'ActorHandle'");
     221           0 :                 return MsgValueError;
     222             :             }
     223           0 :             if ((!(Read((&(params)), (&(msg__)), (&(iter__)))))) {
     224           0 :                 FatalError("Error deserializing 'FactoryRequestParams'");
     225           0 :                 return MsgValueError;
     226             :             }
     227             :             // Sentinel = 'params'
     228           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1677790004)))) {
     229           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'FactoryRequestParams'");
     230           0 :                 return MsgValueError;
     231             :             }
     232           0 :             (msg__).EndRead(iter__, (msg__).type());
     233           0 :             PBackgroundIDBFactory::Transition(PBackgroundIDBFactory::Msg_PBackgroundIDBFactoryRequestConstructor__ID, (&(mState)));
     234           0 :             actor = AllocPBackgroundIDBFactoryRequestParent(params);
     235           0 :             if ((!(actor))) {
     236           0 :                 NS_WARNING("Error constructing actor PBackgroundIDBFactoryRequestParent");
     237           0 :                 return MsgValueError;
     238             :             }
     239           0 :             (actor)->SetManager(this);
     240           0 :             RegisterID(actor, (handle__).mId);
     241           0 :             (actor)->SetIPCChannel(GetIPCChannel());
     242           0 :             (mManagedPBackgroundIDBFactoryRequestParent).PutEntry(actor);
     243           0 :             (actor)->mState = mozilla::dom::indexedDB::PBackgroundIDBFactoryRequest::__Start;
     244             : 
     245           0 :             if ((!(RecvPBackgroundIDBFactoryRequestConstructor(mozilla::Move(actor), mozilla::Move(params))))) {
     246           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     247             :                 // Error handled in mozilla::ipc::IPCResult
     248           0 :                 return MsgProcessingError;
     249             :             }
     250             : 
     251           0 :             return MsgProcessed;
     252             :         }
     253             :     case PBackgroundIDBFactory::Msg_IncrementLoggingRequestSerialNumber__ID:
     254             :         {
     255           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryParent")) {
     256           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     257             :             }
     258           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactory::Msg_IncrementLoggingRequestSerialNumber", OTHER);
     259             : 
     260           0 :             PBackgroundIDBFactory::Transition(PBackgroundIDBFactory::Msg_IncrementLoggingRequestSerialNumber__ID, (&(mState)));
     261           0 :             if ((!(RecvIncrementLoggingRequestSerialNumber()))) {
     262           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     263             :                 // Error handled in mozilla::ipc::IPCResult
     264           0 :                 return MsgProcessingError;
     265             :             }
     266             : 
     267           0 :             return MsgProcessed;
     268             :         }
     269             :     case PBackgroundIDBFactory::Reply___delete____ID:
     270             :         {
     271           0 :             return MsgProcessed;
     272             :         }
     273             :     case PBackgroundIDBFactory::Reply_PBackgroundIDBDatabaseConstructor__ID:
     274             :         {
     275           0 :             return MsgProcessed;
     276             :         }
     277             :     default:
     278             :         {
     279           0 :             return MsgNotKnown;
     280             :         }
     281             :     }
     282             : }
     283             : 
     284           0 : auto PBackgroundIDBFactoryParent::OnMessageReceived(
     285             :         const Message& msg__,
     286             :         Message*& reply__) -> PBackgroundIDBFactoryParent::Result
     287             : {
     288           0 :     return MsgNotKnown;
     289             : }
     290             : 
     291           0 : auto PBackgroundIDBFactoryParent::OnCallReceived(
     292             :         const Message& msg__,
     293             :         Message*& reply__) -> PBackgroundIDBFactoryParent::Result
     294             : {
     295           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     296             :     return MsgNotKnown;
     297             : }
     298             : 
     299           0 : auto PBackgroundIDBFactoryParent::GetProtocolTypeId() -> int32_t
     300             : {
     301           0 :     return PBackgroundIDBFactoryMsgStart;
     302             : }
     303             : 
     304           0 : auto PBackgroundIDBFactoryParent::ProtocolName() const -> const char*
     305             : {
     306           0 :     return "PBackgroundIDBFactoryParent";
     307             : }
     308             : 
     309           0 : auto PBackgroundIDBFactoryParent::DestroySubtree(ActorDestroyReason why) -> void
     310             : {
     311             :     // Unregister from our manager.
     312           0 :     Unregister(Id());
     313             : 
     314           0 :     ActorDestroyReason subtreewhy = (((why) == (Deletion)) || ((why) == (FailedConstructor)) ? AncestorDeletion : why);
     315             : 
     316             :     {
     317             :         // Recursively shutting down PBackgroundIDBDatabase kids
     318           0 :         nsTArray<PBackgroundIDBDatabaseParent*> kids;
     319             :         // Accumulate kids into a stable structure to iterate over
     320           0 :         ManagedPBackgroundIDBDatabaseParent(kids);
     321           0 :         for (auto& kid : kids) {
     322             :             // Guarding against a child removing a sibling from the list during the iteration.
     323           0 :             if ((mManagedPBackgroundIDBDatabaseParent).Contains(kid)) {
     324           0 :                 (kid)->DestroySubtree(subtreewhy);
     325             :             }
     326             :         }
     327             :     }
     328             :     {
     329             :         // Recursively shutting down PBackgroundIDBFactoryRequest kids
     330           0 :         nsTArray<PBackgroundIDBFactoryRequestParent*> kids;
     331             :         // Accumulate kids into a stable structure to iterate over
     332           0 :         ManagedPBackgroundIDBFactoryRequestParent(kids);
     333           0 :         for (auto& kid : kids) {
     334             :             // Guarding against a child removing a sibling from the list during the iteration.
     335           0 :             if ((mManagedPBackgroundIDBFactoryRequestParent).Contains(kid)) {
     336           0 :                 (kid)->DestroySubtree(subtreewhy);
     337             :             }
     338             :         }
     339             :     }
     340             : 
     341             :     // Reject owning pending promises.
     342           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     343             : 
     344             :     // Finally, destroy "us".
     345           0 :     ActorDestroy(why);
     346           0 : }
     347             : 
     348           0 : auto PBackgroundIDBFactoryParent::DeallocSubtree() -> void
     349             : {
     350             :     {
     351             :         // Recursively deleting PBackgroundIDBDatabase kids
     352           0 :         for (auto iter = (mManagedPBackgroundIDBDatabaseParent).Iter(); (!((iter).Done())); (iter).Next()) {
     353           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     354             :         }
     355             : 
     356           0 :         for (auto iter = (mManagedPBackgroundIDBDatabaseParent).Iter(); (!((iter).Done())); (iter).Next()) {
     357           0 :             DeallocPBackgroundIDBDatabaseParent(((iter).Get())->GetKey());
     358             :         }
     359           0 :         (mManagedPBackgroundIDBDatabaseParent).Clear();
     360             :     }
     361             :     {
     362             :         // Recursively deleting PBackgroundIDBFactoryRequest kids
     363           0 :         for (auto iter = (mManagedPBackgroundIDBFactoryRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     364           0 :             (((iter).Get())->GetKey())->DeallocSubtree();
     365             :         }
     366             : 
     367           0 :         for (auto iter = (mManagedPBackgroundIDBFactoryRequestParent).Iter(); (!((iter).Done())); (iter).Next()) {
     368           0 :             DeallocPBackgroundIDBFactoryRequestParent(((iter).Get())->GetKey());
     369             :         }
     370           0 :         (mManagedPBackgroundIDBFactoryRequestParent).Clear();
     371             :     }
     372           0 : }
     373             : 
     374           0 : auto PBackgroundIDBFactoryParent::Write(
     375             :         const SystemPrincipalInfo& v__,
     376             :         Message* msg__) -> void
     377             : {
     378           0 : }
     379             : 
     380           0 : auto PBackgroundIDBFactoryParent::Read(
     381             :         SystemPrincipalInfo* v__,
     382             :         const Message* msg__,
     383             :         PickleIterator* iter__) -> bool
     384             : {
     385           0 :     return true;
     386             : }
     387             : 
     388           0 : auto PBackgroundIDBFactoryParent::Write(
     389             :         const nsTArray<PrincipalInfo>& v__,
     390             :         Message* msg__) -> void
     391             : {
     392           0 :     uint32_t length = (v__).Length();
     393           0 :     Write(length, msg__);
     394             :     // Sentinel = ('length', 'PrincipalInfo[]')
     395           0 :     (msg__)->WriteSentinel(1032188126);
     396             : 
     397           0 :     for (auto& elem : v__) {
     398           0 :         Write(elem, msg__);
     399             :         // Sentinel = 'PrincipalInfo[]'
     400           0 :         (msg__)->WriteSentinel(413380193);
     401             :     }
     402           0 : }
     403             : 
     404           0 : auto PBackgroundIDBFactoryParent::Read(
     405             :         nsTArray<PrincipalInfo>* v__,
     406             :         const Message* msg__,
     407             :         PickleIterator* iter__) -> bool
     408             : {
     409           0 :     nsTArray<PrincipalInfo> fa;
     410             :     uint32_t length;
     411           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     412           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     413           0 :         return false;
     414             :     }
     415             :     // Sentinel = ('length', 'PrincipalInfo[]')
     416           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     417           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     418           0 :         return false;
     419             :     }
     420             : 
     421           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     422           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     423           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     424           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     425           0 :             return false;
     426             :         }
     427             :         // Sentinel = 'PrincipalInfo[]'
     428           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     429           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     430           0 :             return false;
     431             :         }
     432             :     }
     433           0 :     (v__)->SwapElements(fa);
     434           0 :     return true;
     435             : }
     436             : 
     437           0 : auto PBackgroundIDBFactoryParent::Write(
     438             :         const PBackgroundIDBFactoryRequestParent* v__,
     439             :         Message* msg__,
     440             :         bool nullable__) -> void
     441             : {
     442             :     int32_t id;
     443           0 :     if ((!(v__))) {
     444           0 :         if ((!(nullable__))) {
     445           0 :             FatalError("NULL actor value passed to non-nullable param");
     446             :         }
     447           0 :         id = 0;
     448             :     }
     449             :     else {
     450           0 :         id = (v__)->Id();
     451           0 :         if ((1) == (id)) {
     452           0 :             FatalError("actor has been |delete|d");
     453             :         }
     454             :     }
     455             : 
     456           0 :     Write(id, msg__);
     457           0 : }
     458             : 
     459           0 : auto PBackgroundIDBFactoryParent::Read(
     460             :         PBackgroundIDBFactoryRequestParent** v__,
     461             :         const Message* msg__,
     462             :         PickleIterator* iter__,
     463             :         bool nullable__) -> bool
     464             : {
     465           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBFactoryRequest", PBackgroundIDBFactoryRequestMsgStart);
     466           0 :     if ((actor).isNothing()) {
     467           0 :         return false;
     468             :     }
     469             : 
     470           0 :     (*(v__)) = static_cast<PBackgroundIDBFactoryRequestParent*>((actor).value());
     471           0 :     return true;
     472             : }
     473             : 
     474           0 : auto PBackgroundIDBFactoryParent::Write(
     475             :         const ExpandedPrincipalInfo& v__,
     476             :         Message* msg__) -> void
     477             : {
     478           0 :     Write((v__).attrs(), msg__);
     479             :     // Sentinel = 'attrs'
     480           0 :     (msg__)->WriteSentinel(3014987797);
     481           0 :     Write((v__).whitelist(), msg__);
     482             :     // Sentinel = 'whitelist'
     483           0 :     (msg__)->WriteSentinel(3731637258);
     484           0 : }
     485             : 
     486           0 : auto PBackgroundIDBFactoryParent::Read(
     487             :         ExpandedPrincipalInfo* v__,
     488             :         const Message* msg__,
     489             :         PickleIterator* iter__) -> bool
     490             : {
     491           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     492           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     493           0 :         return false;
     494             :     }
     495             :     // Sentinel = 'attrs'
     496           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     497           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     498           0 :         return false;
     499             :     }
     500           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
     501           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     502           0 :         return false;
     503             :     }
     504             :     // Sentinel = 'whitelist'
     505           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
     506           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     507           0 :         return false;
     508             :     }
     509           0 :     return true;
     510             : }
     511             : 
     512           0 : auto PBackgroundIDBFactoryParent::Write(
     513             :         const IndexMetadata& v__,
     514             :         Message* msg__) -> void
     515             : {
     516           0 :     Write((v__).id(), msg__);
     517             :     // Sentinel = 'id'
     518           0 :     (msg__)->WriteSentinel(2794505629);
     519           0 :     Write((v__).name(), msg__);
     520             :     // Sentinel = 'name'
     521           0 :     (msg__)->WriteSentinel(15034981);
     522           0 :     Write((v__).keyPath(), msg__);
     523             :     // Sentinel = 'keyPath'
     524           0 :     (msg__)->WriteSentinel(1014825087);
     525           0 :     Write((v__).locale(), msg__);
     526             :     // Sentinel = 'locale'
     527           0 :     (msg__)->WriteSentinel(779891848);
     528           0 :     Write((v__).unique(), msg__);
     529             :     // Sentinel = 'unique'
     530           0 :     (msg__)->WriteSentinel(4039542363);
     531           0 :     Write((v__).multiEntry(), msg__);
     532             :     // Sentinel = 'multiEntry'
     533           0 :     (msg__)->WriteSentinel(1069215611);
     534           0 :     Write((v__).autoLocale(), msg__);
     535             :     // Sentinel = 'autoLocale'
     536           0 :     (msg__)->WriteSentinel(2816072777);
     537           0 : }
     538             : 
     539           0 : auto PBackgroundIDBFactoryParent::Read(
     540             :         IndexMetadata* v__,
     541             :         const Message* msg__,
     542             :         PickleIterator* iter__) -> bool
     543             : {
     544           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
     545           0 :         FatalError("Error deserializing 'id' (int64_t) member of 'IndexMetadata'");
     546           0 :         return false;
     547             :     }
     548             :     // Sentinel = 'id'
     549           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
     550           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (int64_t) member of 'IndexMetadata'");
     551           0 :         return false;
     552             :     }
     553           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
     554           0 :         FatalError("Error deserializing 'name' (nsString) member of 'IndexMetadata'");
     555           0 :         return false;
     556             :     }
     557             :     // Sentinel = 'name'
     558           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
     559           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'IndexMetadata'");
     560           0 :         return false;
     561             :     }
     562           0 :     if ((!(Read((&((v__)->keyPath())), msg__, iter__)))) {
     563           0 :         FatalError("Error deserializing 'keyPath' (KeyPath) member of 'IndexMetadata'");
     564           0 :         return false;
     565             :     }
     566             :     // Sentinel = 'keyPath'
     567           0 :     if ((!((msg__)->ReadSentinel(iter__, 1014825087)))) {
     568           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'keyPath' (KeyPath) member of 'IndexMetadata'");
     569           0 :         return false;
     570             :     }
     571           0 :     if ((!(Read((&((v__)->locale())), msg__, iter__)))) {
     572           0 :         FatalError("Error deserializing 'locale' (nsCString) member of 'IndexMetadata'");
     573           0 :         return false;
     574             :     }
     575             :     // Sentinel = 'locale'
     576           0 :     if ((!((msg__)->ReadSentinel(iter__, 779891848)))) {
     577           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'locale' (nsCString) member of 'IndexMetadata'");
     578           0 :         return false;
     579             :     }
     580           0 :     if ((!(Read((&((v__)->unique())), msg__, iter__)))) {
     581           0 :         FatalError("Error deserializing 'unique' (bool) member of 'IndexMetadata'");
     582           0 :         return false;
     583             :     }
     584             :     // Sentinel = 'unique'
     585           0 :     if ((!((msg__)->ReadSentinel(iter__, 4039542363)))) {
     586           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'unique' (bool) member of 'IndexMetadata'");
     587           0 :         return false;
     588             :     }
     589           0 :     if ((!(Read((&((v__)->multiEntry())), msg__, iter__)))) {
     590           0 :         FatalError("Error deserializing 'multiEntry' (bool) member of 'IndexMetadata'");
     591           0 :         return false;
     592             :     }
     593             :     // Sentinel = 'multiEntry'
     594           0 :     if ((!((msg__)->ReadSentinel(iter__, 1069215611)))) {
     595           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'multiEntry' (bool) member of 'IndexMetadata'");
     596           0 :         return false;
     597             :     }
     598           0 :     if ((!(Read((&((v__)->autoLocale())), msg__, iter__)))) {
     599           0 :         FatalError("Error deserializing 'autoLocale' (bool) member of 'IndexMetadata'");
     600           0 :         return false;
     601             :     }
     602             :     // Sentinel = 'autoLocale'
     603           0 :     if ((!((msg__)->ReadSentinel(iter__, 2816072777)))) {
     604           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'autoLocale' (bool) member of 'IndexMetadata'");
     605           0 :         return false;
     606             :     }
     607           0 :     return true;
     608             : }
     609             : 
     610           0 : auto PBackgroundIDBFactoryParent::Write(
     611             :         const DatabaseMetadata& v__,
     612             :         Message* msg__) -> void
     613             : {
     614           0 :     Write((v__).name(), msg__);
     615             :     // Sentinel = 'name'
     616           0 :     (msg__)->WriteSentinel(15034981);
     617           0 :     Write((v__).version(), msg__);
     618             :     // Sentinel = 'version'
     619           0 :     (msg__)->WriteSentinel(4003360947);
     620           0 :     Write((v__).persistenceType(), msg__);
     621             :     // Sentinel = 'persistenceType'
     622           0 :     (msg__)->WriteSentinel(3316493122);
     623           0 : }
     624             : 
     625           0 : auto PBackgroundIDBFactoryParent::Read(
     626             :         DatabaseMetadata* v__,
     627             :         const Message* msg__,
     628             :         PickleIterator* iter__) -> bool
     629             : {
     630           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
     631           0 :         FatalError("Error deserializing 'name' (nsString) member of 'DatabaseMetadata'");
     632           0 :         return false;
     633             :     }
     634             :     // Sentinel = 'name'
     635           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
     636           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'DatabaseMetadata'");
     637           0 :         return false;
     638             :     }
     639           0 :     if ((!(Read((&((v__)->version())), msg__, iter__)))) {
     640           0 :         FatalError("Error deserializing 'version' (uint64_t) member of 'DatabaseMetadata'");
     641           0 :         return false;
     642             :     }
     643             :     // Sentinel = 'version'
     644           0 :     if ((!((msg__)->ReadSentinel(iter__, 4003360947)))) {
     645           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'version' (uint64_t) member of 'DatabaseMetadata'");
     646           0 :         return false;
     647             :     }
     648           0 :     if ((!(Read((&((v__)->persistenceType())), msg__, iter__)))) {
     649           0 :         FatalError("Error deserializing 'persistenceType' (PersistenceType) member of 'DatabaseMetadata'");
     650           0 :         return false;
     651             :     }
     652             :     // Sentinel = 'persistenceType'
     653           0 :     if ((!((msg__)->ReadSentinel(iter__, 3316493122)))) {
     654           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'persistenceType' (PersistenceType) member of 'DatabaseMetadata'");
     655           0 :         return false;
     656             :     }
     657           0 :     return true;
     658             : }
     659             : 
     660           0 : auto PBackgroundIDBFactoryParent::Write(
     661             :         const PrincipalInfo& v__,
     662             :         Message* msg__) -> void
     663             : {
     664             :     typedef PrincipalInfo type__;
     665           0 :     Write(int((v__).type()), msg__);
     666             :     // Sentinel = 'PrincipalInfo'
     667           0 :     (msg__)->WriteSentinel(4194518819);
     668             : 
     669           0 :     switch ((v__).type()) {
     670             :     case type__::TContentPrincipalInfo:
     671             :         {
     672           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
     673             :             // Sentinel = 'TContentPrincipalInfo'
     674           0 :             (msg__)->WriteSentinel(3677342258);
     675           0 :             return;
     676             :         }
     677             :     case type__::TSystemPrincipalInfo:
     678             :         {
     679           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
     680             :             // Sentinel = 'TSystemPrincipalInfo'
     681           0 :             (msg__)->WriteSentinel(3590603679);
     682           0 :             return;
     683             :         }
     684             :     case type__::TNullPrincipalInfo:
     685             :         {
     686           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
     687             :             // Sentinel = 'TNullPrincipalInfo'
     688           0 :             (msg__)->WriteSentinel(3477774965);
     689           0 :             return;
     690             :         }
     691             :     case type__::TExpandedPrincipalInfo:
     692             :         {
     693           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
     694             :             // Sentinel = 'TExpandedPrincipalInfo'
     695           0 :             (msg__)->WriteSentinel(589324917);
     696           0 :             return;
     697             :         }
     698             :     default:
     699             :         {
     700           0 :             FatalError("unknown union type");
     701           0 :             return;
     702             :         }
     703             :     }
     704             : }
     705             : 
     706           0 : auto PBackgroundIDBFactoryParent::Read(
     707             :         PrincipalInfo* v__,
     708             :         const Message* msg__,
     709             :         PickleIterator* iter__) -> bool
     710             : {
     711             :     typedef PrincipalInfo type__;
     712             :     int type;
     713           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     714           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
     715           0 :         return false;
     716             :     }
     717             :     // Sentinel = 'PrincipalInfo'
     718           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
     719           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
     720           0 :         return false;
     721             :     }
     722             : 
     723           0 :     switch (type) {
     724             :     case type__::TContentPrincipalInfo:
     725             :         {
     726           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
     727           0 :             (*(v__)) = tmp;
     728           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
     729           0 :                 FatalError("Error deserializing Union type");
     730           0 :                 return false;
     731             :             }
     732             :             // Sentinel = 'TContentPrincipalInfo'
     733           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
     734           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     735           0 :                 return false;
     736             :             }
     737           0 :             return true;
     738             :         }
     739             :     case type__::TSystemPrincipalInfo:
     740             :         {
     741           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
     742           0 :             (*(v__)) = tmp;
     743           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
     744           0 :                 FatalError("Error deserializing Union type");
     745           0 :                 return false;
     746             :             }
     747             :             // Sentinel = 'TSystemPrincipalInfo'
     748           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
     749           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     750           0 :                 return false;
     751             :             }
     752           0 :             return true;
     753             :         }
     754             :     case type__::TNullPrincipalInfo:
     755             :         {
     756           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
     757           0 :             (*(v__)) = tmp;
     758           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
     759           0 :                 FatalError("Error deserializing Union type");
     760           0 :                 return false;
     761             :             }
     762             :             // Sentinel = 'TNullPrincipalInfo'
     763           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
     764           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     765           0 :                 return false;
     766             :             }
     767           0 :             return true;
     768             :         }
     769             :     case type__::TExpandedPrincipalInfo:
     770             :         {
     771           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
     772           0 :             (*(v__)) = tmp;
     773           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
     774           0 :                 FatalError("Error deserializing Union type");
     775           0 :                 return false;
     776             :             }
     777             :             // Sentinel = 'TExpandedPrincipalInfo'
     778           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
     779           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     780           0 :                 return false;
     781             :             }
     782           0 :             return true;
     783             :         }
     784             :     default:
     785             :         {
     786           0 :             FatalError("unknown union type");
     787           0 :             return false;
     788             :         }
     789             :     }
     790             : }
     791             : 
     792           0 : auto PBackgroundIDBFactoryParent::Write(
     793             :         const ContentPrincipalInfoOriginNoSuffix& v__,
     794             :         Message* msg__) -> void
     795             : {
     796             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     797           0 :     Write(int((v__).type()), msg__);
     798             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     799           0 :     (msg__)->WriteSentinel(2442066713);
     800             : 
     801           0 :     switch ((v__).type()) {
     802             :     case type__::TnsCString:
     803             :         {
     804           0 :             Write((v__).get_nsCString(), msg__);
     805             :             // Sentinel = 'TnsCString'
     806           0 :             (msg__)->WriteSentinel(2427411293);
     807           0 :             return;
     808             :         }
     809             :     case type__::Tvoid_t:
     810             :         {
     811           0 :             Write((v__).get_void_t(), msg__);
     812             :             // Sentinel = 'Tvoid_t'
     813           0 :             (msg__)->WriteSentinel(3041273328);
     814           0 :             return;
     815             :         }
     816             :     default:
     817             :         {
     818           0 :             FatalError("unknown union type");
     819           0 :             return;
     820             :         }
     821             :     }
     822             : }
     823             : 
     824           0 : auto PBackgroundIDBFactoryParent::Read(
     825             :         ContentPrincipalInfoOriginNoSuffix* v__,
     826             :         const Message* msg__,
     827             :         PickleIterator* iter__) -> bool
     828             : {
     829             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     830             :     int type;
     831           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     832           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
     833           0 :         return false;
     834             :     }
     835             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     836           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
     837           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
     838           0 :         return false;
     839             :     }
     840             : 
     841           0 :     switch (type) {
     842             :     case type__::TnsCString:
     843             :         {
     844           0 :             nsCString tmp = nsCString();
     845           0 :             (*(v__)) = tmp;
     846           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
     847           0 :                 FatalError("Error deserializing Union type");
     848           0 :                 return false;
     849             :             }
     850             :             // Sentinel = 'TnsCString'
     851           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
     852           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     853           0 :                 return false;
     854             :             }
     855           0 :             return true;
     856             :         }
     857             :     case type__::Tvoid_t:
     858             :         {
     859             :             void_t tmp = void_t();
     860           0 :             (*(v__)) = tmp;
     861           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     862           0 :                 FatalError("Error deserializing Union type");
     863           0 :                 return false;
     864             :             }
     865             :             // Sentinel = 'Tvoid_t'
     866           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     867           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     868           0 :                 return false;
     869             :             }
     870           0 :             return true;
     871             :         }
     872             :     default:
     873             :         {
     874           0 :             FatalError("unknown union type");
     875           0 :             return false;
     876             :         }
     877             :     }
     878             : }
     879             : 
     880           0 : auto PBackgroundIDBFactoryParent::Write(
     881             :         const FactoryRequestParams& v__,
     882             :         Message* msg__) -> void
     883             : {
     884             :     typedef FactoryRequestParams type__;
     885           0 :     Write(int((v__).type()), msg__);
     886             :     // Sentinel = 'FactoryRequestParams'
     887           0 :     (msg__)->WriteSentinel(1444753303);
     888             : 
     889           0 :     switch ((v__).type()) {
     890             :     case type__::TOpenDatabaseRequestParams:
     891             :         {
     892           0 :             Write((v__).get_OpenDatabaseRequestParams(), msg__);
     893             :             // Sentinel = 'TOpenDatabaseRequestParams'
     894           0 :             (msg__)->WriteSentinel(4137782958);
     895           0 :             return;
     896             :         }
     897             :     case type__::TDeleteDatabaseRequestParams:
     898             :         {
     899           0 :             Write((v__).get_DeleteDatabaseRequestParams(), msg__);
     900             :             // Sentinel = 'TDeleteDatabaseRequestParams'
     901           0 :             (msg__)->WriteSentinel(3237276035);
     902           0 :             return;
     903             :         }
     904             :     default:
     905             :         {
     906           0 :             FatalError("unknown union type");
     907           0 :             return;
     908             :         }
     909             :     }
     910             : }
     911             : 
     912           0 : auto PBackgroundIDBFactoryParent::Read(
     913             :         FactoryRequestParams* v__,
     914             :         const Message* msg__,
     915             :         PickleIterator* iter__) -> bool
     916             : {
     917             :     typedef FactoryRequestParams type__;
     918             :     int type;
     919           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     920           0 :         mozilla::ipc::UnionTypeReadError("FactoryRequestParams");
     921           0 :         return false;
     922             :     }
     923             :     // Sentinel = 'FactoryRequestParams'
     924           0 :     if ((!((msg__)->ReadSentinel(iter__, 1444753303)))) {
     925           0 :         mozilla::ipc::SentinelReadError("FactoryRequestParams");
     926           0 :         return false;
     927             :     }
     928             : 
     929           0 :     switch (type) {
     930             :     case type__::TOpenDatabaseRequestParams:
     931             :         {
     932           0 :             OpenDatabaseRequestParams tmp = OpenDatabaseRequestParams();
     933           0 :             (*(v__)) = tmp;
     934           0 :             if ((!(Read((&((v__)->get_OpenDatabaseRequestParams())), msg__, iter__)))) {
     935           0 :                 FatalError("Error deserializing Union type");
     936           0 :                 return false;
     937             :             }
     938             :             // Sentinel = 'TOpenDatabaseRequestParams'
     939           0 :             if ((!((msg__)->ReadSentinel(iter__, 4137782958)))) {
     940           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     941           0 :                 return false;
     942             :             }
     943           0 :             return true;
     944             :         }
     945             :     case type__::TDeleteDatabaseRequestParams:
     946             :         {
     947           0 :             DeleteDatabaseRequestParams tmp = DeleteDatabaseRequestParams();
     948           0 :             (*(v__)) = tmp;
     949           0 :             if ((!(Read((&((v__)->get_DeleteDatabaseRequestParams())), msg__, iter__)))) {
     950           0 :                 FatalError("Error deserializing Union type");
     951           0 :                 return false;
     952             :             }
     953             :             // Sentinel = 'TDeleteDatabaseRequestParams'
     954           0 :             if ((!((msg__)->ReadSentinel(iter__, 3237276035)))) {
     955           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     956           0 :                 return false;
     957             :             }
     958           0 :             return true;
     959             :         }
     960             :     default:
     961             :         {
     962           0 :             FatalError("unknown union type");
     963           0 :             return false;
     964             :         }
     965             :     }
     966             : }
     967             : 
     968           0 : auto PBackgroundIDBFactoryParent::Write(
     969             :         const nsTArray<IndexMetadata>& v__,
     970             :         Message* msg__) -> void
     971             : {
     972           0 :     uint32_t length = (v__).Length();
     973           0 :     Write(length, msg__);
     974             :     // Sentinel = ('length', 'IndexMetadata[]')
     975           0 :     (msg__)->WriteSentinel(3191133965);
     976             : 
     977           0 :     for (auto& elem : v__) {
     978           0 :         Write(elem, msg__);
     979             :         // Sentinel = 'IndexMetadata[]'
     980           0 :         (msg__)->WriteSentinel(653302948);
     981             :     }
     982           0 : }
     983             : 
     984           0 : auto PBackgroundIDBFactoryParent::Read(
     985             :         nsTArray<IndexMetadata>* v__,
     986             :         const Message* msg__,
     987             :         PickleIterator* iter__) -> bool
     988             : {
     989           0 :     nsTArray<IndexMetadata> fa;
     990             :     uint32_t length;
     991           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     992           0 :         mozilla::ipc::ArrayLengthReadError("IndexMetadata[]");
     993           0 :         return false;
     994             :     }
     995             :     // Sentinel = ('length', 'IndexMetadata[]')
     996           0 :     if ((!((msg__)->ReadSentinel(iter__, 3191133965)))) {
     997           0 :         mozilla::ipc::SentinelReadError("IndexMetadata[]");
     998           0 :         return false;
     999             :     }
    1000             : 
    1001           0 :     IndexMetadata* elems = (fa).AppendElements(length);
    1002           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1003           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1004           0 :             FatalError("Error deserializing 'IndexMetadata[i]'");
    1005           0 :             return false;
    1006             :         }
    1007             :         // Sentinel = 'IndexMetadata[]'
    1008           0 :         if ((!((msg__)->ReadSentinel(iter__, 653302948)))) {
    1009           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'IndexMetadata[i]'");
    1010           0 :             return false;
    1011             :         }
    1012             :     }
    1013           0 :     (v__)->SwapElements(fa);
    1014           0 :     return true;
    1015             : }
    1016             : 
    1017           0 : auto PBackgroundIDBFactoryParent::Write(
    1018             :         const ObjectStoreMetadata& v__,
    1019             :         Message* msg__) -> void
    1020             : {
    1021           0 :     Write((v__).id(), msg__);
    1022             :     // Sentinel = 'id'
    1023           0 :     (msg__)->WriteSentinel(2794505629);
    1024           0 :     Write((v__).name(), msg__);
    1025             :     // Sentinel = 'name'
    1026           0 :     (msg__)->WriteSentinel(15034981);
    1027           0 :     Write((v__).keyPath(), msg__);
    1028             :     // Sentinel = 'keyPath'
    1029           0 :     (msg__)->WriteSentinel(1014825087);
    1030           0 :     Write((v__).autoIncrement(), msg__);
    1031             :     // Sentinel = 'autoIncrement'
    1032           0 :     (msg__)->WriteSentinel(2122955977);
    1033           0 : }
    1034             : 
    1035           0 : auto PBackgroundIDBFactoryParent::Read(
    1036             :         ObjectStoreMetadata* v__,
    1037             :         const Message* msg__,
    1038             :         PickleIterator* iter__) -> bool
    1039             : {
    1040           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
    1041           0 :         FatalError("Error deserializing 'id' (int64_t) member of 'ObjectStoreMetadata'");
    1042           0 :         return false;
    1043             :     }
    1044             :     // Sentinel = 'id'
    1045           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
    1046           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (int64_t) member of 'ObjectStoreMetadata'");
    1047           0 :         return false;
    1048             :     }
    1049           0 :     if ((!(Read((&((v__)->name())), msg__, iter__)))) {
    1050           0 :         FatalError("Error deserializing 'name' (nsString) member of 'ObjectStoreMetadata'");
    1051           0 :         return false;
    1052             :     }
    1053             :     // Sentinel = 'name'
    1054           0 :     if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
    1055           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsString) member of 'ObjectStoreMetadata'");
    1056           0 :         return false;
    1057             :     }
    1058           0 :     if ((!(Read((&((v__)->keyPath())), msg__, iter__)))) {
    1059           0 :         FatalError("Error deserializing 'keyPath' (KeyPath) member of 'ObjectStoreMetadata'");
    1060           0 :         return false;
    1061             :     }
    1062             :     // Sentinel = 'keyPath'
    1063           0 :     if ((!((msg__)->ReadSentinel(iter__, 1014825087)))) {
    1064           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'keyPath' (KeyPath) member of 'ObjectStoreMetadata'");
    1065           0 :         return false;
    1066             :     }
    1067           0 :     if ((!(Read((&((v__)->autoIncrement())), msg__, iter__)))) {
    1068           0 :         FatalError("Error deserializing 'autoIncrement' (bool) member of 'ObjectStoreMetadata'");
    1069           0 :         return false;
    1070             :     }
    1071             :     // Sentinel = 'autoIncrement'
    1072           0 :     if ((!((msg__)->ReadSentinel(iter__, 2122955977)))) {
    1073           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'autoIncrement' (bool) member of 'ObjectStoreMetadata'");
    1074           0 :         return false;
    1075             :     }
    1076           0 :     return true;
    1077             : }
    1078             : 
    1079           0 : auto PBackgroundIDBFactoryParent::Write(
    1080             :         const PBackgroundIDBDatabaseParent* v__,
    1081             :         Message* msg__,
    1082             :         bool nullable__) -> void
    1083             : {
    1084             :     int32_t id;
    1085           0 :     if ((!(v__))) {
    1086           0 :         if ((!(nullable__))) {
    1087           0 :             FatalError("NULL actor value passed to non-nullable param");
    1088             :         }
    1089           0 :         id = 0;
    1090             :     }
    1091             :     else {
    1092           0 :         id = (v__)->Id();
    1093           0 :         if ((1) == (id)) {
    1094           0 :             FatalError("actor has been |delete|d");
    1095             :         }
    1096             :     }
    1097             : 
    1098           0 :     Write(id, msg__);
    1099           0 : }
    1100             : 
    1101           0 : auto PBackgroundIDBFactoryParent::Read(
    1102             :         PBackgroundIDBDatabaseParent** v__,
    1103             :         const Message* msg__,
    1104             :         PickleIterator* iter__,
    1105             :         bool nullable__) -> bool
    1106             : {
    1107           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBDatabase", PBackgroundIDBDatabaseMsgStart);
    1108           0 :     if ((actor).isNothing()) {
    1109           0 :         return false;
    1110             :     }
    1111             : 
    1112           0 :     (*(v__)) = static_cast<PBackgroundIDBDatabaseParent*>((actor).value());
    1113           0 :     return true;
    1114             : }
    1115             : 
    1116           0 : auto PBackgroundIDBFactoryParent::Write(
    1117             :         const ContentPrincipalInfo& v__,
    1118             :         Message* msg__) -> void
    1119             : {
    1120           0 :     Write((v__).attrs(), msg__);
    1121             :     // Sentinel = 'attrs'
    1122           0 :     (msg__)->WriteSentinel(3014987797);
    1123           0 :     Write((v__).originNoSuffix(), msg__);
    1124             :     // Sentinel = 'originNoSuffix'
    1125           0 :     (msg__)->WriteSentinel(2833071422);
    1126           0 :     Write((v__).spec(), msg__);
    1127             :     // Sentinel = 'spec'
    1128           0 :     (msg__)->WriteSentinel(1630740541);
    1129           0 : }
    1130             : 
    1131           0 : auto PBackgroundIDBFactoryParent::Read(
    1132             :         ContentPrincipalInfo* v__,
    1133             :         const Message* msg__,
    1134             :         PickleIterator* iter__) -> bool
    1135             : {
    1136           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1137           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1138           0 :         return false;
    1139             :     }
    1140             :     // Sentinel = 'attrs'
    1141           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1142           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
    1143           0 :         return false;
    1144             :     }
    1145           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
    1146           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1147           0 :         return false;
    1148             :     }
    1149             :     // Sentinel = 'originNoSuffix'
    1150           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
    1151           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
    1152           0 :         return false;
    1153             :     }
    1154           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1155           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1156           0 :         return false;
    1157             :     }
    1158             :     // Sentinel = 'spec'
    1159           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1160           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
    1161           0 :         return false;
    1162             :     }
    1163           0 :     return true;
    1164             : }
    1165             : 
    1166           0 : auto PBackgroundIDBFactoryParent::Write(
    1167             :         const nsTArray<ObjectStoreSpec>& v__,
    1168             :         Message* msg__) -> void
    1169             : {
    1170           0 :     uint32_t length = (v__).Length();
    1171           0 :     Write(length, msg__);
    1172             :     // Sentinel = ('length', 'ObjectStoreSpec[]')
    1173           0 :     (msg__)->WriteSentinel(3924467189);
    1174             : 
    1175           0 :     for (auto& elem : v__) {
    1176           0 :         Write(elem, msg__);
    1177             :         // Sentinel = 'ObjectStoreSpec[]'
    1178           0 :         (msg__)->WriteSentinel(1928795868);
    1179             :     }
    1180           0 : }
    1181             : 
    1182           0 : auto PBackgroundIDBFactoryParent::Read(
    1183             :         nsTArray<ObjectStoreSpec>* v__,
    1184             :         const Message* msg__,
    1185             :         PickleIterator* iter__) -> bool
    1186             : {
    1187           0 :     nsTArray<ObjectStoreSpec> fa;
    1188             :     uint32_t length;
    1189           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
    1190           0 :         mozilla::ipc::ArrayLengthReadError("ObjectStoreSpec[]");
    1191           0 :         return false;
    1192             :     }
    1193             :     // Sentinel = ('length', 'ObjectStoreSpec[]')
    1194           0 :     if ((!((msg__)->ReadSentinel(iter__, 3924467189)))) {
    1195           0 :         mozilla::ipc::SentinelReadError("ObjectStoreSpec[]");
    1196           0 :         return false;
    1197             :     }
    1198             : 
    1199           0 :     ObjectStoreSpec* elems = (fa).AppendElements(length);
    1200           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
    1201           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
    1202           0 :             FatalError("Error deserializing 'ObjectStoreSpec[i]'");
    1203           0 :             return false;
    1204             :         }
    1205             :         // Sentinel = 'ObjectStoreSpec[]'
    1206           0 :         if ((!((msg__)->ReadSentinel(iter__, 1928795868)))) {
    1207           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'ObjectStoreSpec[i]'");
    1208           0 :             return false;
    1209             :         }
    1210             :     }
    1211           0 :     (v__)->SwapElements(fa);
    1212           0 :     return true;
    1213             : }
    1214             : 
    1215           0 : auto PBackgroundIDBFactoryParent::Write(
    1216             :         const OpenDatabaseRequestParams& v__,
    1217             :         Message* msg__) -> void
    1218             : {
    1219           0 :     Write((v__).commonParams(), msg__);
    1220             :     // Sentinel = 'commonParams'
    1221           0 :     (msg__)->WriteSentinel(3132658281);
    1222           0 : }
    1223             : 
    1224           0 : auto PBackgroundIDBFactoryParent::Read(
    1225             :         OpenDatabaseRequestParams* v__,
    1226             :         const Message* msg__,
    1227             :         PickleIterator* iter__) -> bool
    1228             : {
    1229           0 :     if ((!(Read((&((v__)->commonParams())), msg__, iter__)))) {
    1230           0 :         FatalError("Error deserializing 'commonParams' (CommonFactoryRequestParams) member of 'OpenDatabaseRequestParams'");
    1231           0 :         return false;
    1232             :     }
    1233             :     // Sentinel = 'commonParams'
    1234           0 :     if ((!((msg__)->ReadSentinel(iter__, 3132658281)))) {
    1235           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'commonParams' (CommonFactoryRequestParams) member of 'OpenDatabaseRequestParams'");
    1236           0 :         return false;
    1237             :     }
    1238           0 :     return true;
    1239             : }
    1240             : 
    1241           0 : auto PBackgroundIDBFactoryParent::Write(
    1242             :         const NullPrincipalInfo& v__,
    1243             :         Message* msg__) -> void
    1244             : {
    1245           0 :     Write((v__).attrs(), msg__);
    1246             :     // Sentinel = 'attrs'
    1247           0 :     (msg__)->WriteSentinel(3014987797);
    1248           0 :     Write((v__).spec(), msg__);
    1249             :     // Sentinel = 'spec'
    1250           0 :     (msg__)->WriteSentinel(1630740541);
    1251           0 : }
    1252             : 
    1253           0 : auto PBackgroundIDBFactoryParent::Read(
    1254             :         NullPrincipalInfo* v__,
    1255             :         const Message* msg__,
    1256             :         PickleIterator* iter__) -> bool
    1257             : {
    1258           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
    1259           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1260           0 :         return false;
    1261             :     }
    1262             :     // Sentinel = 'attrs'
    1263           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
    1264           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
    1265           0 :         return false;
    1266             :     }
    1267           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
    1268           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1269           0 :         return false;
    1270             :     }
    1271             :     // Sentinel = 'spec'
    1272           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
    1273           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
    1274           0 :         return false;
    1275             :     }
    1276           0 :     return true;
    1277             : }
    1278             : 
    1279           0 : auto PBackgroundIDBFactoryParent::Write(
    1280             :         const ObjectStoreSpec& v__,
    1281             :         Message* msg__) -> void
    1282             : {
    1283           0 :     Write((v__).metadata(), msg__);
    1284             :     // Sentinel = 'metadata'
    1285           0 :     (msg__)->WriteSentinel(541737151);
    1286           0 :     Write((v__).indexes(), msg__);
    1287             :     // Sentinel = 'indexes'
    1288           0 :     (msg__)->WriteSentinel(2296882095);
    1289           0 : }
    1290             : 
    1291           0 : auto PBackgroundIDBFactoryParent::Read(
    1292             :         ObjectStoreSpec* v__,
    1293             :         const Message* msg__,
    1294             :         PickleIterator* iter__) -> bool
    1295             : {
    1296           0 :     if ((!(Read((&((v__)->metadata())), msg__, iter__)))) {
    1297           0 :         FatalError("Error deserializing 'metadata' (ObjectStoreMetadata) member of 'ObjectStoreSpec'");
    1298           0 :         return false;
    1299             :     }
    1300             :     // Sentinel = 'metadata'
    1301           0 :     if ((!((msg__)->ReadSentinel(iter__, 541737151)))) {
    1302           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'metadata' (ObjectStoreMetadata) member of 'ObjectStoreSpec'");
    1303           0 :         return false;
    1304             :     }
    1305           0 :     if ((!(Read((&((v__)->indexes())), msg__, iter__)))) {
    1306           0 :         FatalError("Error deserializing 'indexes' (IndexMetadata[]) member of 'ObjectStoreSpec'");
    1307           0 :         return false;
    1308             :     }
    1309             :     // Sentinel = 'indexes'
    1310           0 :     if ((!((msg__)->ReadSentinel(iter__, 2296882095)))) {
    1311           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'indexes' (IndexMetadata[]) member of 'ObjectStoreSpec'");
    1312           0 :         return false;
    1313             :     }
    1314           0 :     return true;
    1315             : }
    1316             : 
    1317           0 : auto PBackgroundIDBFactoryParent::Write(
    1318             :         const CommonFactoryRequestParams& v__,
    1319             :         Message* msg__) -> void
    1320             : {
    1321           0 :     Write((v__).metadata(), msg__);
    1322             :     // Sentinel = 'metadata'
    1323           0 :     (msg__)->WriteSentinel(541737151);
    1324           0 :     Write((v__).principalInfo(), msg__);
    1325             :     // Sentinel = 'principalInfo'
    1326           0 :     (msg__)->WriteSentinel(3386633731);
    1327           0 :     Write((v__).privateBrowsingMode(), msg__);
    1328             :     // Sentinel = 'privateBrowsingMode'
    1329           0 :     (msg__)->WriteSentinel(3760549000);
    1330           0 : }
    1331             : 
    1332           0 : auto PBackgroundIDBFactoryParent::Read(
    1333             :         CommonFactoryRequestParams* v__,
    1334             :         const Message* msg__,
    1335             :         PickleIterator* iter__) -> bool
    1336             : {
    1337           0 :     if ((!(Read((&((v__)->metadata())), msg__, iter__)))) {
    1338           0 :         FatalError("Error deserializing 'metadata' (DatabaseMetadata) member of 'CommonFactoryRequestParams'");
    1339           0 :         return false;
    1340             :     }
    1341             :     // Sentinel = 'metadata'
    1342           0 :     if ((!((msg__)->ReadSentinel(iter__, 541737151)))) {
    1343           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'metadata' (DatabaseMetadata) member of 'CommonFactoryRequestParams'");
    1344           0 :         return false;
    1345             :     }
    1346           0 :     if ((!(Read((&((v__)->principalInfo())), msg__, iter__)))) {
    1347           0 :         FatalError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'CommonFactoryRequestParams'");
    1348           0 :         return false;
    1349             :     }
    1350             :     // Sentinel = 'principalInfo'
    1351           0 :     if ((!((msg__)->ReadSentinel(iter__, 3386633731)))) {
    1352           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'principalInfo' (PrincipalInfo) member of 'CommonFactoryRequestParams'");
    1353           0 :         return false;
    1354             :     }
    1355           0 :     if ((!(Read((&((v__)->privateBrowsingMode())), msg__, iter__)))) {
    1356           0 :         FatalError("Error deserializing 'privateBrowsingMode' (bool) member of 'CommonFactoryRequestParams'");
    1357           0 :         return false;
    1358             :     }
    1359             :     // Sentinel = 'privateBrowsingMode'
    1360           0 :     if ((!((msg__)->ReadSentinel(iter__, 3760549000)))) {
    1361           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'privateBrowsingMode' (bool) member of 'CommonFactoryRequestParams'");
    1362           0 :         return false;
    1363             :     }
    1364           0 :     return true;
    1365             : }
    1366             : 
    1367           0 : auto PBackgroundIDBFactoryParent::Write(
    1368             :         const DeleteDatabaseRequestParams& v__,
    1369             :         Message* msg__) -> void
    1370             : {
    1371           0 :     Write((v__).commonParams(), msg__);
    1372             :     // Sentinel = 'commonParams'
    1373           0 :     (msg__)->WriteSentinel(3132658281);
    1374           0 : }
    1375             : 
    1376           0 : auto PBackgroundIDBFactoryParent::Read(
    1377             :         DeleteDatabaseRequestParams* v__,
    1378             :         const Message* msg__,
    1379             :         PickleIterator* iter__) -> bool
    1380             : {
    1381           0 :     if ((!(Read((&((v__)->commonParams())), msg__, iter__)))) {
    1382           0 :         FatalError("Error deserializing 'commonParams' (CommonFactoryRequestParams) member of 'DeleteDatabaseRequestParams'");
    1383           0 :         return false;
    1384             :     }
    1385             :     // Sentinel = 'commonParams'
    1386           0 :     if ((!((msg__)->ReadSentinel(iter__, 3132658281)))) {
    1387           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'commonParams' (CommonFactoryRequestParams) member of 'DeleteDatabaseRequestParams'");
    1388           0 :         return false;
    1389             :     }
    1390           0 :     return true;
    1391             : }
    1392             : 
    1393           0 : auto PBackgroundIDBFactoryParent::Write(
    1394             :         const PBackgroundIDBFactoryParent* v__,
    1395             :         Message* msg__,
    1396             :         bool nullable__) -> void
    1397             : {
    1398             :     int32_t id;
    1399           0 :     if ((!(v__))) {
    1400           0 :         if ((!(nullable__))) {
    1401           0 :             FatalError("NULL actor value passed to non-nullable param");
    1402             :         }
    1403           0 :         id = 0;
    1404             :     }
    1405             :     else {
    1406           0 :         id = (v__)->Id();
    1407           0 :         if ((1) == (id)) {
    1408           0 :             FatalError("actor has been |delete|d");
    1409             :         }
    1410             :     }
    1411             : 
    1412           0 :     Write(id, msg__);
    1413           0 : }
    1414             : 
    1415           0 : auto PBackgroundIDBFactoryParent::Read(
    1416             :         PBackgroundIDBFactoryParent** v__,
    1417             :         const Message* msg__,
    1418             :         PickleIterator* iter__,
    1419             :         bool nullable__) -> bool
    1420             : {
    1421           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBFactory", PBackgroundIDBFactoryMsgStart);
    1422           0 :     if ((actor).isNothing()) {
    1423           0 :         return false;
    1424             :     }
    1425             : 
    1426           0 :     (*(v__)) = static_cast<PBackgroundIDBFactoryParent*>((actor).value());
    1427           0 :     return true;
    1428             : }
    1429             : 
    1430           0 : auto PBackgroundIDBFactoryParent::Write(
    1431             :         const DatabaseSpec& v__,
    1432             :         Message* msg__) -> void
    1433             : {
    1434           0 :     Write((v__).metadata(), msg__);
    1435             :     // Sentinel = 'metadata'
    1436           0 :     (msg__)->WriteSentinel(541737151);
    1437           0 :     Write((v__).objectStores(), msg__);
    1438             :     // Sentinel = 'objectStores'
    1439           0 :     (msg__)->WriteSentinel(255152447);
    1440           0 : }
    1441             : 
    1442           0 : auto PBackgroundIDBFactoryParent::Read(
    1443             :         DatabaseSpec* v__,
    1444             :         const Message* msg__,
    1445             :         PickleIterator* iter__) -> bool
    1446             : {
    1447           0 :     if ((!(Read((&((v__)->metadata())), msg__, iter__)))) {
    1448           0 :         FatalError("Error deserializing 'metadata' (DatabaseMetadata) member of 'DatabaseSpec'");
    1449           0 :         return false;
    1450             :     }
    1451             :     // Sentinel = 'metadata'
    1452           0 :     if ((!((msg__)->ReadSentinel(iter__, 541737151)))) {
    1453           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'metadata' (DatabaseMetadata) member of 'DatabaseSpec'");
    1454           0 :         return false;
    1455             :     }
    1456           0 :     if ((!(Read((&((v__)->objectStores())), msg__, iter__)))) {
    1457           0 :         FatalError("Error deserializing 'objectStores' (ObjectStoreSpec[]) member of 'DatabaseSpec'");
    1458           0 :         return false;
    1459             :     }
    1460             :     // Sentinel = 'objectStores'
    1461           0 :     if ((!((msg__)->ReadSentinel(iter__, 255152447)))) {
    1462           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'objectStores' (ObjectStoreSpec[]) member of 'DatabaseSpec'");
    1463           0 :         return false;
    1464             :     }
    1465           0 :     return true;
    1466             : }
    1467             : 
    1468             : 
    1469             : 
    1470             : } // namespace indexedDB
    1471             : } // namespace dom
    1472             : } // namespace mozilla

Generated by: LCOV version 1.13