LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PWebAuthnTransactionParent.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 254 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 28 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/PWebAuthnTransactionParent.h"
       8             : 
       9             : #include "mozilla/ipc/PBackgroundParent.h"
      10             : 
      11             : #include "nsIFile.h"
      12             : #include "GeckoProfiler.h"
      13             : 
      14             : namespace mozilla {
      15             : namespace dom {
      16             : 
      17             : 
      18           0 : auto PWebAuthnTransactionParent::Recv__delete__() -> mozilla::ipc::IPCResult
      19             : {
      20           0 :     return IPC_OK();
      21             : }
      22             : 
      23             : 
      24           0 : MOZ_IMPLICIT PWebAuthnTransactionParent::PWebAuthnTransactionParent() :
      25             :     mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
      26           0 :     mState(PWebAuthnTransaction::__Dead)
      27             : {
      28           0 :     MOZ_COUNT_CTOR(PWebAuthnTransactionParent);
      29           0 : }
      30             : 
      31           0 : PWebAuthnTransactionParent::~PWebAuthnTransactionParent()
      32             : {
      33           0 :     MOZ_COUNT_DTOR(PWebAuthnTransactionParent);
      34           0 : }
      35             : 
      36           0 : auto PWebAuthnTransactionParent::Manager() const -> PBackgroundParent*
      37             : {
      38           0 :     return static_cast<PBackgroundParent*>(IProtocol::Manager());
      39             : }
      40             : 
      41           0 : auto PWebAuthnTransactionParent::SendConfirmRegister(const nsTArray<uint8_t>& RegBuffer) -> bool
      42             : {
      43           0 :     IPC::Message* msg__ = PWebAuthnTransaction::Msg_ConfirmRegister(Id());
      44             : 
      45           0 :     Write(RegBuffer, msg__);
      46             :     // Sentinel = 'RegBuffer'
      47           0 :     (msg__)->WriteSentinel(743119669);
      48             : 
      49             : 
      50             : 
      51             : 
      52           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
      53           0 :         mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      54             :     }
      55           0 :     AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_ConfirmRegister", OTHER);
      56           0 :     PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_ConfirmRegister__ID, (&(mState)));
      57             : 
      58           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      59           0 :     return sendok__;
      60             : }
      61             : 
      62           0 : auto PWebAuthnTransactionParent::SendConfirmSign(
      63             :         const nsTArray<uint8_t>& CredentialID,
      64             :         const nsTArray<uint8_t>& ReplyBuffer) -> bool
      65             : {
      66           0 :     IPC::Message* msg__ = PWebAuthnTransaction::Msg_ConfirmSign(Id());
      67             : 
      68           0 :     Write(CredentialID, msg__);
      69             :     // Sentinel = 'CredentialID'
      70           0 :     (msg__)->WriteSentinel(3192805200);
      71           0 :     Write(ReplyBuffer, msg__);
      72             :     // Sentinel = 'ReplyBuffer'
      73           0 :     (msg__)->WriteSentinel(4173647233);
      74             : 
      75             : 
      76             : 
      77             : 
      78           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
      79           0 :         mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
      80             :     }
      81           0 :     AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_ConfirmSign", OTHER);
      82           0 :     PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_ConfirmSign__ID, (&(mState)));
      83             : 
      84           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
      85           0 :     return sendok__;
      86             : }
      87             : 
      88           0 : auto PWebAuthnTransactionParent::SendCancel(const nsresult& Error) -> bool
      89             : {
      90           0 :     IPC::Message* msg__ = PWebAuthnTransaction::Msg_Cancel(Id());
      91             : 
      92           0 :     Write(Error, msg__);
      93             :     // Sentinel = 'Error'
      94           0 :     (msg__)->WriteSentinel(1861840727);
      95             : 
      96             : 
      97             : 
      98             : 
      99           0 :     if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
     100           0 :         mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
     101             :     }
     102           0 :     AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_Cancel", OTHER);
     103           0 :     PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_Cancel__ID, (&(mState)));
     104             : 
     105           0 :     bool sendok__ = (GetIPCChannel())->Send(msg__);
     106           0 :     return sendok__;
     107             : }
     108             : 
     109           0 : auto PWebAuthnTransactionParent::RemoveManagee(
     110             :         int32_t aProtocolId,
     111             :         ProtocolBase* aListener) -> void
     112             : {
     113           0 :     FatalError("unreached");
     114           0 :     return;
     115             : }
     116             : 
     117           0 : auto PWebAuthnTransactionParent::OnMessageReceived(const Message& msg__) -> PWebAuthnTransactionParent::Result
     118             : {
     119           0 :     switch ((msg__).type()) {
     120             :     case PWebAuthnTransaction::Msg___delete____ID:
     121             :         {
     122           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
     123           0 :                 mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     124             :             }
     125           0 :             AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg___delete__", OTHER);
     126             : 
     127           0 :             PickleIterator iter__(msg__);
     128             :             PWebAuthnTransactionParent* actor;
     129             : 
     130           0 :             if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
     131           0 :                 FatalError("Error deserializing 'PWebAuthnTransactionParent'");
     132           0 :                 return MsgValueError;
     133             :             }
     134             :             // Sentinel = 'actor'
     135           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
     136           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'PWebAuthnTransactionParent'");
     137           0 :                 return MsgValueError;
     138             :             }
     139           0 :             (msg__).EndRead(iter__, (msg__).type());
     140           0 :             PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg___delete____ID, (&(mState)));
     141           0 :             if ((!(Recv__delete__()))) {
     142           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     143             :                 // Error handled in mozilla::ipc::IPCResult
     144           0 :                 return MsgProcessingError;
     145             :             }
     146             : 
     147             : 
     148           0 :             IProtocol* mgr = (actor)->Manager();
     149           0 :             (actor)->DestroySubtree(Deletion);
     150           0 :             (actor)->DeallocSubtree();
     151           0 :             (mgr)->RemoveManagee(PWebAuthnTransactionMsgStart, actor);
     152             : 
     153           0 :             return MsgProcessed;
     154             :         }
     155             :     case PWebAuthnTransaction::Msg_RequestRegister__ID:
     156             :         {
     157           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
     158           0 :                 mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     159             :             }
     160           0 :             AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_RequestRegister", OTHER);
     161             : 
     162           0 :             PickleIterator iter__(msg__);
     163           0 :             WebAuthnTransactionInfo aTransactionInfo;
     164             : 
     165           0 :             if ((!(Read((&(aTransactionInfo)), (&(msg__)), (&(iter__)))))) {
     166           0 :                 FatalError("Error deserializing 'WebAuthnTransactionInfo'");
     167           0 :                 return MsgValueError;
     168             :             }
     169             :             // Sentinel = 'aTransactionInfo'
     170           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1312922839)))) {
     171           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WebAuthnTransactionInfo'");
     172           0 :                 return MsgValueError;
     173             :             }
     174           0 :             (msg__).EndRead(iter__, (msg__).type());
     175           0 :             PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_RequestRegister__ID, (&(mState)));
     176           0 :             if ((!(RecvRequestRegister(mozilla::Move(aTransactionInfo))))) {
     177           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     178             :                 // Error handled in mozilla::ipc::IPCResult
     179           0 :                 return MsgProcessingError;
     180             :             }
     181             : 
     182           0 :             return MsgProcessed;
     183             :         }
     184             :     case PWebAuthnTransaction::Msg_RequestSign__ID:
     185             :         {
     186           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
     187           0 :                 mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     188             :             }
     189           0 :             AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_RequestSign", OTHER);
     190             : 
     191           0 :             PickleIterator iter__(msg__);
     192           0 :             WebAuthnTransactionInfo aTransactionInfo;
     193             : 
     194           0 :             if ((!(Read((&(aTransactionInfo)), (&(msg__)), (&(iter__)))))) {
     195           0 :                 FatalError("Error deserializing 'WebAuthnTransactionInfo'");
     196           0 :                 return MsgValueError;
     197             :             }
     198             :             // Sentinel = 'aTransactionInfo'
     199           0 :             if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1312922839)))) {
     200           0 :                 mozilla::ipc::SentinelReadError("Error deserializing 'WebAuthnTransactionInfo'");
     201           0 :                 return MsgValueError;
     202             :             }
     203           0 :             (msg__).EndRead(iter__, (msg__).type());
     204           0 :             PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_RequestSign__ID, (&(mState)));
     205           0 :             if ((!(RecvRequestSign(mozilla::Move(aTransactionInfo))))) {
     206           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     207             :                 // Error handled in mozilla::ipc::IPCResult
     208           0 :                 return MsgProcessingError;
     209             :             }
     210             : 
     211           0 :             return MsgProcessed;
     212             :         }
     213             :     case PWebAuthnTransaction::Msg_RequestCancel__ID:
     214             :         {
     215           0 :             if (mozilla::ipc::LoggingEnabledFor("PWebAuthnTransactionParent")) {
     216           0 :                 mozilla::ipc::LogMessageForProtocol("PWebAuthnTransactionParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
     217             :             }
     218           0 :             AUTO_PROFILER_LABEL("PWebAuthnTransaction::Msg_RequestCancel", OTHER);
     219             : 
     220           0 :             PWebAuthnTransaction::Transition(PWebAuthnTransaction::Msg_RequestCancel__ID, (&(mState)));
     221           0 :             if ((!(RecvRequestCancel()))) {
     222           0 :                 mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
     223             :                 // Error handled in mozilla::ipc::IPCResult
     224           0 :                 return MsgProcessingError;
     225             :             }
     226             : 
     227           0 :             return MsgProcessed;
     228             :         }
     229             :     default:
     230             :         {
     231           0 :             return MsgNotKnown;
     232             :         }
     233             :     }
     234             : }
     235             : 
     236           0 : auto PWebAuthnTransactionParent::OnMessageReceived(
     237             :         const Message& msg__,
     238             :         Message*& reply__) -> PWebAuthnTransactionParent::Result
     239             : {
     240           0 :     return MsgNotKnown;
     241             : }
     242             : 
     243           0 : auto PWebAuthnTransactionParent::OnCallReceived(
     244             :         const Message& msg__,
     245             :         Message*& reply__) -> PWebAuthnTransactionParent::Result
     246             : {
     247           0 :     MOZ_ASSERT_UNREACHABLE("message protocol not supported");
     248             :     return MsgNotKnown;
     249             : }
     250             : 
     251           0 : auto PWebAuthnTransactionParent::GetProtocolTypeId() -> int32_t
     252             : {
     253           0 :     return PWebAuthnTransactionMsgStart;
     254             : }
     255             : 
     256           0 : auto PWebAuthnTransactionParent::ProtocolName() const -> const char*
     257             : {
     258           0 :     return "PWebAuthnTransactionParent";
     259             : }
     260             : 
     261           0 : auto PWebAuthnTransactionParent::DestroySubtree(ActorDestroyReason why) -> void
     262             : {
     263             :     // Unregister from our manager.
     264           0 :     Unregister(Id());
     265             : 
     266             :     // Reject owning pending promises.
     267           0 :     (GetIPCChannel())->RejectPendingPromisesForActor(this);
     268             : 
     269             :     // Finally, destroy "us".
     270           0 :     ActorDestroy(why);
     271           0 : }
     272             : 
     273           0 : auto PWebAuthnTransactionParent::DeallocSubtree() -> void
     274             : {
     275           0 : }
     276             : 
     277           0 : auto PWebAuthnTransactionParent::Write(
     278             :         const nsTArray<WebAuthnExtension>& v__,
     279             :         Message* msg__) -> void
     280             : {
     281           0 :     uint32_t length = (v__).Length();
     282           0 :     Write(length, msg__);
     283             :     // Sentinel = ('length', 'WebAuthnExtension[]')
     284           0 :     (msg__)->WriteSentinel(1256764775);
     285             : 
     286           0 :     for (auto& elem : v__) {
     287           0 :         Write(elem, msg__);
     288             :         // Sentinel = 'WebAuthnExtension[]'
     289           0 :         (msg__)->WriteSentinel(2070367298);
     290             :     }
     291           0 : }
     292             : 
     293           0 : auto PWebAuthnTransactionParent::Read(
     294             :         nsTArray<WebAuthnExtension>* v__,
     295             :         const Message* msg__,
     296             :         PickleIterator* iter__) -> bool
     297             : {
     298           0 :     nsTArray<WebAuthnExtension> fa;
     299             :     uint32_t length;
     300           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     301           0 :         mozilla::ipc::ArrayLengthReadError("WebAuthnExtension[]");
     302           0 :         return false;
     303             :     }
     304             :     // Sentinel = ('length', 'WebAuthnExtension[]')
     305           0 :     if ((!((msg__)->ReadSentinel(iter__, 1256764775)))) {
     306           0 :         mozilla::ipc::SentinelReadError("WebAuthnExtension[]");
     307           0 :         return false;
     308             :     }
     309             : 
     310           0 :     WebAuthnExtension* elems = (fa).AppendElements(length);
     311           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     312           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     313           0 :             FatalError("Error deserializing 'WebAuthnExtension[i]'");
     314           0 :             return false;
     315             :         }
     316             :         // Sentinel = 'WebAuthnExtension[]'
     317           0 :         if ((!((msg__)->ReadSentinel(iter__, 2070367298)))) {
     318           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'WebAuthnExtension[i]'");
     319           0 :             return false;
     320             :         }
     321             :     }
     322           0 :     (v__)->SwapElements(fa);
     323           0 :     return true;
     324             : }
     325             : 
     326           0 : auto PWebAuthnTransactionParent::Write(
     327             :         const PWebAuthnTransactionParent* v__,
     328             :         Message* msg__,
     329             :         bool nullable__) -> void
     330             : {
     331             :     int32_t id;
     332           0 :     if ((!(v__))) {
     333           0 :         if ((!(nullable__))) {
     334           0 :             FatalError("NULL actor value passed to non-nullable param");
     335             :         }
     336           0 :         id = 0;
     337             :     }
     338             :     else {
     339           0 :         id = (v__)->Id();
     340           0 :         if ((1) == (id)) {
     341           0 :             FatalError("actor has been |delete|d");
     342             :         }
     343             :     }
     344             : 
     345           0 :     Write(id, msg__);
     346           0 : }
     347             : 
     348           0 : auto PWebAuthnTransactionParent::Read(
     349             :         PWebAuthnTransactionParent** v__,
     350             :         const Message* msg__,
     351             :         PickleIterator* iter__,
     352             :         bool nullable__) -> bool
     353             : {
     354           0 :     Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PWebAuthnTransaction", PWebAuthnTransactionMsgStart);
     355           0 :     if ((actor).isNothing()) {
     356           0 :         return false;
     357             :     }
     358             : 
     359           0 :     (*(v__)) = static_cast<PWebAuthnTransactionParent*>((actor).value());
     360           0 :     return true;
     361             : }
     362             : 
     363           0 : auto PWebAuthnTransactionParent::Write(
     364             :         const WebAuthnExtension& v__,
     365             :         Message* msg__) -> void
     366             : {
     367           0 : }
     368             : 
     369           0 : auto PWebAuthnTransactionParent::Read(
     370             :         WebAuthnExtension* v__,
     371             :         const Message* msg__,
     372             :         PickleIterator* iter__) -> bool
     373             : {
     374           0 :     return true;
     375             : }
     376             : 
     377           0 : auto PWebAuthnTransactionParent::Write(
     378             :         const WebAuthnScopedCredentialDescriptor& v__,
     379             :         Message* msg__) -> void
     380             : {
     381           0 :     Write((v__).id(), msg__);
     382             :     // Sentinel = 'id'
     383           0 :     (msg__)->WriteSentinel(2794505629);
     384           0 : }
     385             : 
     386           0 : auto PWebAuthnTransactionParent::Read(
     387             :         WebAuthnScopedCredentialDescriptor* v__,
     388             :         const Message* msg__,
     389             :         PickleIterator* iter__) -> bool
     390             : {
     391           0 :     if ((!(Read((&((v__)->id())), msg__, iter__)))) {
     392           0 :         FatalError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredentialDescriptor'");
     393           0 :         return false;
     394             :     }
     395             :     // Sentinel = 'id'
     396           0 :     if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
     397           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredentialDescriptor'");
     398           0 :         return false;
     399             :     }
     400           0 :     return true;
     401             : }
     402             : 
     403           0 : auto PWebAuthnTransactionParent::Write(
     404             :         const WebAuthnTransactionInfo& v__,
     405             :         Message* msg__) -> void
     406             : {
     407           0 :     Write((v__).RpIdHash(), msg__);
     408             :     // Sentinel = 'RpIdHash'
     409           0 :     (msg__)->WriteSentinel(4012137277);
     410           0 :     Write((v__).ClientDataHash(), msg__);
     411             :     // Sentinel = 'ClientDataHash'
     412           0 :     (msg__)->WriteSentinel(3505634403);
     413           0 :     Write((v__).TimeoutMS(), msg__);
     414             :     // Sentinel = 'TimeoutMS'
     415           0 :     (msg__)->WriteSentinel(2549274784);
     416           0 :     Write((v__).Descriptors(), msg__);
     417             :     // Sentinel = 'Descriptors'
     418           0 :     (msg__)->WriteSentinel(1247680297);
     419           0 :     Write((v__).Extensions(), msg__);
     420             :     // Sentinel = 'Extensions'
     421           0 :     (msg__)->WriteSentinel(77077076);
     422           0 : }
     423             : 
     424           0 : auto PWebAuthnTransactionParent::Read(
     425             :         WebAuthnTransactionInfo* v__,
     426             :         const Message* msg__,
     427             :         PickleIterator* iter__) -> bool
     428             : {
     429           0 :     if ((!(Read((&((v__)->RpIdHash())), msg__, iter__)))) {
     430           0 :         FatalError("Error deserializing 'RpIdHash' (uint8_t[]) member of 'WebAuthnTransactionInfo'");
     431           0 :         return false;
     432             :     }
     433             :     // Sentinel = 'RpIdHash'
     434           0 :     if ((!((msg__)->ReadSentinel(iter__, 4012137277)))) {
     435           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'RpIdHash' (uint8_t[]) member of 'WebAuthnTransactionInfo'");
     436           0 :         return false;
     437             :     }
     438           0 :     if ((!(Read((&((v__)->ClientDataHash())), msg__, iter__)))) {
     439           0 :         FatalError("Error deserializing 'ClientDataHash' (uint8_t[]) member of 'WebAuthnTransactionInfo'");
     440           0 :         return false;
     441             :     }
     442             :     // Sentinel = 'ClientDataHash'
     443           0 :     if ((!((msg__)->ReadSentinel(iter__, 3505634403)))) {
     444           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataHash' (uint8_t[]) member of 'WebAuthnTransactionInfo'");
     445           0 :         return false;
     446             :     }
     447           0 :     if ((!(Read((&((v__)->TimeoutMS())), msg__, iter__)))) {
     448           0 :         FatalError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnTransactionInfo'");
     449           0 :         return false;
     450             :     }
     451             :     // Sentinel = 'TimeoutMS'
     452           0 :     if ((!((msg__)->ReadSentinel(iter__, 2549274784)))) {
     453           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'TimeoutMS' (uint32_t) member of 'WebAuthnTransactionInfo'");
     454           0 :         return false;
     455             :     }
     456           0 :     if ((!(Read((&((v__)->Descriptors())), msg__, iter__)))) {
     457           0 :         FatalError("Error deserializing 'Descriptors' (WebAuthnScopedCredentialDescriptor[]) member of 'WebAuthnTransactionInfo'");
     458           0 :         return false;
     459             :     }
     460             :     // Sentinel = 'Descriptors'
     461           0 :     if ((!((msg__)->ReadSentinel(iter__, 1247680297)))) {
     462           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Descriptors' (WebAuthnScopedCredentialDescriptor[]) member of 'WebAuthnTransactionInfo'");
     463           0 :         return false;
     464             :     }
     465           0 :     if ((!(Read((&((v__)->Extensions())), msg__, iter__)))) {
     466           0 :         FatalError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnTransactionInfo'");
     467           0 :         return false;
     468             :     }
     469             :     // Sentinel = 'Extensions'
     470           0 :     if ((!((msg__)->ReadSentinel(iter__, 77077076)))) {
     471           0 :         mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnTransactionInfo'");
     472           0 :         return false;
     473             :     }
     474           0 :     return true;
     475             : }
     476             : 
     477           0 : auto PWebAuthnTransactionParent::Write(
     478             :         const nsTArray<WebAuthnScopedCredentialDescriptor>& v__,
     479             :         Message* msg__) -> void
     480             : {
     481           0 :     uint32_t length = (v__).Length();
     482           0 :     Write(length, msg__);
     483             :     // Sentinel = ('length', 'WebAuthnScopedCredentialDescriptor[]')
     484           0 :     (msg__)->WriteSentinel(2685010915);
     485             : 
     486           0 :     for (auto& elem : v__) {
     487           0 :         Write(elem, msg__);
     488             :         // Sentinel = 'WebAuthnScopedCredentialDescriptor[]'
     489           0 :         (msg__)->WriteSentinel(717542934);
     490             :     }
     491           0 : }
     492             : 
     493           0 : auto PWebAuthnTransactionParent::Read(
     494             :         nsTArray<WebAuthnScopedCredentialDescriptor>* v__,
     495             :         const Message* msg__,
     496             :         PickleIterator* iter__) -> bool
     497             : {
     498           0 :     nsTArray<WebAuthnScopedCredentialDescriptor> fa;
     499             :     uint32_t length;
     500           0 :     if ((!(Read((&(length)), msg__, iter__)))) {
     501           0 :         mozilla::ipc::ArrayLengthReadError("WebAuthnScopedCredentialDescriptor[]");
     502           0 :         return false;
     503             :     }
     504             :     // Sentinel = ('length', 'WebAuthnScopedCredentialDescriptor[]')
     505           0 :     if ((!((msg__)->ReadSentinel(iter__, 2685010915)))) {
     506           0 :         mozilla::ipc::SentinelReadError("WebAuthnScopedCredentialDescriptor[]");
     507           0 :         return false;
     508             :     }
     509             : 
     510           0 :     WebAuthnScopedCredentialDescriptor* elems = (fa).AppendElements(length);
     511           0 :     for (uint32_t i = 0; (i) < (length); (++(i))) {
     512           0 :         if ((!(Read((&(elems[i])), msg__, iter__)))) {
     513           0 :             FatalError("Error deserializing 'WebAuthnScopedCredentialDescriptor[i]'");
     514           0 :             return false;
     515             :         }
     516             :         // Sentinel = 'WebAuthnScopedCredentialDescriptor[]'
     517           0 :         if ((!((msg__)->ReadSentinel(iter__, 717542934)))) {
     518           0 :             mozilla::ipc::SentinelReadError("Error deserializing 'WebAuthnScopedCredentialDescriptor[i]'");
     519           0 :             return false;
     520             :         }
     521             :     }
     522           0 :     (v__)->SwapElements(fa);
     523           0 :     return true;
     524             : }
     525             : 
     526             : 
     527             : 
     528             : } // namespace dom
     529             : } // namespace mozilla

Generated by: LCOV version 1.13