Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/ipc/PBackgroundParent.h"
#include "mozilla/ipc/PBackgroundChild.h"
#include "mozilla/dom/PWebAuthnTransaction.h"
#include "mozilla/dom/PWebAuthnTransactionParent.h"
#include "mozilla/dom/PWebAuthnTransactionChild.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"
namespace mozilla {
namespace dom {
namespace PWebAuthnTransaction {
nsresult
CreateEndpoints(
base::ProcessId aParentDestPid,
base::ProcessId aChildDestPid,
mozilla::ipc::Endpoint<::mozilla::dom::PWebAuthnTransactionParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::dom::PWebAuthnTransactionChild>* aChild)
{
return mozilla::ipc::CreateEndpoints(
mozilla::ipc::PrivateIPDLInterface(),
aParentDestPid, aChildDestPid, aParent, aChild);
}
mozilla::UniquePtr<IPC::Message>
Msg_RequestRegister(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_RequestRegister__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_RequestSign(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_RequestSign__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_RequestIsUVPAA(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_RequestIsUVPAA__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Reply_RequestIsUVPAA(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Reply_RequestIsUVPAA__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_RequestCancel(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_RequestCancel__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_DestroyMe(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_DestroyMe__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg___delete__(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg___delete____ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Reply___delete__(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Reply___delete____ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_ConfirmRegister(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_ConfirmRegister__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_ConfirmSign(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_ConfirmSign__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
mozilla::UniquePtr<IPC::Message>
Msg_Abort(int32_t routingId)
{
return IPC::Message::IPDLMessage(routingId, Msg_Abort__ID, 0, IPC::Message::HeaderFlags(IPC::Message::NOT_NESTED, IPC::Message::NORMAL_PRIORITY, IPC::Message::COMPRESSION_NONE, IPC::Message::EAGER_SEND, IPC::Message::NOT_CONSTRUCTOR, IPC::Message::ASYNC, IPC::Message::NOT_REPLY));
}
} // namespace PWebAuthnTransaction
} // namespace dom
} // namespace mozilla
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnAuthenticatorSelection|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnAuthenticatorSelection>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).residentKey());
// Sentinel = 'residentKey'
(aWriter)->WriteSentinel(459932808);
IPC::WriteParam(aWriter, (aVar).userVerificationRequirement());
// Sentinel = 'userVerificationRequirement'
(aWriter)->WriteSentinel(2623474484);
IPC::WriteParam(aWriter, (aVar).authenticatorAttachment());
// Sentinel = 'authenticatorAttachment'
(aWriter)->WriteSentinel(1921649029);
}
auto ParamTraits<::mozilla::dom::WebAuthnAuthenticatorSelection>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___residentKey = IPC::ReadParam<::nsString>(aReader);
if (!maybe___residentKey) {
aReader->FatalError("Error deserializing 'residentKey' (nsString) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
auto& _residentKey = *maybe___residentKey;
// Sentinel = 'residentKey'
if ((!((aReader)->ReadSentinel(459932808)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'residentKey' (nsString) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
auto maybe___userVerificationRequirement = IPC::ReadParam<::nsString>(aReader);
if (!maybe___userVerificationRequirement) {
aReader->FatalError("Error deserializing 'userVerificationRequirement' (nsString) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
auto& _userVerificationRequirement = *maybe___userVerificationRequirement;
// Sentinel = 'userVerificationRequirement'
if ((!((aReader)->ReadSentinel(2623474484)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'userVerificationRequirement' (nsString) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
auto maybe___authenticatorAttachment = IPC::ReadParam<mozilla::Maybe<::nsString>>(aReader);
if (!maybe___authenticatorAttachment) {
aReader->FatalError("Error deserializing 'authenticatorAttachment' (nsString?) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
auto& _authenticatorAttachment = *maybe___authenticatorAttachment;
// Sentinel = 'authenticatorAttachment'
if ((!((aReader)->ReadSentinel(1921649029)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'authenticatorAttachment' (nsString?) member of 'WebAuthnAuthenticatorSelection'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_residentKey),
std::move(_userVerificationRequirement),
std::move(_authenticatorAttachment)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnScopedCredential|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnScopedCredential>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).id());
// Sentinel = 'id'
(aWriter)->WriteSentinel(20447438);
(aWriter)->WriteBytes((&((aVar).transports())), 1);
// Sentinel = 'transports'
(aWriter)->WriteSentinel(401409121);
}
auto ParamTraits<::mozilla::dom::WebAuthnScopedCredential>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___id = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___id) {
aReader->FatalError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredential'");
return {};
}
auto& _id = *maybe___id;
// Sentinel = 'id'
if ((!((aReader)->ReadSentinel(20447438)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'id' (uint8_t[]) member of 'WebAuthnScopedCredential'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_id),
::uint8_t{0}};
if ((!((aReader)->ReadBytesInto((&((result__)->transports())), 1)))) {
aReader->FatalError("Error bulk reading fields from uint8_t");
return {};
}
// Sentinel = 'transports'
if ((!((aReader)->ReadSentinel(401409121)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint8_t");
return {};
}
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionAppId|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionAppId>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).appIdentifier());
// Sentinel = 'appIdentifier'
(aWriter)->WriteSentinel(610665797);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionAppId>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___appIdentifier = IPC::ReadParam<::nsString>(aReader);
if (!maybe___appIdentifier) {
aReader->FatalError("Error deserializing 'appIdentifier' (nsString) member of 'WebAuthnExtensionAppId'");
return {};
}
auto& _appIdentifier = *maybe___appIdentifier;
// Sentinel = 'appIdentifier'
if ((!((aReader)->ReadSentinel(610665797)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'appIdentifier' (nsString) member of 'WebAuthnExtensionAppId'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_appIdentifier)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionCredProps|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionCredProps>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).credProps());
// Sentinel = 'credProps'
(aWriter)->WriteSentinel(304546739);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionCredProps>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___credProps = IPC::ReadParam<bool>(aReader);
if (!maybe___credProps) {
aReader->FatalError("Error deserializing 'credProps' (bool) member of 'WebAuthnExtensionCredProps'");
return {};
}
auto& _credProps = *maybe___credProps;
// Sentinel = 'credProps'
if ((!((aReader)->ReadSentinel(304546739)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'credProps' (bool) member of 'WebAuthnExtensionCredProps'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_credProps)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionHmacSecret|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionHmacSecret>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).hmacCreateSecret());
// Sentinel = 'hmacCreateSecret'
(aWriter)->WriteSentinel(890963540);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionHmacSecret>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___hmacCreateSecret = IPC::ReadParam<bool>(aReader);
if (!maybe___hmacCreateSecret) {
aReader->FatalError("Error deserializing 'hmacCreateSecret' (bool) member of 'WebAuthnExtensionHmacSecret'");
return {};
}
auto& _hmacCreateSecret = *maybe___hmacCreateSecret;
// Sentinel = 'hmacCreateSecret'
if ((!((aReader)->ReadSentinel(890963540)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'hmacCreateSecret' (bool) member of 'WebAuthnExtensionHmacSecret'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_hmacCreateSecret)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionMinPinLength|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionMinPinLength>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).minPinLength());
// Sentinel = 'minPinLength'
(aWriter)->WriteSentinel(521077966);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionMinPinLength>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___minPinLength = IPC::ReadParam<bool>(aReader);
if (!maybe___minPinLength) {
aReader->FatalError("Error deserializing 'minPinLength' (bool) member of 'WebAuthnExtensionMinPinLength'");
return {};
}
auto& _minPinLength = *maybe___minPinLength;
// Sentinel = 'minPinLength'
if ((!((aReader)->ReadSentinel(521077966)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'minPinLength' (bool) member of 'WebAuthnExtensionMinPinLength'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_minPinLength)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |union WebAuthnExtension|
//
namespace mozilla {
namespace dom {
auto WebAuthnExtension::MaybeDestroy() -> void
{
if ((mType) == (T__None)) {
return;
}
switch (mType) {
case TWebAuthnExtensionAppId:
{
(ptr_WebAuthnExtensionAppId())->~WebAuthnExtensionAppId__tdef();
break;
}
case TWebAuthnExtensionCredProps:
{
(ptr_WebAuthnExtensionCredProps())->~WebAuthnExtensionCredProps__tdef();
break;
}
case TWebAuthnExtensionHmacSecret:
{
(ptr_WebAuthnExtensionHmacSecret())->~WebAuthnExtensionHmacSecret__tdef();
break;
}
case TWebAuthnExtensionMinPinLength:
{
(ptr_WebAuthnExtensionMinPinLength())->~WebAuthnExtensionMinPinLength__tdef();
break;
}
default:
{
mozilla::ipc::LogicError("not reached");
break;
}
}
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtensionAppId& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(aOther);
mType = TWebAuthnExtensionAppId;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtensionAppId&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move(aOther));
mType = TWebAuthnExtensionAppId;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtensionCredProps& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(aOther);
mType = TWebAuthnExtensionCredProps;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtensionCredProps&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(std::move(aOther));
mType = TWebAuthnExtensionCredProps;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtensionHmacSecret& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(aOther);
mType = TWebAuthnExtensionHmacSecret;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtensionHmacSecret&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(std::move(aOther));
mType = TWebAuthnExtensionHmacSecret;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtensionMinPinLength& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(aOther);
mType = TWebAuthnExtensionMinPinLength;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtensionMinPinLength&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(std::move(aOther));
mType = TWebAuthnExtensionMinPinLength;
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(const WebAuthnExtension& aOther)
{
(aOther).AssertSanity();
switch ((aOther).type()) {
case TWebAuthnExtensionAppId:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId((aOther).get_WebAuthnExtensionAppId());
break;
}
case TWebAuthnExtensionCredProps:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps((aOther).get_WebAuthnExtensionCredProps());
break;
}
case TWebAuthnExtensionHmacSecret:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret((aOther).get_WebAuthnExtensionHmacSecret());
break;
}
case TWebAuthnExtensionMinPinLength:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength((aOther).get_WebAuthnExtensionMinPinLength());
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
mType = (aOther).type();
}
MOZ_IMPLICIT WebAuthnExtension::WebAuthnExtension(WebAuthnExtension&& aOther)
{
(aOther).AssertSanity();
Type t = (aOther).type();
switch (t) {
case TWebAuthnExtensionAppId:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move((aOther).get_WebAuthnExtensionAppId()));
(aOther).MaybeDestroy();
break;
}
case TWebAuthnExtensionCredProps:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(std::move((aOther).get_WebAuthnExtensionCredProps()));
(aOther).MaybeDestroy();
break;
}
case TWebAuthnExtensionHmacSecret:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(std::move((aOther).get_WebAuthnExtensionHmacSecret()));
(aOther).MaybeDestroy();
break;
}
case TWebAuthnExtensionMinPinLength:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(std::move((aOther).get_WebAuthnExtensionMinPinLength()));
(aOther).MaybeDestroy();
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
(aOther).mType = T__None;
mType = t;
}
WebAuthnExtension::~WebAuthnExtension()
{
MaybeDestroy();
}
auto WebAuthnExtension::operator=(const WebAuthnExtensionAppId& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(aRhs);
mType = TWebAuthnExtensionAppId;
return (*(this));
}
auto WebAuthnExtension::operator=(WebAuthnExtensionAppId&& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move(aRhs));
mType = TWebAuthnExtensionAppId;
return (*(this));
}
auto WebAuthnExtension::operator=(const WebAuthnExtensionCredProps& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(aRhs);
mType = TWebAuthnExtensionCredProps;
return (*(this));
}
auto WebAuthnExtension::operator=(WebAuthnExtensionCredProps&& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(std::move(aRhs));
mType = TWebAuthnExtensionCredProps;
return (*(this));
}
auto WebAuthnExtension::operator=(const WebAuthnExtensionHmacSecret& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(aRhs);
mType = TWebAuthnExtensionHmacSecret;
return (*(this));
}
auto WebAuthnExtension::operator=(WebAuthnExtensionHmacSecret&& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(std::move(aRhs));
mType = TWebAuthnExtensionHmacSecret;
return (*(this));
}
auto WebAuthnExtension::operator=(const WebAuthnExtensionMinPinLength& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(aRhs);
mType = TWebAuthnExtensionMinPinLength;
return (*(this));
}
auto WebAuthnExtension::operator=(WebAuthnExtensionMinPinLength&& aRhs) -> WebAuthnExtension&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(std::move(aRhs));
mType = TWebAuthnExtensionMinPinLength;
return (*(this));
}
auto WebAuthnExtension::operator=(const WebAuthnExtension& aRhs) -> WebAuthnExtension&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TWebAuthnExtensionAppId:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId((aRhs).get_WebAuthnExtensionAppId());
break;
}
case TWebAuthnExtensionCredProps:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps((aRhs).get_WebAuthnExtensionCredProps());
break;
}
case TWebAuthnExtensionHmacSecret:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret((aRhs).get_WebAuthnExtensionHmacSecret());
break;
}
case TWebAuthnExtensionMinPinLength:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength((aRhs).get_WebAuthnExtensionMinPinLength());
break;
}
case T__None:
{
MaybeDestroy();
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
mType = t;
return (*(this));
}
auto WebAuthnExtension::operator=(WebAuthnExtension&& aRhs) -> WebAuthnExtension&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TWebAuthnExtensionAppId:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionAppId()) WebAuthnExtensionAppId(std::move((aRhs).get_WebAuthnExtensionAppId()));
(aRhs).MaybeDestroy();
break;
}
case TWebAuthnExtensionCredProps:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionCredProps()) WebAuthnExtensionCredProps(std::move((aRhs).get_WebAuthnExtensionCredProps()));
(aRhs).MaybeDestroy();
break;
}
case TWebAuthnExtensionHmacSecret:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionHmacSecret()) WebAuthnExtensionHmacSecret(std::move((aRhs).get_WebAuthnExtensionHmacSecret()));
(aRhs).MaybeDestroy();
break;
}
case TWebAuthnExtensionMinPinLength:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionMinPinLength()) WebAuthnExtensionMinPinLength(std::move((aRhs).get_WebAuthnExtensionMinPinLength()));
(aRhs).MaybeDestroy();
break;
}
case T__None:
{
MaybeDestroy();
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
(aRhs).mType = T__None;
mType = t;
return (*(this));
}
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtension>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
typedef ::mozilla::dom::WebAuthnExtension union__;
int type = (aVar).type();
IPC::WriteParam(aWriter, type);
// Sentinel = 'WebAuthnExtension'
(aWriter)->WriteSentinel(1003030236);
switch (type) {
case union__::TWebAuthnExtensionAppId:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionAppId());
// Sentinel = 'TWebAuthnExtensionAppId'
(aWriter)->WriteSentinel(1793919230);
return;
}
case union__::TWebAuthnExtensionCredProps:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionCredProps());
// Sentinel = 'TWebAuthnExtensionCredProps'
(aWriter)->WriteSentinel(2472544962);
return;
}
case union__::TWebAuthnExtensionHmacSecret:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionHmacSecret());
// Sentinel = 'TWebAuthnExtensionHmacSecret'
(aWriter)->WriteSentinel(2650737423);
return;
}
case union__::TWebAuthnExtensionMinPinLength:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionMinPinLength());
// Sentinel = 'TWebAuthnExtensionMinPinLength'
(aWriter)->WriteSentinel(3044346845);
return;
}
default:
{
aWriter->FatalError("unknown variant of union WebAuthnExtension");
return;
}
}
}
auto ParamTraits<::mozilla::dom::WebAuthnExtension>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
typedef ::mozilla::dom::WebAuthnExtension union__;
auto maybe__type = IPC::ReadParam<int>(aReader);
if (!maybe__type) {
aReader->FatalError("Error deserializing type of union WebAuthnExtension");
return {};
}
auto& type = *maybe__type;
// Sentinel = 'WebAuthnExtension'
if ((!((aReader)->ReadSentinel(1003030236)))) {
mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnExtension");
return {};
}
switch (type) {
case union__::TWebAuthnExtensionAppId:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionAppId>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionAppId of union WebAuthnExtension");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionAppId'
if ((!((aReader)->ReadSentinel(1793919230)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionAppId of union WebAuthnExtension");
return {};
}
return std::move(tmp);
}
case union__::TWebAuthnExtensionCredProps:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionCredProps>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionCredProps of union WebAuthnExtension");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionCredProps'
if ((!((aReader)->ReadSentinel(2472544962)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionCredProps of union WebAuthnExtension");
return {};
}
return std::move(tmp);
}
case union__::TWebAuthnExtensionHmacSecret:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionHmacSecret>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionHmacSecret of union WebAuthnExtension");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionHmacSecret'
if ((!((aReader)->ReadSentinel(2650737423)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionHmacSecret of union WebAuthnExtension");
return {};
}
return std::move(tmp);
}
case union__::TWebAuthnExtensionMinPinLength:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionMinPinLength>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionMinPinLength of union WebAuthnExtension");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionMinPinLength'
if ((!((aReader)->ReadSentinel(3044346845)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionMinPinLength of union WebAuthnExtension");
return {};
}
return std::move(tmp);
}
default:
{
aReader->FatalError("unknown variant of union WebAuthnExtension");
return {};
}
}
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionResultAppId|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultAppId>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).AppId());
// Sentinel = 'AppId'
(aWriter)->WriteSentinel(89129423);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultAppId>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___AppId = IPC::ReadParam<bool>(aReader);
if (!maybe___AppId) {
aReader->FatalError("Error deserializing 'AppId' (bool) member of 'WebAuthnExtensionResultAppId'");
return {};
}
auto& _AppId = *maybe___AppId;
// Sentinel = 'AppId'
if ((!((aReader)->ReadSentinel(89129423)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AppId' (bool) member of 'WebAuthnExtensionResultAppId'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_AppId)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionResultCredProps|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultCredProps>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).rk());
// Sentinel = 'rk'
(aWriter)->WriteSentinel(22085854);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultCredProps>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___rk = IPC::ReadParam<bool>(aReader);
if (!maybe___rk) {
aReader->FatalError("Error deserializing 'rk' (bool) member of 'WebAuthnExtensionResultCredProps'");
return {};
}
auto& _rk = *maybe___rk;
// Sentinel = 'rk'
if ((!((aReader)->ReadSentinel(22085854)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'rk' (bool) member of 'WebAuthnExtensionResultCredProps'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_rk)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnExtensionResultHmacSecret|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultHmacSecret>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).hmacCreateSecret());
// Sentinel = 'hmacCreateSecret'
(aWriter)->WriteSentinel(890963540);
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResultHmacSecret>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___hmacCreateSecret = IPC::ReadParam<bool>(aReader);
if (!maybe___hmacCreateSecret) {
aReader->FatalError("Error deserializing 'hmacCreateSecret' (bool) member of 'WebAuthnExtensionResultHmacSecret'");
return {};
}
auto& _hmacCreateSecret = *maybe___hmacCreateSecret;
// Sentinel = 'hmacCreateSecret'
if ((!((aReader)->ReadSentinel(890963540)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'hmacCreateSecret' (bool) member of 'WebAuthnExtensionResultHmacSecret'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_hmacCreateSecret)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |union WebAuthnExtensionResult|
//
namespace mozilla {
namespace dom {
auto WebAuthnExtensionResult::MaybeDestroy() -> void
{
if ((mType) == (T__None)) {
return;
}
switch (mType) {
case TWebAuthnExtensionResultAppId:
{
(ptr_WebAuthnExtensionResultAppId())->~WebAuthnExtensionResultAppId__tdef();
break;
}
case TWebAuthnExtensionResultCredProps:
{
(ptr_WebAuthnExtensionResultCredProps())->~WebAuthnExtensionResultCredProps__tdef();
break;
}
case TWebAuthnExtensionResultHmacSecret:
{
(ptr_WebAuthnExtensionResultHmacSecret())->~WebAuthnExtensionResultHmacSecret__tdef();
break;
}
default:
{
mozilla::ipc::LogicError("not reached");
break;
}
}
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResultAppId& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(aOther);
mType = TWebAuthnExtensionResultAppId;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResultAppId&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move(aOther));
mType = TWebAuthnExtensionResultAppId;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResultCredProps& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(aOther);
mType = TWebAuthnExtensionResultCredProps;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResultCredProps&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(std::move(aOther));
mType = TWebAuthnExtensionResultCredProps;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResultHmacSecret& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(aOther);
mType = TWebAuthnExtensionResultHmacSecret;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResultHmacSecret&& aOther)
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(std::move(aOther));
mType = TWebAuthnExtensionResultHmacSecret;
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(const WebAuthnExtensionResult& aOther)
{
(aOther).AssertSanity();
switch ((aOther).type()) {
case TWebAuthnExtensionResultAppId:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId((aOther).get_WebAuthnExtensionResultAppId());
break;
}
case TWebAuthnExtensionResultCredProps:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps((aOther).get_WebAuthnExtensionResultCredProps());
break;
}
case TWebAuthnExtensionResultHmacSecret:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret((aOther).get_WebAuthnExtensionResultHmacSecret());
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
mType = (aOther).type();
}
MOZ_IMPLICIT WebAuthnExtensionResult::WebAuthnExtensionResult(WebAuthnExtensionResult&& aOther)
{
(aOther).AssertSanity();
Type t = (aOther).type();
switch (t) {
case TWebAuthnExtensionResultAppId:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move((aOther).get_WebAuthnExtensionResultAppId()));
(aOther).MaybeDestroy();
break;
}
case TWebAuthnExtensionResultCredProps:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(std::move((aOther).get_WebAuthnExtensionResultCredProps()));
(aOther).MaybeDestroy();
break;
}
case TWebAuthnExtensionResultHmacSecret:
{
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(std::move((aOther).get_WebAuthnExtensionResultHmacSecret()));
(aOther).MaybeDestroy();
break;
}
case T__None:
{
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
return;
}
}
(aOther).mType = T__None;
mType = t;
}
WebAuthnExtensionResult::~WebAuthnExtensionResult()
{
MaybeDestroy();
}
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResultAppId& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(aRhs);
mType = TWebAuthnExtensionResultAppId;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResultAppId&& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move(aRhs));
mType = TWebAuthnExtensionResultAppId;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResultCredProps& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(aRhs);
mType = TWebAuthnExtensionResultCredProps;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResultCredProps&& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(std::move(aRhs));
mType = TWebAuthnExtensionResultCredProps;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResultHmacSecret& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(aRhs);
mType = TWebAuthnExtensionResultHmacSecret;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResultHmacSecret&& aRhs) -> WebAuthnExtensionResult&
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(std::move(aRhs));
mType = TWebAuthnExtensionResultHmacSecret;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(const WebAuthnExtensionResult& aRhs) -> WebAuthnExtensionResult&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TWebAuthnExtensionResultAppId:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId((aRhs).get_WebAuthnExtensionResultAppId());
break;
}
case TWebAuthnExtensionResultCredProps:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps((aRhs).get_WebAuthnExtensionResultCredProps());
break;
}
case TWebAuthnExtensionResultHmacSecret:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret((aRhs).get_WebAuthnExtensionResultHmacSecret());
break;
}
case T__None:
{
MaybeDestroy();
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
mType = t;
return (*(this));
}
auto WebAuthnExtensionResult::operator=(WebAuthnExtensionResult&& aRhs) -> WebAuthnExtensionResult&
{
(aRhs).AssertSanity();
Type t = (aRhs).type();
switch (t) {
case TWebAuthnExtensionResultAppId:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultAppId()) WebAuthnExtensionResultAppId(std::move((aRhs).get_WebAuthnExtensionResultAppId()));
(aRhs).MaybeDestroy();
break;
}
case TWebAuthnExtensionResultCredProps:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultCredProps()) WebAuthnExtensionResultCredProps(std::move((aRhs).get_WebAuthnExtensionResultCredProps()));
(aRhs).MaybeDestroy();
break;
}
case TWebAuthnExtensionResultHmacSecret:
{
MaybeDestroy();
new (mozilla::KnownNotNull, ptr_WebAuthnExtensionResultHmacSecret()) WebAuthnExtensionResultHmacSecret(std::move((aRhs).get_WebAuthnExtensionResultHmacSecret()));
(aRhs).MaybeDestroy();
break;
}
case T__None:
{
MaybeDestroy();
break;
}
default:
{
mozilla::ipc::LogicError("unreached");
break;
}
}
(aRhs).mType = T__None;
mType = t;
return (*(this));
}
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResult>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
typedef ::mozilla::dom::WebAuthnExtensionResult union__;
int type = (aVar).type();
IPC::WriteParam(aWriter, type);
// Sentinel = 'WebAuthnExtensionResult'
(aWriter)->WriteSentinel(1833765211);
switch (type) {
case union__::TWebAuthnExtensionResultAppId:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionResultAppId());
// Sentinel = 'TWebAuthnExtensionResultAppId'
(aWriter)->WriteSentinel(2867071869);
return;
}
case union__::TWebAuthnExtensionResultCredProps:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionResultCredProps());
// Sentinel = 'TWebAuthnExtensionResultCredProps'
(aWriter)->WriteSentinel(3713207617);
return;
}
case union__::TWebAuthnExtensionResultHmacSecret:
{
IPC::WriteParam(aWriter, (aVar).get_WebAuthnExtensionResultHmacSecret());
// Sentinel = 'TWebAuthnExtensionResultHmacSecret'
(aWriter)->WriteSentinel(3933277582);
return;
}
default:
{
aWriter->FatalError("unknown variant of union WebAuthnExtensionResult");
return;
}
}
}
auto ParamTraits<::mozilla::dom::WebAuthnExtensionResult>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
typedef ::mozilla::dom::WebAuthnExtensionResult union__;
auto maybe__type = IPC::ReadParam<int>(aReader);
if (!maybe__type) {
aReader->FatalError("Error deserializing type of union WebAuthnExtensionResult");
return {};
}
auto& type = *maybe__type;
// Sentinel = 'WebAuthnExtensionResult'
if ((!((aReader)->ReadSentinel(1833765211)))) {
mozilla::ipc::SentinelReadError("Error deserializing type of union WebAuthnExtensionResult");
return {};
}
switch (type) {
case union__::TWebAuthnExtensionResultAppId:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionResultAppId>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionResultAppId of union WebAuthnExtensionResult");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionResultAppId'
if ((!((aReader)->ReadSentinel(2867071869)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionResultAppId of union WebAuthnExtensionResult");
return {};
}
return std::move(tmp);
}
case union__::TWebAuthnExtensionResultCredProps:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionResultCredProps>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionResultCredProps of union WebAuthnExtensionResult");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionResultCredProps'
if ((!((aReader)->ReadSentinel(3713207617)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionResultCredProps of union WebAuthnExtensionResult");
return {};
}
return std::move(tmp);
}
case union__::TWebAuthnExtensionResultHmacSecret:
{
auto maybe__tmp = IPC::ReadParam<::mozilla::dom::WebAuthnExtensionResultHmacSecret>(aReader);
if (!maybe__tmp) {
aReader->FatalError("Error deserializing variant TWebAuthnExtensionResultHmacSecret of union WebAuthnExtensionResult");
return {};
}
auto& tmp = *maybe__tmp;
// Sentinel = 'TWebAuthnExtensionResultHmacSecret'
if ((!((aReader)->ReadSentinel(3933277582)))) {
mozilla::ipc::SentinelReadError("Error deserializing variant TWebAuthnExtensionResultHmacSecret of union WebAuthnExtensionResult");
return {};
}
return std::move(tmp);
}
default:
{
aReader->FatalError("unknown variant of union WebAuthnExtensionResult");
return {};
}
}
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialRpInfo|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialRpInfo>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).Name());
// Sentinel = 'Name'
(aWriter)->WriteSentinel(60686722);
}
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialRpInfo>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___Name = IPC::ReadParam<::nsString>(aReader);
if (!maybe___Name) {
aReader->FatalError("Error deserializing 'Name' (nsString) member of 'WebAuthnMakeCredentialRpInfo'");
return {};
}
auto& _Name = *maybe___Name;
// Sentinel = 'Name'
if ((!((aReader)->ReadSentinel(60686722)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Name' (nsString) member of 'WebAuthnMakeCredentialRpInfo'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_Name)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialUserInfo|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialUserInfo>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).Id());
// Sentinel = 'Id'
(aWriter)->WriteSentinel(16253102);
IPC::WriteParam(aWriter, (aVar).Name());
// Sentinel = 'Name'
(aWriter)->WriteSentinel(60686722);
IPC::WriteParam(aWriter, (aVar).DisplayName());
// Sentinel = 'DisplayName'
(aWriter)->WriteSentinel(432866392);
}
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialUserInfo>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___Id = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___Id) {
aReader->FatalError("Error deserializing 'Id' (uint8_t[]) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
auto& _Id = *maybe___Id;
// Sentinel = 'Id'
if ((!((aReader)->ReadSentinel(16253102)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Id' (uint8_t[]) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
auto maybe___Name = IPC::ReadParam<::nsString>(aReader);
if (!maybe___Name) {
aReader->FatalError("Error deserializing 'Name' (nsString) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
auto& _Name = *maybe___Name;
// Sentinel = 'Name'
if ((!((aReader)->ReadSentinel(60686722)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Name' (nsString) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
auto maybe___DisplayName = IPC::ReadParam<::nsString>(aReader);
if (!maybe___DisplayName) {
aReader->FatalError("Error deserializing 'DisplayName' (nsString) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
auto& _DisplayName = *maybe___DisplayName;
// Sentinel = 'DisplayName'
if ((!((aReader)->ReadSentinel(432866392)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'DisplayName' (nsString) member of 'WebAuthnMakeCredentialUserInfo'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_Id),
std::move(_Name),
std::move(_DisplayName)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct CoseAlg|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::CoseAlg>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).alg());
// Sentinel = 'alg'
(aWriter)->WriteSentinel(40173877);
}
auto ParamTraits<::mozilla::dom::CoseAlg>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___alg = IPC::ReadParam<long>(aReader);
if (!maybe___alg) {
aReader->FatalError("Error deserializing 'alg' (long) member of 'CoseAlg'");
return {};
}
auto& _alg = *maybe___alg;
// Sentinel = 'alg'
if ((!((aReader)->ReadSentinel(40173877)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'alg' (long) member of 'CoseAlg'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_alg)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialInfo|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialInfo>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).Origin());
// Sentinel = 'Origin'
(aWriter)->WriteSentinel(137560681);
IPC::WriteParam(aWriter, (aVar).RpId());
// Sentinel = 'RpId'
(aWriter)->WriteSentinel(59900272);
IPC::WriteParam(aWriter, (aVar).Challenge());
// Sentinel = 'Challenge'
(aWriter)->WriteSentinel(285213572);
IPC::WriteParam(aWriter, (aVar).ClientDataJSON());
// Sentinel = 'ClientDataJSON'
(aWriter)->WriteSentinel(659031316);
IPC::WriteParam(aWriter, (aVar).ExcludeList());
// Sentinel = 'ExcludeList'
(aWriter)->WriteSentinel(433456231);
IPC::WriteParam(aWriter, (aVar).Rp());
// Sentinel = 'Rp'
(aWriter)->WriteSentinel(18219203);
IPC::WriteParam(aWriter, (aVar).User());
// Sentinel = 'User'
(aWriter)->WriteSentinel(65864096);
IPC::WriteParam(aWriter, (aVar).coseAlgs());
// Sentinel = 'coseAlgs'
(aWriter)->WriteSentinel(240976690);
IPC::WriteParam(aWriter, (aVar).Extensions());
// Sentinel = 'Extensions'
(aWriter)->WriteSentinel(376046641);
IPC::WriteParam(aWriter, (aVar).AuthenticatorSelection());
// Sentinel = 'AuthenticatorSelection'
(aWriter)->WriteSentinel(1720125698);
IPC::WriteParam(aWriter, (aVar).attestationConveyancePreference());
// Sentinel = 'attestationConveyancePreference'
(aWriter)->WriteSentinel(3454864571);
(aWriter)->WriteBytes((&((aVar).BrowsingContextId())), 8);
// Sentinel = 'BrowsingContextId'
(aWriter)->WriteSentinel(1037108958);
(aWriter)->WriteBytes((&((aVar).TimeoutMS())), 4);
// Sentinel = 'TimeoutMS'
(aWriter)->WriteSentinel(300286856);
}
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialInfo>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___Origin = IPC::ReadParam<::nsString>(aReader);
if (!maybe___Origin) {
aReader->FatalError("Error deserializing 'Origin' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _Origin = *maybe___Origin;
// Sentinel = 'Origin'
if ((!((aReader)->ReadSentinel(137560681)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Origin' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___RpId = IPC::ReadParam<::nsString>(aReader);
if (!maybe___RpId) {
aReader->FatalError("Error deserializing 'RpId' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _RpId = *maybe___RpId;
// Sentinel = 'RpId'
if ((!((aReader)->ReadSentinel(59900272)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'RpId' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___Challenge = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___Challenge) {
aReader->FatalError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _Challenge = *maybe___Challenge;
// Sentinel = 'Challenge'
if ((!((aReader)->ReadSentinel(285213572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___ClientDataJSON = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___ClientDataJSON) {
aReader->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _ClientDataJSON = *maybe___ClientDataJSON;
// Sentinel = 'ClientDataJSON'
if ((!((aReader)->ReadSentinel(659031316)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___ExcludeList = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnScopedCredential>>(aReader);
if (!maybe___ExcludeList) {
aReader->FatalError("Error deserializing 'ExcludeList' (WebAuthnScopedCredential[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _ExcludeList = *maybe___ExcludeList;
// Sentinel = 'ExcludeList'
if ((!((aReader)->ReadSentinel(433456231)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ExcludeList' (WebAuthnScopedCredential[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___Rp = IPC::ReadParam<::mozilla::dom::WebAuthnMakeCredentialRpInfo>(aReader);
if (!maybe___Rp) {
aReader->FatalError("Error deserializing 'Rp' (WebAuthnMakeCredentialRpInfo) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _Rp = *maybe___Rp;
// Sentinel = 'Rp'
if ((!((aReader)->ReadSentinel(18219203)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Rp' (WebAuthnMakeCredentialRpInfo) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___User = IPC::ReadParam<::mozilla::dom::WebAuthnMakeCredentialUserInfo>(aReader);
if (!maybe___User) {
aReader->FatalError("Error deserializing 'User' (WebAuthnMakeCredentialUserInfo) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _User = *maybe___User;
// Sentinel = 'User'
if ((!((aReader)->ReadSentinel(65864096)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'User' (WebAuthnMakeCredentialUserInfo) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___coseAlgs = IPC::ReadParam<nsTArray<::mozilla::dom::CoseAlg>>(aReader);
if (!maybe___coseAlgs) {
aReader->FatalError("Error deserializing 'coseAlgs' (CoseAlg[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _coseAlgs = *maybe___coseAlgs;
// Sentinel = 'coseAlgs'
if ((!((aReader)->ReadSentinel(240976690)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'coseAlgs' (CoseAlg[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___Extensions = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnExtension>>(aReader);
if (!maybe___Extensions) {
aReader->FatalError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _Extensions = *maybe___Extensions;
// Sentinel = 'Extensions'
if ((!((aReader)->ReadSentinel(376046641)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___AuthenticatorSelection = IPC::ReadParam<::mozilla::dom::WebAuthnAuthenticatorSelection>(aReader);
if (!maybe___AuthenticatorSelection) {
aReader->FatalError("Error deserializing 'AuthenticatorSelection' (WebAuthnAuthenticatorSelection) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _AuthenticatorSelection = *maybe___AuthenticatorSelection;
// Sentinel = 'AuthenticatorSelection'
if ((!((aReader)->ReadSentinel(1720125698)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorSelection' (WebAuthnAuthenticatorSelection) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto maybe___attestationConveyancePreference = IPC::ReadParam<::nsString>(aReader);
if (!maybe___attestationConveyancePreference) {
aReader->FatalError("Error deserializing 'attestationConveyancePreference' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
auto& _attestationConveyancePreference = *maybe___attestationConveyancePreference;
// Sentinel = 'attestationConveyancePreference'
if ((!((aReader)->ReadSentinel(3454864571)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'attestationConveyancePreference' (nsString) member of 'WebAuthnMakeCredentialInfo'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_Origin),
std::move(_RpId),
std::move(_Challenge),
std::move(_ClientDataJSON),
::uint32_t{0},
std::move(_ExcludeList),
std::move(_Rp),
std::move(_User),
std::move(_coseAlgs),
std::move(_Extensions),
std::move(_AuthenticatorSelection),
std::move(_attestationConveyancePreference),
::uint64_t{0}};
if ((!((aReader)->ReadBytesInto((&((result__)->BrowsingContextId())), 8)))) {
aReader->FatalError("Error bulk reading fields from uint64_t");
return {};
}
// Sentinel = 'BrowsingContextId'
if ((!((aReader)->ReadSentinel(1037108958)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return {};
}
if ((!((aReader)->ReadBytesInto((&((result__)->TimeoutMS())), 4)))) {
aReader->FatalError("Error bulk reading fields from uint32_t");
return {};
}
// Sentinel = 'TimeoutMS'
if ((!((aReader)->ReadSentinel(300286856)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint32_t");
return {};
}
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnMakeCredentialResult|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialResult>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).ClientDataJSON());
// Sentinel = 'ClientDataJSON'
(aWriter)->WriteSentinel(659031316);
IPC::WriteParam(aWriter, (aVar).AttestationObject());
// Sentinel = 'AttestationObject'
(aWriter)->WriteSentinel(1039009512);
IPC::WriteParam(aWriter, (aVar).KeyHandle());
// Sentinel = 'KeyHandle'
(aWriter)->WriteSentinel(282657654);
IPC::WriteParam(aWriter, (aVar).Transports());
// Sentinel = 'Transports'
(aWriter)->WriteSentinel(380437569);
IPC::WriteParam(aWriter, (aVar).Extensions());
// Sentinel = 'Extensions'
(aWriter)->WriteSentinel(376046641);
IPC::WriteParam(aWriter, (aVar).AuthenticatorAttachment());
// Sentinel = 'AuthenticatorAttachment'
(aWriter)->WriteSentinel(1873414501);
}
auto ParamTraits<::mozilla::dom::WebAuthnMakeCredentialResult>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___ClientDataJSON = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___ClientDataJSON) {
aReader->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _ClientDataJSON = *maybe___ClientDataJSON;
// Sentinel = 'ClientDataJSON'
if ((!((aReader)->ReadSentinel(659031316)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto maybe___AttestationObject = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___AttestationObject) {
aReader->FatalError("Error deserializing 'AttestationObject' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _AttestationObject = *maybe___AttestationObject;
// Sentinel = 'AttestationObject'
if ((!((aReader)->ReadSentinel(1039009512)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AttestationObject' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto maybe___KeyHandle = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___KeyHandle) {
aReader->FatalError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _KeyHandle = *maybe___KeyHandle;
// Sentinel = 'KeyHandle'
if ((!((aReader)->ReadSentinel(282657654)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto maybe___Transports = IPC::ReadParam<nsTArray<::nsString>>(aReader);
if (!maybe___Transports) {
aReader->FatalError("Error deserializing 'Transports' (nsString[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _Transports = *maybe___Transports;
// Sentinel = 'Transports'
if ((!((aReader)->ReadSentinel(380437569)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Transports' (nsString[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto maybe___Extensions = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnExtensionResult>>(aReader);
if (!maybe___Extensions) {
aReader->FatalError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _Extensions = *maybe___Extensions;
// Sentinel = 'Extensions'
if ((!((aReader)->ReadSentinel(376046641)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto maybe___AuthenticatorAttachment = IPC::ReadParam<mozilla::Maybe<::nsString>>(aReader);
if (!maybe___AuthenticatorAttachment) {
aReader->FatalError("Error deserializing 'AuthenticatorAttachment' (nsString?) member of 'WebAuthnMakeCredentialResult'");
return {};
}
auto& _AuthenticatorAttachment = *maybe___AuthenticatorAttachment;
// Sentinel = 'AuthenticatorAttachment'
if ((!((aReader)->ReadSentinel(1873414501)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorAttachment' (nsString?) member of 'WebAuthnMakeCredentialResult'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_ClientDataJSON),
std::move(_AttestationObject),
std::move(_KeyHandle),
std::move(_Transports),
std::move(_Extensions),
std::move(_AuthenticatorAttachment)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnGetAssertionInfo|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnGetAssertionInfo>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).Origin());
// Sentinel = 'Origin'
(aWriter)->WriteSentinel(137560681);
IPC::WriteParam(aWriter, (aVar).RpId());
// Sentinel = 'RpId'
(aWriter)->WriteSentinel(59900272);
IPC::WriteParam(aWriter, (aVar).Challenge());
// Sentinel = 'Challenge'
(aWriter)->WriteSentinel(285213572);
IPC::WriteParam(aWriter, (aVar).ClientDataJSON());
// Sentinel = 'ClientDataJSON'
(aWriter)->WriteSentinel(659031316);
IPC::WriteParam(aWriter, (aVar).AllowList());
// Sentinel = 'AllowList'
(aWriter)->WriteSentinel(290980764);
IPC::WriteParam(aWriter, (aVar).Extensions());
// Sentinel = 'Extensions'
(aWriter)->WriteSentinel(376046641);
IPC::WriteParam(aWriter, (aVar).userVerificationRequirement());
// Sentinel = 'userVerificationRequirement'
(aWriter)->WriteSentinel(2623474484);
IPC::WriteParam(aWriter, (aVar).ConditionallyMediated());
// Sentinel = 'ConditionallyMediated'
(aWriter)->WriteSentinel(1556154487);
(aWriter)->WriteBytes((&((aVar).BrowsingContextId())), 8);
// Sentinel = 'BrowsingContextId'
(aWriter)->WriteSentinel(1037108958);
(aWriter)->WriteBytes((&((aVar).TimeoutMS())), 4);
// Sentinel = 'TimeoutMS'
(aWriter)->WriteSentinel(300286856);
}
auto ParamTraits<::mozilla::dom::WebAuthnGetAssertionInfo>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___Origin = IPC::ReadParam<::nsString>(aReader);
if (!maybe___Origin) {
aReader->FatalError("Error deserializing 'Origin' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _Origin = *maybe___Origin;
// Sentinel = 'Origin'
if ((!((aReader)->ReadSentinel(137560681)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Origin' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___RpId = IPC::ReadParam<::nsString>(aReader);
if (!maybe___RpId) {
aReader->FatalError("Error deserializing 'RpId' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _RpId = *maybe___RpId;
// Sentinel = 'RpId'
if ((!((aReader)->ReadSentinel(59900272)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'RpId' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___Challenge = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___Challenge) {
aReader->FatalError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _Challenge = *maybe___Challenge;
// Sentinel = 'Challenge'
if ((!((aReader)->ReadSentinel(285213572)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Challenge' (uint8_t[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___ClientDataJSON = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___ClientDataJSON) {
aReader->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _ClientDataJSON = *maybe___ClientDataJSON;
// Sentinel = 'ClientDataJSON'
if ((!((aReader)->ReadSentinel(659031316)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___AllowList = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnScopedCredential>>(aReader);
if (!maybe___AllowList) {
aReader->FatalError("Error deserializing 'AllowList' (WebAuthnScopedCredential[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _AllowList = *maybe___AllowList;
// Sentinel = 'AllowList'
if ((!((aReader)->ReadSentinel(290980764)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AllowList' (WebAuthnScopedCredential[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___Extensions = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnExtension>>(aReader);
if (!maybe___Extensions) {
aReader->FatalError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _Extensions = *maybe___Extensions;
// Sentinel = 'Extensions'
if ((!((aReader)->ReadSentinel(376046641)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtension[]) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___userVerificationRequirement = IPC::ReadParam<::nsString>(aReader);
if (!maybe___userVerificationRequirement) {
aReader->FatalError("Error deserializing 'userVerificationRequirement' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _userVerificationRequirement = *maybe___userVerificationRequirement;
// Sentinel = 'userVerificationRequirement'
if ((!((aReader)->ReadSentinel(2623474484)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'userVerificationRequirement' (nsString) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto maybe___ConditionallyMediated = IPC::ReadParam<bool>(aReader);
if (!maybe___ConditionallyMediated) {
aReader->FatalError("Error deserializing 'ConditionallyMediated' (bool) member of 'WebAuthnGetAssertionInfo'");
return {};
}
auto& _ConditionallyMediated = *maybe___ConditionallyMediated;
// Sentinel = 'ConditionallyMediated'
if ((!((aReader)->ReadSentinel(1556154487)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ConditionallyMediated' (bool) member of 'WebAuthnGetAssertionInfo'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_Origin),
std::move(_RpId),
std::move(_Challenge),
std::move(_ClientDataJSON),
::uint32_t{0},
std::move(_AllowList),
std::move(_Extensions),
std::move(_userVerificationRequirement),
std::move(_ConditionallyMediated),
::uint64_t{0}};
if ((!((aReader)->ReadBytesInto((&((result__)->BrowsingContextId())), 8)))) {
aReader->FatalError("Error bulk reading fields from uint64_t");
return {};
}
// Sentinel = 'BrowsingContextId'
if ((!((aReader)->ReadSentinel(1037108958)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint64_t");
return {};
}
if ((!((aReader)->ReadBytesInto((&((result__)->TimeoutMS())), 4)))) {
aReader->FatalError("Error bulk reading fields from uint32_t");
return {};
}
// Sentinel = 'TimeoutMS'
if ((!((aReader)->ReadSentinel(300286856)))) {
mozilla::ipc::SentinelReadError("Error bulk reading fields from uint32_t");
return {};
}
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct WebAuthnGetAssertionResult|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::WebAuthnGetAssertionResult>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).ClientDataJSON());
// Sentinel = 'ClientDataJSON'
(aWriter)->WriteSentinel(659031316);
IPC::WriteParam(aWriter, (aVar).KeyHandle());
// Sentinel = 'KeyHandle'
(aWriter)->WriteSentinel(282657654);
IPC::WriteParam(aWriter, (aVar).Signature());
// Sentinel = 'Signature'
(aWriter)->WriteSentinel(301859763);
IPC::WriteParam(aWriter, (aVar).AuthenticatorData());
// Sentinel = 'AuthenticatorData'
(aWriter)->WriteSentinel(1032586966);
IPC::WriteParam(aWriter, (aVar).Extensions());
// Sentinel = 'Extensions'
(aWriter)->WriteSentinel(376046641);
IPC::WriteParam(aWriter, (aVar).UserHandle());
// Sentinel = 'UserHandle'
(aWriter)->WriteSentinel(358810604);
IPC::WriteParam(aWriter, (aVar).AuthenticatorAttachment());
// Sentinel = 'AuthenticatorAttachment'
(aWriter)->WriteSentinel(1873414501);
}
auto ParamTraits<::mozilla::dom::WebAuthnGetAssertionResult>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___ClientDataJSON = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___ClientDataJSON) {
aReader->FatalError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _ClientDataJSON = *maybe___ClientDataJSON;
// Sentinel = 'ClientDataJSON'
if ((!((aReader)->ReadSentinel(659031316)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ClientDataJSON' (nsCString) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___KeyHandle = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___KeyHandle) {
aReader->FatalError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _KeyHandle = *maybe___KeyHandle;
// Sentinel = 'KeyHandle'
if ((!((aReader)->ReadSentinel(282657654)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'KeyHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___Signature = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___Signature) {
aReader->FatalError("Error deserializing 'Signature' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _Signature = *maybe___Signature;
// Sentinel = 'Signature'
if ((!((aReader)->ReadSentinel(301859763)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Signature' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___AuthenticatorData = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___AuthenticatorData) {
aReader->FatalError("Error deserializing 'AuthenticatorData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _AuthenticatorData = *maybe___AuthenticatorData;
// Sentinel = 'AuthenticatorData'
if ((!((aReader)->ReadSentinel(1032586966)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorData' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___Extensions = IPC::ReadParam<nsTArray<::mozilla::dom::WebAuthnExtensionResult>>(aReader);
if (!maybe___Extensions) {
aReader->FatalError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _Extensions = *maybe___Extensions;
// Sentinel = 'Extensions'
if ((!((aReader)->ReadSentinel(376046641)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Extensions' (WebAuthnExtensionResult[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___UserHandle = IPC::ReadParam<nsTArray<::uint8_t>>(aReader);
if (!maybe___UserHandle) {
aReader->FatalError("Error deserializing 'UserHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _UserHandle = *maybe___UserHandle;
// Sentinel = 'UserHandle'
if ((!((aReader)->ReadSentinel(358810604)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'UserHandle' (uint8_t[]) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto maybe___AuthenticatorAttachment = IPC::ReadParam<mozilla::Maybe<::nsString>>(aReader);
if (!maybe___AuthenticatorAttachment) {
aReader->FatalError("Error deserializing 'AuthenticatorAttachment' (nsString?) member of 'WebAuthnGetAssertionResult'");
return {};
}
auto& _AuthenticatorAttachment = *maybe___AuthenticatorAttachment;
// Sentinel = 'AuthenticatorAttachment'
if ((!((aReader)->ReadSentinel(1873414501)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'AuthenticatorAttachment' (nsString?) member of 'WebAuthnGetAssertionResult'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_ClientDataJSON),
std::move(_KeyHandle),
std::move(_Signature),
std::move(_AuthenticatorData),
std::move(_Extensions),
std::move(_UserHandle),
std::move(_AuthenticatorAttachment)};
return result__;
}
} // namespace IPC