Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/PermissionMessageUtils.h"
#include "mozilla/dom/IPCIdentityCredential.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"
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct IPCIdentityCredential|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::IPCIdentityCredential>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).id());
// Sentinel = 'id'
(aWriter)->WriteSentinel(20447438);
IPC::WriteParam(aWriter, (aVar).token());
// Sentinel = 'token'
(aWriter)->WriteSentinel(108921378);
IPC::WriteParam(aWriter, (aVar).name());
// Sentinel = 'name'
(aWriter)->WriteSentinel(69075362);
IPC::WriteParam(aWriter, (aVar).iconURL());
// Sentinel = 'iconURL'
(aWriter)->WriteSentinel(185205405);
IPC::WriteParam(aWriter, (aVar).effectiveOrigins());
// Sentinel = 'effectiveOrigins'
(aWriter)->WriteSentinel(924780173);
IPC::WriteParam(aWriter, (aVar).effectiveQueryURL());
// Sentinel = 'effectiveQueryURL'
(aWriter)->WriteSentinel(1039075003);
IPC::WriteParam(aWriter, (aVar).effectiveType());
// Sentinel = 'effectiveType'
(aWriter)->WriteSentinel(620823892);
IPC::WriteParam(aWriter, (aVar).infoExpiresAt());
// Sentinel = 'infoExpiresAt'
(aWriter)->WriteSentinel(621937986);
IPC::WriteParam(aWriter, (aVar).identityProvider());
// Sentinel = 'identityProvider'
(aWriter)->WriteSentinel(954599094);
}
auto ParamTraits<::mozilla::dom::IPCIdentityCredential>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___id = IPC::ReadParam<::nsString>(aReader);
if (!maybe___id) {
aReader->FatalError("Error deserializing 'id' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto& _id = *maybe___id;
// Sentinel = 'id'
if ((!((aReader)->ReadSentinel(20447438)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___token = IPC::ReadParam<mozilla::Maybe<::nsString>>(aReader);
if (!maybe___token) {
aReader->FatalError("Error deserializing 'token' (nsString?) member of 'IPCIdentityCredential'");
return {};
}
auto& _token = *maybe___token;
// Sentinel = 'token'
if ((!((aReader)->ReadSentinel(108921378)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'token' (nsString?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___name = IPC::ReadParam<mozilla::Maybe<::nsCString>>(aReader);
if (!maybe___name) {
aReader->FatalError("Error deserializing 'name' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto& _name = *maybe___name;
// Sentinel = 'name'
if ((!((aReader)->ReadSentinel(69075362)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___iconURL = IPC::ReadParam<mozilla::Maybe<::nsCString>>(aReader);
if (!maybe___iconURL) {
aReader->FatalError("Error deserializing 'iconURL' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto& _iconURL = *maybe___iconURL;
// Sentinel = 'iconURL'
if ((!((aReader)->ReadSentinel(185205405)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'iconURL' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___effectiveOrigins = IPC::ReadParam<nsTArray<::nsCString>>(aReader);
if (!maybe___effectiveOrigins) {
aReader->FatalError("Error deserializing 'effectiveOrigins' (nsCString[]) member of 'IPCIdentityCredential'");
return {};
}
auto& _effectiveOrigins = *maybe___effectiveOrigins;
// Sentinel = 'effectiveOrigins'
if ((!((aReader)->ReadSentinel(924780173)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'effectiveOrigins' (nsCString[]) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___effectiveQueryURL = IPC::ReadParam<mozilla::Maybe<::nsCString>>(aReader);
if (!maybe___effectiveQueryURL) {
aReader->FatalError("Error deserializing 'effectiveQueryURL' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto& _effectiveQueryURL = *maybe___effectiveQueryURL;
// Sentinel = 'effectiveQueryURL'
if ((!((aReader)->ReadSentinel(1039075003)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'effectiveQueryURL' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___effectiveType = IPC::ReadParam<mozilla::Maybe<::nsCString>>(aReader);
if (!maybe___effectiveType) {
aReader->FatalError("Error deserializing 'effectiveType' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto& _effectiveType = *maybe___effectiveType;
// Sentinel = 'effectiveType'
if ((!((aReader)->ReadSentinel(620823892)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'effectiveType' (nsCString?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___infoExpiresAt = IPC::ReadParam<mozilla::Maybe<::uint64_t>>(aReader);
if (!maybe___infoExpiresAt) {
aReader->FatalError("Error deserializing 'infoExpiresAt' (uint64_t?) member of 'IPCIdentityCredential'");
return {};
}
auto& _infoExpiresAt = *maybe___infoExpiresAt;
// Sentinel = 'infoExpiresAt'
if ((!((aReader)->ReadSentinel(621937986)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'infoExpiresAt' (uint64_t?) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___identityProvider = IPC::ReadParam<RefPtr<::nsIPrincipal>>(aReader);
if (!maybe___identityProvider) {
aReader->FatalError("Error deserializing 'identityProvider' (nsIPrincipal) member of 'IPCIdentityCredential'");
return {};
}
auto& _identityProvider = *maybe___identityProvider;
// Sentinel = 'identityProvider'
if ((!((aReader)->ReadSentinel(954599094)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'identityProvider' (nsIPrincipal) member of 'IPCIdentityCredential'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_id),
std::move(_token),
std::move(_name),
std::move(_iconURL),
std::move(_effectiveOrigins),
std::move(_effectiveQueryURL),
std::move(_effectiveType),
std::move(_infoExpiresAt),
std::move(_identityProvider)};
return result__;
}
} // namespace IPC