LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PBackgroundIDBFactoryRequestChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 411 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 39 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/PBackgroundIDBFactoryRequestChild.h"
       8             : 
       9             : #include "mozilla/dom/indexedDB/PBackgroundIDBFactoryChild.h"
      10             : #include "mozilla/dom/indexedDB/PBackgroundIDBDatabaseChild.h"
      11             : 
      12             : #include "nsIFile.h"
      13             : #include "GeckoProfiler.h"
      14             : 
      15             : namespace mozilla {
      16             : namespace dom {
      17             : namespace indexedDB {
      18             : 
      19             : 
      20           0 : auto PBackgroundIDBFactoryRequestChild::Recv__delete__(const FactoryRequestResponse& response) -> mozilla::ipc::IPCResult
      21             : {
      22           0 :     return IPC_OK();
      23             : }
      24             : 
      25           0 : auto PBackgroundIDBFactoryRequestChild::ActorDestroy(ActorDestroyReason aWhy) -> void
      26             : {
      27           0 : }
      28             : 
      29           0 : MOZ_IMPLICIT PBackgroundIDBFactoryRequestChild::PBackgroundIDBFactoryRequestChild() :
      30             :     mozilla::ipc::IProtocol(mozilla::ipc::ChildSide),
      31           0 :     mState(PBackgroundIDBFactoryRequest::__Dead)
      32             : {
      33           0 :     MOZ_COUNT_CTOR(PBackgroundIDBFactoryRequestChild);
      34           0 : }
      35             : 
      36           0 : PBackgroundIDBFactoryRequestChild::~PBackgroundIDBFactoryRequestChild()
      37             : {
      38           0 :     MOZ_COUNT_DTOR(PBackgroundIDBFactoryRequestChild);
      39           0 : }
      40             : 
      41           0 : auto PBackgroundIDBFactoryRequestChild::Manager() const -> PBackgroundIDBFactoryChild*
      42             : {
      43           0 :     return static_cast<PBackgroundIDBFactoryChild*>(IProtocol::Manager());
      44             : }
      45             : 
      46           0 : auto PBackgroundIDBFactoryRequestChild::SendPermissionRetry() -> bool
      47             : {
      48           0 :     IPC::Message* msg__ = PBackgroundIDBFactoryRequest::Msg_PermissionRetry(Id());
      49             : 
      50             : 
      51             : 
      52             : 
      53             : 
      54           0 :     if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryRequestChild")) {
      55           0 :         mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryRequestChild", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      56             :     }
      57           0 :     AUTO_PROFILER_LABEL("PBackgroundIDBFactoryRequest::Msg_PermissionRetry", OTHER);
      58           0 :     PBackgroundIDBFactoryRequest::Transition(PBackgroundIDBFactoryRequest::Msg_PermissionRetry__ID, (&(mState)));
      59             : 
      60           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      61           0 :     return sendok__;
      62             : }
      63             : 
      64           0 : auto PBackgroundIDBFactoryRequestChild::RemoveManagee(
      65             :         int32_t aProtocolId,
      66             :         ProtocolBase* aListener) -> void
      67             : {
      68           0 :     FatalError("unreached");
      69           0 :     return;
      70             : }
      71             : 
      72           0 : auto PBackgroundIDBFactoryRequestChild::OnMessageReceived(const Message& msg__) -> PBackgroundIDBFactoryRequestChild::Result
      73             : {
      74           0 :     switch ((msg__).type()) {
      75             :     case PBackgroundIDBFactoryRequest::Msg___delete____ID:
      76             :         {
      77           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryRequestChild")) {
      78           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
      79             :             }
      80           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactoryRequest::Msg___delete__", OTHER);
      81             : 
      82           0 :             PickleIterator iter__(msg__);
      83             :             PBackgroundIDBFactoryRequestChild* actor;
      84           0 :             FactoryRequestResponse response;
      85             : 
      86           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
      87           0 :                 FatalError("Error deserializing 'PBackgroundIDBFactoryRequestChild'");
      88           0 :                 return MsgValueError;
      89             :             }
      90             :             // Sentinel = 'actor'
      91           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
      92           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PBackgroundIDBFactoryRequestChild'");
      93           0 :                 return MsgValueError;
      94             :             }
      95           0 :             if ((!(Read((&(response)), (&(msg__)), (&(iter__)))))) {
      96           0 :                 FatalError("Error deserializing 'FactoryRequestResponse'");
      97           0 :                 return MsgValueError;
      98             :             }
      99             :             // Sentinel = 'response'
     100           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2396115421)))) {
     101           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'FactoryRequestResponse'");
     102           0 :                 return MsgValueError;
     103             :             }
     104           0 :             (msg__).EndRead(iter__, (msg__).type());
     105           0 :             PBackgroundIDBFactoryRequest::Transition(PBackgroundIDBFactoryRequest::Msg___delete____ID, (&(mState)));
     106           0 :             if ((!(Recv__delete__(mozilla::Move(response))))) {
     107           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     108             :                 // Error handled in mozilla::ipc::IPCResult
     109           0 :                 return MsgProcessingError;
     110             :             }
     111             : 
     112             : 
     113           0 :             IProtocol* mgr = (actor)->Manager();
     114           0 :             (actor)->DestroySubtree(Deletion);
     115           0 :             (actor)->DeallocSubtree();
     116           0 :             (mgr)->RemoveManagee(PBackgroundIDBFactoryRequestMsgStart, actor);
     117             : 
     118           0 :             return MsgProcessed;
     119             :         }
     120             :     case PBackgroundIDBFactoryRequest::Msg_PermissionChallenge__ID:
     121             :         {
     122           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryRequestChild")) {
     123           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     124             :             }
     125           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactoryRequest::Msg_PermissionChallenge", OTHER);
     126             : 
     127           0 :             PickleIterator iter__(msg__);
     128           0 :             PrincipalInfo principalInfo;
     129             : 
     130           0 :             if ((!(Read((&(principalInfo)), (&(msg__)), (&(iter__)))))) {
     131           0 :                 FatalError("Error deserializing 'PrincipalInfo'");
     132           0 :                 return MsgValueError;
     133             :             }
     134             :             // Sentinel = 'principalInfo'
     135           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3386633731)))) {
     136           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo'");
     137           0 :                 return MsgValueError;
     138             :             }
     139           0 :             (msg__).EndRead(iter__, (msg__).type());
     140           0 :             PBackgroundIDBFactoryRequest::Transition(PBackgroundIDBFactoryRequest::Msg_PermissionChallenge__ID, (&(mState)));
     141           0 :             if ((!(RecvPermissionChallenge(mozilla::Move(principalInfo))))) {
     142           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     143             :                 // Error handled in mozilla::ipc::IPCResult
     144           0 :                 return MsgProcessingError;
     145             :             }
     146             : 
     147           0 :             return MsgProcessed;
     148             :         }
     149             :     case PBackgroundIDBFactoryRequest::Msg_Blocked__ID:
     150             :         {
     151           0 :             if (mozilla::ipc::LoggingEnabledFor("PBackgroundIDBFactoryRequestChild")) {
     152           0 :                 mozilla::ipc::LogMessageForProtocol("PBackgroundIDBFactoryRequestChild", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     153             :             }
     154           0 :             AUTO_PROFILER_LABEL("PBackgroundIDBFactoryRequest::Msg_Blocked", OTHER);
     155             : 
     156           0 :             PickleIterator iter__(msg__);
     157             :             uint64_t currentVersion;
     158             : 
     159           0 :             if ((!(Read((&(currentVersion)), (&(msg__)), (&(iter__)))))) {
     160           0 :                 FatalError("Error deserializing 'uint64_t'");
     161           0 :                 return MsgValueError;
     162             :             }
     163             :             // Sentinel = 'currentVersion'
     164           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1138986547)))) {
     165           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
     166           0 :                 return MsgValueError;
     167             :             }
     168           0 :             (msg__).EndRead(iter__, (msg__).type());
     169           0 :             PBackgroundIDBFactoryRequest::Transition(PBackgroundIDBFactoryRequest::Msg_Blocked__ID, (&(mState)));
     170           0 :             if ((!(RecvBlocked(mozilla::Move(currentVersion))))) {
     171           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     172             :                 // Error handled in mozilla::ipc::IPCResult
     173           0 :                 return MsgProcessingError;
     174             :             }
     175             : 
     176           0 :             return MsgProcessed;
     177             :         }
     178             :     default:
     179             :         {
     180           0 :             return MsgNotKnown;
     181             :         }
     182             :     }
     183             : }
     184             : 
     185           0 : auto PBackgroundIDBFactoryRequestChild::OnMessageReceived(
     186             :         const Message& msg__,
     187             :         Message*& reply__) -> PBackgroundIDBFactoryRequestChild::Result
     188             : {
     189           0 :     return MsgNotKnown;
     190             : }
     191             : 
     192           0 : auto PBackgroundIDBFactoryRequestChild::OnCallReceived(
     193             :         const Message& msg__,
     194             :         Message*& reply__) -> PBackgroundIDBFactoryRequestChild::Result
     195             : {
     196           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     197             :     return MsgNotKnown;
     198             : }
     199             : 
     200           0 : auto PBackgroundIDBFactoryRequestChild::GetProtocolTypeId() -> int32_t
     201             : {
     202           0 :     return PBackgroundIDBFactoryRequestMsgStart;
     203             : }
     204             : 
     205           0 : auto PBackgroundIDBFactoryRequestChild::ProtocolName() const -> const char*
     206             : {
     207           0 :     return "PBackgroundIDBFactoryRequestChild";
     208             : }
     209             : 
     210           0 : auto PBackgroundIDBFactoryRequestChild::DestroySubtree(ActorDestroyReason why) -> void
     211             : {
     212             :     // Unregister from our manager.
     213           0 :     Unregister(Id());
     214             : 
     215             :     // Reject owning pending promises.
     216           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     217             : 
     218             :     // Finally, destroy "us".
     219           0 :     ActorDestroy(why);
     220           0 : }
     221             : 
     222           0 : auto PBackgroundIDBFactoryRequestChild::DeallocSubtree() -> void
     223             : {
     224           0 : }
     225             : 
     226           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     227             :         const SystemPrincipalInfo& v__,
     228             :         Message* msg__) -> void
     229             : {
     230           0 : }
     231             : 
     232           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     233             :         SystemPrincipalInfo* v__,
     234             :         const Message* msg__,
     235             :         PickleIterator* iter__) -> bool
     236             : {
     237           0 :     return true;
     238             : }
     239             : 
     240           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     241             :         const nsTArray<PrincipalInfo>& v__,
     242             :         Message* msg__) -> void
     243             : {
     244           0 :     uint32_t length = (v__).Length();
     245           0 :     Write(length, msg__);
     246             :     // Sentinel = ('length', 'PrincipalInfo[]')
     247           0 :     (msg__)->WriteSentinel(1032188126);
     248             : 
     249           0 :     for (auto& elem : v__) {
     250           0 :         Write(elem, msg__);
     251             :         // Sentinel = 'PrincipalInfo[]'
     252           0 :         (msg__)->WriteSentinel(413380193);
     253             :     }
     254           0 : }
     255             : 
     256           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     257             :         nsTArray<PrincipalInfo>* v__,
     258             :         const Message* msg__,
     259             :         PickleIterator* iter__) -> bool
     260             : {
     261           0 :     nsTArray<PrincipalInfo> fa;
     262             :     uint32_t length;
     263           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     264           0 :         mozilla::ipc::ArrayLengthReadError("PrincipalInfo[]");
     265           0 :         return false;
     266             :     }
     267             :     // Sentinel = ('length', 'PrincipalInfo[]')
     268           0 :     if ((!((msg__)->ReadSentinel(iter__, 1032188126)))) {
     269           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo[]");
     270           0 :         return false;
     271             :     }
     272             : 
     273           0 :     PrincipalInfo* elems = (fa).AppendElements(length);
     274           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     275           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     276           0 :             FatalError("Error deserializing 'PrincipalInfo[i]'");
     277           0 :             return false;
     278             :         }
     279             :         // Sentinel = 'PrincipalInfo[]'
     280           0 :         if ((!((msg__)->ReadSentinel(iter__, 413380193)))) {
     281           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'PrincipalInfo[i]'");
     282           0 :             return false;
     283             :         }
     284             :     }
     285           0 :     (v__)->SwapElements(fa);
     286           0 :     return true;
     287             : }
     288             : 
     289           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     290             :         const PBackgroundIDBFactoryRequestChild* v__,
     291             :         Message* msg__,
     292             :         bool nullable__) -> void
     293             : {
     294             :     int32_t id;
     295           0 :     if ((!(v__))) {
     296           0 :         if ((!(nullable__))) {
     297           0 :             FatalError("NULL actor value passed to non-nullable param");
     298             :         }
     299           0 :         id = 0;
     300             :     }
     301             :     else {
     302           0 :         id = (v__)->Id();
     303           0 :         if ((1) == (id)) {
     304           0 :             FatalError("actor has been |delete|d");
     305             :         }
     306             :     }
     307             : 
     308           0 :     Write(id, msg__);
     309           0 : }
     310             : 
     311           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     312             :         PBackgroundIDBFactoryRequestChild** v__,
     313             :         const Message* msg__,
     314             :         PickleIterator* iter__,
     315             :         bool nullable__) -> bool
     316             : {
     317           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBFactoryRequest", PBackgroundIDBFactoryRequestMsgStart);
     318           0 :     if ((actor).isNothing()) {
     319           0 :         return false;
     320             :     }
     321             : 
     322           0 :     (*(v__)) = static_cast<PBackgroundIDBFactoryRequestChild*>((actor).value());
     323           0 :     return true;
     324             : }
     325             : 
     326           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     327             :         const ExpandedPrincipalInfo& v__,
     328             :         Message* msg__) -> void
     329             : {
     330           0 :     Write((v__).attrs(), msg__);
     331             :     // Sentinel = 'attrs'
     332           0 :     (msg__)->WriteSentinel(3014987797);
     333           0 :     Write((v__).whitelist(), msg__);
     334             :     // Sentinel = 'whitelist'
     335           0 :     (msg__)->WriteSentinel(3731637258);
     336           0 : }
     337             : 
     338           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     339             :         ExpandedPrincipalInfo* v__,
     340             :         const Message* msg__,
     341             :         PickleIterator* iter__) -> bool
     342             : {
     343           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     344           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     345           0 :         return false;
     346             :     }
     347             :     // Sentinel = 'attrs'
     348           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     349           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ExpandedPrincipalInfo'");
     350           0 :         return false;
     351             :     }
     352           0 :     if ((!(Read((&((v__)->whitelist())), msg__, iter__)))) {
     353           0 :         FatalError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     354           0 :         return false;
     355             :     }
     356             :     // Sentinel = 'whitelist'
     357           0 :     if ((!((msg__)->ReadSentinel(iter__, 3731637258)))) {
     358           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'whitelist' (PrincipalInfo[]) member of 'ExpandedPrincipalInfo'");
     359           0 :         return false;
     360             :     }
     361           0 :     return true;
     362             : }
     363             : 
     364           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     365             :         const OpenDatabaseRequestResponse& v__,
     366             :         Message* msg__) -> void
     367             : {
     368             :     // skipping actor field that's meaningless on this side
     369           0 :     Write((v__).databaseChild(), msg__, false);
     370             :     // Sentinel = 'database'
     371           0 :     (msg__)->WriteSentinel(2578429415);
     372           0 : }
     373             : 
     374           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     375             :         OpenDatabaseRequestResponse* v__,
     376             :         const Message* msg__,
     377             :         PickleIterator* iter__) -> bool
     378             : {
     379             :     // skipping actor field that's meaningless on this side
     380           0 :     if ((!(Read((&((v__)->databaseChild())), msg__, iter__, false)))) {
     381           0 :         FatalError("Error deserializing 'databaseChild' (PBackgroundIDBDatabase) member of 'OpenDatabaseRequestResponse'");
     382           0 :         return false;
     383             :     }
     384             :     // Sentinel = 'database'
     385           0 :     if ((!((msg__)->ReadSentinel(iter__, 2578429415)))) {
     386           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'databaseChild' (PBackgroundIDBDatabase) member of 'OpenDatabaseRequestResponse'");
     387           0 :         return false;
     388             :     }
     389           0 :     return true;
     390             : }
     391             : 
     392           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     393             :         const FactoryRequestResponse& v__,
     394             :         Message* msg__) -> void
     395             : {
     396             :     typedef FactoryRequestResponse type__;
     397           0 :     Write(int((v__).type()), msg__);
     398             :     // Sentinel = 'FactoryRequestResponse'
     399           0 :     (msg__)->WriteSentinel(733486454);
     400             : 
     401           0 :     switch ((v__).type()) {
     402             :     case type__::Tnsresult:
     403             :         {
     404           0 :             Write((v__).get_nsresult(), msg__);
     405             :             // Sentinel = 'Tnsresult'
     406           0 :             (msg__)->WriteSentinel(2293764539);
     407           0 :             return;
     408             :         }
     409             :     case type__::TOpenDatabaseRequestResponse:
     410             :         {
     411           0 :             Write((v__).get_OpenDatabaseRequestResponse(), msg__);
     412             :             // Sentinel = 'TOpenDatabaseRequestResponse'
     413           0 :             (msg__)->WriteSentinel(3653071567);
     414           0 :             return;
     415             :         }
     416             :     case type__::TDeleteDatabaseRequestResponse:
     417             :         {
     418           0 :             Write((v__).get_DeleteDatabaseRequestResponse(), msg__);
     419             :             // Sentinel = 'TDeleteDatabaseRequestResponse'
     420           0 :             (msg__)->WriteSentinel(2445651930);
     421           0 :             return;
     422             :         }
     423             :     default:
     424             :         {
     425           0 :             FatalError("unknown union type");
     426           0 :             return;
     427             :         }
     428             :     }
     429             : }
     430             : 
     431           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     432             :         FactoryRequestResponse* v__,
     433             :         const Message* msg__,
     434             :         PickleIterator* iter__) -> bool
     435             : {
     436             :     typedef FactoryRequestResponse type__;
     437             :     int type;
     438           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     439           0 :         mozilla::ipc::UnionTypeReadError("FactoryRequestResponse");
     440           0 :         return false;
     441             :     }
     442             :     // Sentinel = 'FactoryRequestResponse'
     443           0 :     if ((!((msg__)->ReadSentinel(iter__, 733486454)))) {
     444           0 :         mozilla::ipc::SentinelReadError("FactoryRequestResponse");
     445           0 :         return false;
     446             :     }
     447             : 
     448           0 :     switch (type) {
     449             :     case type__::Tnsresult:
     450             :         {
     451           0 :             nsresult tmp = nsresult();
     452           0 :             (*(v__)) = tmp;
     453           0 :             if ((!(Read((&((v__)->get_nsresult())), msg__, iter__)))) {
     454           0 :                 FatalError("Error deserializing Union type");
     455           0 :                 return false;
     456             :             }
     457             :             // Sentinel = 'Tnsresult'
     458           0 :             if ((!((msg__)->ReadSentinel(iter__, 2293764539)))) {
     459           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     460           0 :                 return false;
     461             :             }
     462           0 :             return true;
     463             :         }
     464             :     case type__::TOpenDatabaseRequestResponse:
     465             :         {
     466           0 :             OpenDatabaseRequestResponse tmp = OpenDatabaseRequestResponse();
     467           0 :             (*(v__)) = tmp;
     468           0 :             if ((!(Read((&((v__)->get_OpenDatabaseRequestResponse())), msg__, iter__)))) {
     469           0 :                 FatalError("Error deserializing Union type");
     470           0 :                 return false;
     471             :             }
     472             :             // Sentinel = 'TOpenDatabaseRequestResponse'
     473           0 :             if ((!((msg__)->ReadSentinel(iter__, 3653071567)))) {
     474           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     475           0 :                 return false;
     476             :             }
     477           0 :             return true;
     478             :         }
     479             :     case type__::TDeleteDatabaseRequestResponse:
     480             :         {
     481           0 :             DeleteDatabaseRequestResponse tmp = DeleteDatabaseRequestResponse();
     482           0 :             (*(v__)) = tmp;
     483           0 :             if ((!(Read((&((v__)->get_DeleteDatabaseRequestResponse())), msg__, iter__)))) {
     484           0 :                 FatalError("Error deserializing Union type");
     485           0 :                 return false;
     486             :             }
     487             :             // Sentinel = 'TDeleteDatabaseRequestResponse'
     488           0 :             if ((!((msg__)->ReadSentinel(iter__, 2445651930)))) {
     489           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     490           0 :                 return false;
     491             :             }
     492           0 :             return true;
     493             :         }
     494             :     default:
     495             :         {
     496           0 :             FatalError("unknown union type");
     497           0 :             return false;
     498             :         }
     499             :     }
     500             : }
     501             : 
     502           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     503             :         const PrincipalInfo& v__,
     504             :         Message* msg__) -> void
     505             : {
     506             :     typedef PrincipalInfo type__;
     507           0 :     Write(int((v__).type()), msg__);
     508             :     // Sentinel = 'PrincipalInfo'
     509           0 :     (msg__)->WriteSentinel(4194518819);
     510             : 
     511           0 :     switch ((v__).type()) {
     512             :     case type__::TContentPrincipalInfo:
     513             :         {
     514           0 :             Write((v__).get_ContentPrincipalInfo(), msg__);
     515             :             // Sentinel = 'TContentPrincipalInfo'
     516           0 :             (msg__)->WriteSentinel(3677342258);
     517           0 :             return;
     518             :         }
     519             :     case type__::TSystemPrincipalInfo:
     520             :         {
     521           0 :             Write((v__).get_SystemPrincipalInfo(), msg__);
     522             :             // Sentinel = 'TSystemPrincipalInfo'
     523           0 :             (msg__)->WriteSentinel(3590603679);
     524           0 :             return;
     525             :         }
     526             :     case type__::TNullPrincipalInfo:
     527             :         {
     528           0 :             Write((v__).get_NullPrincipalInfo(), msg__);
     529             :             // Sentinel = 'TNullPrincipalInfo'
     530           0 :             (msg__)->WriteSentinel(3477774965);
     531           0 :             return;
     532             :         }
     533             :     case type__::TExpandedPrincipalInfo:
     534             :         {
     535           0 :             Write((v__).get_ExpandedPrincipalInfo(), msg__);
     536             :             // Sentinel = 'TExpandedPrincipalInfo'
     537           0 :             (msg__)->WriteSentinel(589324917);
     538           0 :             return;
     539             :         }
     540             :     default:
     541             :         {
     542           0 :             FatalError("unknown union type");
     543           0 :             return;
     544             :         }
     545             :     }
     546             : }
     547             : 
     548           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     549             :         PrincipalInfo* v__,
     550             :         const Message* msg__,
     551             :         PickleIterator* iter__) -> bool
     552             : {
     553             :     typedef PrincipalInfo type__;
     554             :     int type;
     555           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     556           0 :         mozilla::ipc::UnionTypeReadError("PrincipalInfo");
     557           0 :         return false;
     558             :     }
     559             :     // Sentinel = 'PrincipalInfo'
     560           0 :     if ((!((msg__)->ReadSentinel(iter__, 4194518819)))) {
     561           0 :         mozilla::ipc::SentinelReadError("PrincipalInfo");
     562           0 :         return false;
     563             :     }
     564             : 
     565           0 :     switch (type) {
     566             :     case type__::TContentPrincipalInfo:
     567             :         {
     568           0 :             ContentPrincipalInfo tmp = ContentPrincipalInfo();
     569           0 :             (*(v__)) = tmp;
     570           0 :             if ((!(Read((&((v__)->get_ContentPrincipalInfo())), msg__, iter__)))) {
     571           0 :                 FatalError("Error deserializing Union type");
     572           0 :                 return false;
     573             :             }
     574             :             // Sentinel = 'TContentPrincipalInfo'
     575           0 :             if ((!((msg__)->ReadSentinel(iter__, 3677342258)))) {
     576           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     577           0 :                 return false;
     578             :             }
     579           0 :             return true;
     580             :         }
     581             :     case type__::TSystemPrincipalInfo:
     582             :         {
     583           0 :             SystemPrincipalInfo tmp = SystemPrincipalInfo();
     584           0 :             (*(v__)) = tmp;
     585           0 :             if ((!(Read((&((v__)->get_SystemPrincipalInfo())), msg__, iter__)))) {
     586           0 :                 FatalError("Error deserializing Union type");
     587           0 :                 return false;
     588             :             }
     589             :             // Sentinel = 'TSystemPrincipalInfo'
     590           0 :             if ((!((msg__)->ReadSentinel(iter__, 3590603679)))) {
     591           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     592           0 :                 return false;
     593             :             }
     594           0 :             return true;
     595             :         }
     596             :     case type__::TNullPrincipalInfo:
     597             :         {
     598           0 :             NullPrincipalInfo tmp = NullPrincipalInfo();
     599           0 :             (*(v__)) = tmp;
     600           0 :             if ((!(Read((&((v__)->get_NullPrincipalInfo())), msg__, iter__)))) {
     601           0 :                 FatalError("Error deserializing Union type");
     602           0 :                 return false;
     603             :             }
     604             :             // Sentinel = 'TNullPrincipalInfo'
     605           0 :             if ((!((msg__)->ReadSentinel(iter__, 3477774965)))) {
     606           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     607           0 :                 return false;
     608             :             }
     609           0 :             return true;
     610             :         }
     611             :     case type__::TExpandedPrincipalInfo:
     612             :         {
     613           0 :             ExpandedPrincipalInfo tmp = ExpandedPrincipalInfo();
     614           0 :             (*(v__)) = tmp;
     615           0 :             if ((!(Read((&((v__)->get_ExpandedPrincipalInfo())), msg__, iter__)))) {
     616           0 :                 FatalError("Error deserializing Union type");
     617           0 :                 return false;
     618             :             }
     619             :             // Sentinel = 'TExpandedPrincipalInfo'
     620           0 :             if ((!((msg__)->ReadSentinel(iter__, 589324917)))) {
     621           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     622           0 :                 return false;
     623             :             }
     624           0 :             return true;
     625             :         }
     626             :     default:
     627             :         {
     628           0 :             FatalError("unknown union type");
     629           0 :             return false;
     630             :         }
     631             :     }
     632             : }
     633             : 
     634           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     635             :         const ContentPrincipalInfoOriginNoSuffix& v__,
     636             :         Message* msg__) -> void
     637             : {
     638             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     639           0 :     Write(int((v__).type()), msg__);
     640             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     641           0 :     (msg__)->WriteSentinel(2442066713);
     642             : 
     643           0 :     switch ((v__).type()) {
     644             :     case type__::TnsCString:
     645             :         {
     646           0 :             Write((v__).get_nsCString(), msg__);
     647             :             // Sentinel = 'TnsCString'
     648           0 :             (msg__)->WriteSentinel(2427411293);
     649           0 :             return;
     650             :         }
     651             :     case type__::Tvoid_t:
     652             :         {
     653           0 :             Write((v__).get_void_t(), msg__);
     654             :             // Sentinel = 'Tvoid_t'
     655           0 :             (msg__)->WriteSentinel(3041273328);
     656           0 :             return;
     657             :         }
     658             :     default:
     659             :         {
     660           0 :             FatalError("unknown union type");
     661           0 :             return;
     662             :         }
     663             :     }
     664             : }
     665             : 
     666           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     667             :         ContentPrincipalInfoOriginNoSuffix* v__,
     668             :         const Message* msg__,
     669             :         PickleIterator* iter__) -> bool
     670             : {
     671             :     typedef ContentPrincipalInfoOriginNoSuffix type__;
     672             :     int type;
     673           0 :     if ((!(Read((&(type)), msg__, iter__)))) {
     674           0 :         mozilla::ipc::UnionTypeReadError("ContentPrincipalInfoOriginNoSuffix");
     675           0 :         return false;
     676             :     }
     677             :     // Sentinel = 'ContentPrincipalInfoOriginNoSuffix'
     678           0 :     if ((!((msg__)->ReadSentinel(iter__, 2442066713)))) {
     679           0 :         mozilla::ipc::SentinelReadError("ContentPrincipalInfoOriginNoSuffix");
     680           0 :         return false;
     681             :     }
     682             : 
     683           0 :     switch (type) {
     684             :     case type__::TnsCString:
     685             :         {
     686           0 :             nsCString tmp = nsCString();
     687           0 :             (*(v__)) = tmp;
     688           0 :             if ((!(Read((&((v__)->get_nsCString())), msg__, iter__)))) {
     689           0 :                 FatalError("Error deserializing Union type");
     690           0 :                 return false;
     691             :             }
     692             :             // Sentinel = 'TnsCString'
     693           0 :             if ((!((msg__)->ReadSentinel(iter__, 2427411293)))) {
     694           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     695           0 :                 return false;
     696             :             }
     697           0 :             return true;
     698             :         }
     699             :     case type__::Tvoid_t:
     700             :         {
     701             :             void_t tmp = void_t();
     702           0 :             (*(v__)) = tmp;
     703           0 :             if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
     704           0 :                 FatalError("Error deserializing Union type");
     705           0 :                 return false;
     706             :             }
     707             :             // Sentinel = 'Tvoid_t'
     708           0 :             if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
     709           0 :                 mozilla::ipc::SentinelReadError("Error deserializing Union type");
     710           0 :                 return false;
     711             :             }
     712           0 :             return true;
     713             :         }
     714             :     default:
     715             :         {
     716           0 :             FatalError("unknown union type");
     717           0 :             return false;
     718             :         }
     719             :     }
     720             : }
     721             : 
     722           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     723             :         const PBackgroundIDBDatabaseChild* v__,
     724             :         Message* msg__,
     725             :         bool nullable__) -> void
     726             : {
     727             :     int32_t id;
     728           0 :     if ((!(v__))) {
     729           0 :         if ((!(nullable__))) {
     730           0 :             FatalError("NULL actor value passed to non-nullable param");
     731             :         }
     732           0 :         id = 0;
     733             :     }
     734             :     else {
     735           0 :         id = (v__)->Id();
     736           0 :         if ((1) == (id)) {
     737           0 :             FatalError("actor has been |delete|d");
     738             :         }
     739             :     }
     740             : 
     741           0 :     Write(id, msg__);
     742           0 : }
     743             : 
     744           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     745             :         PBackgroundIDBDatabaseChild** v__,
     746             :         const Message* msg__,
     747             :         PickleIterator* iter__,
     748             :         bool nullable__) -> bool
     749             : {
     750           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PBackgroundIDBDatabase", PBackgroundIDBDatabaseMsgStart);
     751           0 :     if ((actor).isNothing()) {
     752           0 :         return false;
     753             :     }
     754             : 
     755           0 :     (*(v__)) = static_cast<PBackgroundIDBDatabaseChild*>((actor).value());
     756           0 :     return true;
     757             : }
     758             : 
     759           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     760             :         const ContentPrincipalInfo& v__,
     761             :         Message* msg__) -> void
     762             : {
     763           0 :     Write((v__).attrs(), msg__);
     764             :     // Sentinel = 'attrs'
     765           0 :     (msg__)->WriteSentinel(3014987797);
     766           0 :     Write((v__).originNoSuffix(), msg__);
     767             :     // Sentinel = 'originNoSuffix'
     768           0 :     (msg__)->WriteSentinel(2833071422);
     769           0 :     Write((v__).spec(), msg__);
     770             :     // Sentinel = 'spec'
     771           0 :     (msg__)->WriteSentinel(1630740541);
     772           0 : }
     773             : 
     774           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     775             :         ContentPrincipalInfo* v__,
     776             :         const Message* msg__,
     777             :         PickleIterator* iter__) -> bool
     778             : {
     779           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     780           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
     781           0 :         return false;
     782             :     }
     783             :     // Sentinel = 'attrs'
     784           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     785           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'ContentPrincipalInfo'");
     786           0 :         return false;
     787             :     }
     788           0 :     if ((!(Read((&((v__)->originNoSuffix())), msg__, iter__)))) {
     789           0 :         FatalError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
     790           0 :         return false;
     791             :     }
     792             :     // Sentinel = 'originNoSuffix'
     793           0 :     if ((!((msg__)->ReadSentinel(iter__, 2833071422)))) {
     794           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'originNoSuffix' (ContentPrincipalInfoOriginNoSuffix) member of 'ContentPrincipalInfo'");
     795           0 :         return false;
     796             :     }
     797           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
     798           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
     799           0 :         return false;
     800             :     }
     801             :     // Sentinel = 'spec'
     802           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
     803           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'ContentPrincipalInfo'");
     804           0 :         return false;
     805             :     }
     806           0 :     return true;
     807             : }
     808             : 
     809           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     810             :         const NullPrincipalInfo& v__,
     811             :         Message* msg__) -> void
     812             : {
     813           0 :     Write((v__).attrs(), msg__);
     814             :     // Sentinel = 'attrs'
     815           0 :     (msg__)->WriteSentinel(3014987797);
     816           0 :     Write((v__).spec(), msg__);
     817             :     // Sentinel = 'spec'
     818           0 :     (msg__)->WriteSentinel(1630740541);
     819           0 : }
     820             : 
     821           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     822             :         NullPrincipalInfo* v__,
     823             :         const Message* msg__,
     824             :         PickleIterator* iter__) -> bool
     825             : {
     826           0 :     if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
     827           0 :         FatalError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
     828           0 :         return false;
     829             :     }
     830             :     // Sentinel = 'attrs'
     831           0 :     if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
     832           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (OriginAttributes) member of 'NullPrincipalInfo'");
     833           0 :         return false;
     834             :     }
     835           0 :     if ((!(Read((&((v__)->spec())), msg__, iter__)))) {
     836           0 :         FatalError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
     837           0 :         return false;
     838             :     }
     839             :     // Sentinel = 'spec'
     840           0 :     if ((!((msg__)->ReadSentinel(iter__, 1630740541)))) {
     841           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'spec' (nsCString) member of 'NullPrincipalInfo'");
     842           0 :         return false;
     843             :     }
     844           0 :     return true;
     845             : }
     846             : 
     847           0 : auto PBackgroundIDBFactoryRequestChild::Write(
     848             :         const DeleteDatabaseRequestResponse& v__,
     849             :         Message* msg__) -> void
     850             : {
     851           0 :     Write((v__).previousVersion(), msg__);
     852             :     // Sentinel = 'previousVersion'
     853           0 :     (msg__)->WriteSentinel(135971026);
     854           0 : }
     855             : 
     856           0 : auto PBackgroundIDBFactoryRequestChild::Read(
     857             :         DeleteDatabaseRequestResponse* v__,
     858             :         const Message* msg__,
     859             :         PickleIterator* iter__) -> bool
     860             : {
     861           0 :     if ((!(Read((&((v__)->previousVersion())), msg__, iter__)))) {
     862           0 :         FatalError("Error deserializing 'previousVersion' (uint64_t) member of 'DeleteDatabaseRequestResponse'");
     863           0 :         return false;
     864             :     }
     865             :     // Sentinel = 'previousVersion'
     866           0 :     if ((!((msg__)->ReadSentinel(iter__, 135971026)))) {
     867           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'previousVersion' (uint64_t) member of 'DeleteDatabaseRequestResponse'");
     868           0 :         return false;
     869             :     }
     870           0 :     return true;
     871             : }
     872             : 
     873             : 
     874             : 
     875             : } // namespace indexedDB
     876             : } // namespace dom
     877             : } // namespace mozilla

Generated by: LCOV version 1.13