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

Generated by: LCOV version 1.13