Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/_ipdltest/PTestDataStructuresParent.h"
#include "mozilla/GfxMessageUtils.h"
#include "mozilla/ProfilerLabels.h"
#include "mozilla/ipc/IPCCore.h"
#include "mozilla/_ipdltest/PTestDataStructuresSubParent.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 _ipdltest {
auto PTestDataStructuresParent::Recv__delete__() -> mozilla::ipc::IPCResult
{
return IPC_OK();
}
auto PTestDataStructuresParent::ProcessingError(
Result aCode,
const char* aReason) -> void
{
}
auto PTestDataStructuresParent::ShouldContinueFromReplyTimeout() -> bool
{
return true;
}
MOZ_IMPLICIT PTestDataStructuresParent::PTestDataStructuresParent() :
mozilla::ipc::IToplevelProtocol("PTestDataStructuresParent", kProtocolId, mozilla::ipc::ParentSide)
{
MOZ_COUNT_CTOR(PTestDataStructuresParent);
}
PTestDataStructuresParent::~PTestDataStructuresParent()
{
MOZ_COUNT_DTOR(PTestDataStructuresParent);
}
auto PTestDataStructuresParent::ActorAlloc() -> void
{
MOZ_RELEASE_ASSERT(XRE_IsParentProcess(), "Invalid process for `PTestDataStructuresParent'");
AddRef();
}
auto PTestDataStructuresParent::ActorDealloc() -> void
{
Release();
}
auto PTestDataStructuresParent::ManagedPTestDataStructuresSubParent(nsTArray<PTestDataStructuresSubParent*>& aArr) const -> void
{
mManagedPTestDataStructuresSubParent.ToArray(aArr);
}
auto PTestDataStructuresParent::ManagedPTestDataStructuresSubParent() const -> const ManagedContainer<PTestDataStructuresSubParent>&
{
return mManagedPTestDataStructuresSubParent;
}
auto PTestDataStructuresParent::ManagedProtocolIds() const -> mozilla::Span<mozilla::ipc::ProtocolId const>
{
static constexpr ::mozilla::ipc::ProtocolId sIds[] = {
PTestDataStructuresSubMsgStart
};
return sIds;
}
auto PTestDataStructuresParent::GetManagedActors(mozilla::ipc::ProtocolId aProtocol) -> UntypedManagedContainer*
{
switch (aProtocol) {
case PTestDataStructuresSubMsgStart:
return (&(mManagedPTestDataStructuresSubParent));
default:
return nullptr;
}
}
auto PTestDataStructuresParent::OpenPTestDataStructuresSubEndpoint(PTestDataStructuresSubParent* aActor) -> ManagedEndpoint<PTestDataStructuresSubChild>
{
if (!aActor) {
NS_WARNING("Cannot bind null PTestDataStructuresSubParent actor");
return ManagedEndpoint<PTestDataStructuresSubChild>();
}
if (!aActor->SetManagerAndRegister(this)) {
NS_WARNING("Failed to bind PTestDataStructuresSubParent actor");
return ManagedEndpoint<PTestDataStructuresSubChild>();
}
// Mark our actor as awaiting the other side to be bound. This will
// be cleared when a `MANAGED_ENDPOINT_{DROPPED,BOUND}` message is
// received.
aActor->mAwaitingManagedEndpointBind = true;
return ManagedEndpoint<PTestDataStructuresSubChild>(mozilla::ipc::PrivateIPDLInterface(), aActor);
}
auto PTestDataStructuresParent::BindPTestDataStructuresSubEndpoint(
ManagedEndpoint<PTestDataStructuresSubParent> aEndpoint,
PTestDataStructuresSubParent* aActor) -> bool
{
return aEndpoint.Bind(mozilla::ipc::PrivateIPDLInterface(), aActor, this);
}
auto PTestDataStructuresParent::SendPTestDataStructuresSubConstructor(
PTestDataStructuresSubParent* actor,
const int& i) -> PTestDataStructuresSubParent*
{
if (!actor) {
NS_WARNING("Cannot bind null PTestDataStructuresSubParent actor");
return nullptr;
}
if (!actor->SetManagerAndRegister(this)) {
NS_WARNING("Failed to bind PTestDataStructuresSubParent actor");
return nullptr;
}
// Build our constructor message.
UniquePtr<IPC::Message> msg__ = PTestDataStructures::Msg_PTestDataStructuresSubConstructor(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
IPC::WriteParam((&(writer__)), actor);
// Sentinel = 'actor'
((&(writer__)))->WriteSentinel(102892058);
IPC::WriteParam((&(writer__)), i);
// Sentinel = 'i'
((&(writer__)))->WriteSentinel(6946922);
// Notify the other side about the newly created actor. This can
// fail if our manager has already been destroyed.
//
// NOTE: If the send call fails due to toplevel channel teardown,
// the `IProtocol::ChannelSend` wrapper absorbs the error for us,
// so we don't tear down actors unexpectedly.
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_PTestDataStructuresSubConstructor", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
// Warn, destroy the actor, and return null if the message failed to
// send. Otherwise, return the successfully created actor reference.
if (!sendok__) {
NS_WARNING("Error sending PTestDataStructuresSubParent constructor");
actor->ActorDisconnected(FailedConstructor);
return nullptr;
}
return actor;
}
auto PTestDataStructuresParent::SendStart() -> bool
{
UniquePtr<IPC::Message> msg__ = PTestDataStructures::Msg_Start(MSG_ROUTING_CONTROL);
IPC::MessageWriter writer__{
(*(msg__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending ",
msg__->type(),
mozilla::ipc::MessageDirection::eSending);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_Start", OTHER);
bool sendok__ = ChannelSend(std::move(msg__));
return sendok__;
}
auto PTestDataStructuresParent::DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) -> void
{
switch (aProtocolId) {
default:
FatalError("unreached");
return;
}
}
auto PTestDataStructuresParent::OnMessageReceived(const Message& msg__) -> PTestDataStructuresParent::Result
{
int32_t route__ = msg__.routing_id();
if (MSG_ROUTING_CONTROL != route__) {
IProtocol* routed__ = Lookup(route__);
if (!routed__ || !routed__->GetLifecycleProxy()) {
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Ignored message for dead actor",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
RefPtr<mozilla::ipc::ActorLifecycleProxy> proxy__ =
routed__->GetLifecycleProxy();
return proxy__->Get()->OnMessageReceived(msg__);
}
switch (msg__.type()) {
case PTestDataStructures::Reply_PTestDataStructuresSubConstructor__ID:
{
return MsgProcessed;
}
default:
return MsgNotKnown;
case SHMEM_CREATED_MESSAGE_TYPE:
{
if (!ShmemCreated(msg__)) {
return MsgPayloadError;
}
return MsgProcessed;
}
case SHMEM_DESTROYED_MESSAGE_TYPE:
{
if (!ShmemDestroyed(msg__)) {
return MsgPayloadError;
}
return MsgProcessed;
}
}
}
auto PTestDataStructuresParent::OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) -> PTestDataStructuresParent::Result
{
int32_t route__ = msg__.routing_id();
if (MSG_ROUTING_CONTROL != route__) {
IProtocol* routed__ = Lookup(route__);
if (!routed__ || !routed__->GetLifecycleProxy()) {
return MsgRouteError;
}
RefPtr<mozilla::ipc::ActorLifecycleProxy> proxy__ =
routed__->GetLifecycleProxy();
return proxy__->Get()->OnMessageReceived(msg__, reply__);
}
switch (msg__.type()) {
case PTestDataStructures::Msg_TestArrayOfInt__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfInt", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<int>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'int[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'int[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<int> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfInt(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfInt(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestArrayOfActor__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfActor", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<mozilla::NotNull<PTestDataStructuresSubParent*>>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'NotNull<PTestDataStructuresSub>[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'NotNull<PTestDataStructuresSub>[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<mozilla::NotNull<PTestDataStructuresSubParent*>> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfActor(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfActor(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnion__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnion", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<IntDouble>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'IntDouble'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDouble'");
return MsgValueError;
}
auto maybe__i2 = IPC::ReadParam<IntDouble>((&(reader__)));
if (!maybe__i2) {
FatalError("Error deserializing 'IntDouble'");
return MsgValueError;
}
auto& i2 = *maybe__i2;
// Sentinel = 'i2'
if ((!(((&(reader__)))->ReadSentinel(17170588)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDouble'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
IntDouble o1{};
IntDouble o2{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnion(std::move(i1), std::move(i2), (&(o1)), (&(o2)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnion(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
IPC::WriteParam((&(writer__)), o2);
// Sentinel = 'o2'
((&(writer__)))->WriteSentinel(17957026);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestArrayOfUnion__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfUnion", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<IntDouble>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'IntDouble[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDouble[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<IntDouble> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfUnion(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfUnion(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnionWithArray__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnionWithArray", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<IntDoubleArrays>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
auto maybe__i2 = IPC::ReadParam<IntDoubleArrays>((&(reader__)));
if (!maybe__i2) {
FatalError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
auto& i2 = *maybe__i2;
// Sentinel = 'i2'
if ((!(((&(reader__)))->ReadSentinel(17170588)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
auto maybe__i3 = IPC::ReadParam<IntDoubleArrays>((&(reader__)));
if (!maybe__i3) {
FatalError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
auto& i3 = *maybe__i3;
// Sentinel = 'i3'
if ((!(((&(reader__)))->ReadSentinel(17236125)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDoubleArrays'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
IntDoubleArrays o1{};
IntDoubleArrays o2{};
IntDoubleArrays o3{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnionWithArray(std::move(i1), std::move(i2), std::move(i3), (&(o1)), (&(o2)), (&(o3)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnionWithArray(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
IPC::WriteParam((&(writer__)), o2);
// Sentinel = 'o2'
((&(writer__)))->WriteSentinel(17957026);
IPC::WriteParam((&(writer__)), o3);
// Sentinel = 'o3'
((&(writer__)))->WriteSentinel(18022563);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestArrayOfUnionWithArray__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfUnionWithArray", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<IntDoubleArrays>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'IntDoubleArrays[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'IntDoubleArrays[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<IntDoubleArrays> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfUnionWithArray(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfUnionWithArray(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStructWithActor__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStructWithActor", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__a1 = IPC::ReadParam<ActorWrapper>((&(reader__)));
if (!maybe__a1) {
FatalError("Error deserializing 'ActorWrapper'");
return MsgValueError;
}
auto& a1 = *maybe__a1;
// Sentinel = 'a1'
if ((!(((&(reader__)))->ReadSentinel(16056467)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'ActorWrapper'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
ActorWrapper o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStructWithActor(std::move(a1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStructWithActor(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnionWithActors__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnionWithActors", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<Actors>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'Actors'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Actors'");
return MsgValueError;
}
auto maybe__i2 = IPC::ReadParam<Actors>((&(reader__)));
if (!maybe__i2) {
FatalError("Error deserializing 'Actors'");
return MsgValueError;
}
auto& i2 = *maybe__i2;
// Sentinel = 'i2'
if ((!(((&(reader__)))->ReadSentinel(17170588)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Actors'");
return MsgValueError;
}
auto maybe__i3 = IPC::ReadParam<Actors>((&(reader__)));
if (!maybe__i3) {
FatalError("Error deserializing 'Actors'");
return MsgValueError;
}
auto& i3 = *maybe__i3;
// Sentinel = 'i3'
if ((!(((&(reader__)))->ReadSentinel(17236125)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Actors'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
Actors o1{};
Actors o2{};
Actors o3{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnionWithActors(std::move(i1), std::move(i2), std::move(i3), (&(o1)), (&(o2)), (&(o3)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnionWithActors(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
IPC::WriteParam((&(writer__)), o2);
// Sentinel = 'o2'
((&(writer__)))->WriteSentinel(17957026);
IPC::WriteParam((&(writer__)), o3);
// Sentinel = 'o3'
((&(writer__)))->WriteSentinel(18022563);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestArrayOfUnionWithActors__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfUnionWithActors", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<Actors>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'Actors[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Actors[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<Actors> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfUnionWithActors(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfUnionWithActors(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnions__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnions", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<Unions>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'Unions'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Unions'");
return MsgValueError;
}
auto maybe__i2 = IPC::ReadParam<Unions>((&(reader__)));
if (!maybe__i2) {
FatalError("Error deserializing 'Unions'");
return MsgValueError;
}
auto& i2 = *maybe__i2;
// Sentinel = 'i2'
if ((!(((&(reader__)))->ReadSentinel(17170588)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Unions'");
return MsgValueError;
}
auto maybe__i3 = IPC::ReadParam<Unions>((&(reader__)));
if (!maybe__i3) {
FatalError("Error deserializing 'Unions'");
return MsgValueError;
}
auto& i3 = *maybe__i3;
// Sentinel = 'i3'
if ((!(((&(reader__)))->ReadSentinel(17236125)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Unions'");
return MsgValueError;
}
auto maybe__i4 = IPC::ReadParam<Unions>((&(reader__)));
if (!maybe__i4) {
FatalError("Error deserializing 'Unions'");
return MsgValueError;
}
auto& i4 = *maybe__i4;
// Sentinel = 'i4'
if ((!(((&(reader__)))->ReadSentinel(17301662)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Unions'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
Unions o1{};
Unions o2{};
Unions o3{};
Unions o4{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnions(std::move(i1), std::move(i2), std::move(i3), std::move(i4), (&(o1)), (&(o2)), (&(o3)), (&(o4)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnions(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
IPC::WriteParam((&(writer__)), o2);
// Sentinel = 'o2'
((&(writer__)))->WriteSentinel(17957026);
IPC::WriteParam((&(writer__)), o3);
// Sentinel = 'o3'
((&(writer__)))->WriteSentinel(18022563);
IPC::WriteParam((&(writer__)), o4);
// Sentinel = 'o4'
((&(writer__)))->WriteSentinel(18088100);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestArrayOfUnions__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestArrayOfUnions", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<nsTArray<Unions>>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'Unions[]'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Unions[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
nsTArray<Unions> o1{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestArrayOfUnions(std::move(i1), (&(o1)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestArrayOfUnions(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStruct__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStruct", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i = IPC::ReadParam<SIntDouble>((&(reader__)));
if (!maybe__i) {
FatalError("Error deserializing 'SIntDouble'");
return MsgValueError;
}
auto& i = *maybe__i;
// Sentinel = 'i'
if ((!(((&(reader__)))->ReadSentinel(6946922)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'SIntDouble'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
SIntDouble o{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStruct(std::move(i), (&(o)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStruct(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o);
// Sentinel = 'o'
((&(writer__)))->WriteSentinel(7340144);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStructWithArrays__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStructWithArrays", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i = IPC::ReadParam<SIntDoubleArrays>((&(reader__)));
if (!maybe__i) {
FatalError("Error deserializing 'SIntDoubleArrays'");
return MsgValueError;
}
auto& i = *maybe__i;
// Sentinel = 'i'
if ((!(((&(reader__)))->ReadSentinel(6946922)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'SIntDoubleArrays'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
SIntDoubleArrays o{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStructWithArrays(std::move(i), (&(o)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStructWithArrays(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o);
// Sentinel = 'o'
((&(writer__)))->WriteSentinel(7340144);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStructWithActors__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStructWithActors", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i = IPC::ReadParam<SActors>((&(reader__)));
if (!maybe__i) {
FatalError("Error deserializing 'SActors'");
return MsgValueError;
}
auto& i = *maybe__i;
// Sentinel = 'i'
if ((!(((&(reader__)))->ReadSentinel(6946922)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'SActors'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
SActors o{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStructWithActors(std::move(i), (&(o)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStructWithActors(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o);
// Sentinel = 'o'
((&(writer__)))->WriteSentinel(7340144);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStructs__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStructs", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i = IPC::ReadParam<Structs>((&(reader__)));
if (!maybe__i) {
FatalError("Error deserializing 'Structs'");
return MsgValueError;
}
auto& i = *maybe__i;
// Sentinel = 'i'
if ((!(((&(reader__)))->ReadSentinel(6946922)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Structs'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
Structs o{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStructs(std::move(i), (&(o)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStructs(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o);
// Sentinel = 'o'
((&(writer__)))->WriteSentinel(7340144);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnionWithStructs__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnionWithStructs", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i1 = IPC::ReadParam<WithStructs>((&(reader__)));
if (!maybe__i1) {
FatalError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto& i1 = *maybe__i1;
// Sentinel = 'i1'
if ((!(((&(reader__)))->ReadSentinel(17105051)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto maybe__i2 = IPC::ReadParam<WithStructs>((&(reader__)));
if (!maybe__i2) {
FatalError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto& i2 = *maybe__i2;
// Sentinel = 'i2'
if ((!(((&(reader__)))->ReadSentinel(17170588)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto maybe__i3 = IPC::ReadParam<WithStructs>((&(reader__)));
if (!maybe__i3) {
FatalError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto& i3 = *maybe__i3;
// Sentinel = 'i3'
if ((!(((&(reader__)))->ReadSentinel(17236125)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto maybe__i4 = IPC::ReadParam<WithStructs>((&(reader__)));
if (!maybe__i4) {
FatalError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto& i4 = *maybe__i4;
// Sentinel = 'i4'
if ((!(((&(reader__)))->ReadSentinel(17301662)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto maybe__i5 = IPC::ReadParam<WithStructs>((&(reader__)));
if (!maybe__i5) {
FatalError("Error deserializing 'WithStructs'");
return MsgValueError;
}
auto& i5 = *maybe__i5;
// Sentinel = 'i5'
if ((!(((&(reader__)))->ReadSentinel(17367199)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithStructs'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
WithStructs o1{};
WithStructs o2{};
WithStructs o3{};
WithStructs o4{};
WithStructs o5{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnionWithStructs(std::move(i1), std::move(i2), std::move(i3), std::move(i4), std::move(i5), (&(o1)), (&(o2)), (&(o3)), (&(o4)), (&(o5)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnionWithStructs(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o1);
// Sentinel = 'o1'
((&(writer__)))->WriteSentinel(17891489);
IPC::WriteParam((&(writer__)), o2);
// Sentinel = 'o2'
((&(writer__)))->WriteSentinel(17957026);
IPC::WriteParam((&(writer__)), o3);
// Sentinel = 'o3'
((&(writer__)))->WriteSentinel(18022563);
IPC::WriteParam((&(writer__)), o4);
// Sentinel = 'o4'
((&(writer__)))->WriteSentinel(18088100);
IPC::WriteParam((&(writer__)), o5);
// Sentinel = 'o5'
((&(writer__)))->WriteSentinel(18153637);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestStructWithUnions__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestStructWithUnions", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__i = IPC::ReadParam<WithUnions>((&(reader__)));
if (!maybe__i) {
FatalError("Error deserializing 'WithUnions'");
return MsgValueError;
}
auto& i = *maybe__i;
// Sentinel = 'i'
if ((!(((&(reader__)))->ReadSentinel(6946922)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'WithUnions'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
WithUnions o{};
mozilla::ipc::IPCResult __ok = (this)->RecvTestStructWithUnions(std::move(i), (&(o)));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestStructWithUnions(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
IPC::WriteParam((&(writer__)), o);
// Sentinel = 'o'
((&(writer__)))->WriteSentinel(7340144);
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestUnionWithCxx__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestUnionWithCxx", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__ops = IPC::ReadParam<nsTArray<Op>>((&(reader__)));
if (!maybe__ops) {
FatalError("Error deserializing 'Op[]'");
return MsgValueError;
}
auto& ops = *maybe__ops;
// Sentinel = 'ops'
if ((!(((&(reader__)))->ReadSentinel(44237139)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'Op[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
mozilla::ipc::IPCResult __ok = (this)->RecvTestUnionWithCxx(std::move(ops));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestUnionWithCxx(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
case PTestDataStructures::Msg_TestNsIntRegion__ID:
{
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Received ",
(&(msg__))->type(),
mozilla::ipc::MessageDirection::eReceiving);
}
AUTO_PROFILER_LABEL("PTestDataStructures::Msg_TestNsIntRegion", OTHER);
IPC::MessageReader reader__{
msg__,
this};
auto maybe__ops = IPC::ReadParam<nsTArray<nsIntRegion>>((&(reader__)));
if (!maybe__ops) {
FatalError("Error deserializing 'nsIntRegion[]'");
return MsgValueError;
}
auto& ops = *maybe__ops;
// Sentinel = 'ops'
if ((!(((&(reader__)))->ReadSentinel(44237139)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'nsIntRegion[]'");
return MsgValueError;
}
reader__.EndRead();
int32_t id__ = MSG_ROUTING_CONTROL;
mozilla::ipc::IPCResult __ok = (this)->RecvTestNsIntRegion(std::move(ops));
if ((!(__ok))) {
mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
// Error handled in mozilla::ipc::IPCResult
return MsgProcessingError;
}
reply__ = PTestDataStructures::Reply_TestNsIntRegion(id__);
IPC::MessageWriter writer__{
(*(reply__)),
this};
if (mozilla::ipc::LoggingEnabledFor("PTestDataStructures", mozilla::ipc::ParentSide)) {
mozilla::ipc::LogMessageForProtocol(
"PTestDataStructuresParent",
this->ToplevelProtocol()->OtherPidMaybeInvalid(),
"Sending reply ",
reply__->type(),
mozilla::ipc::MessageDirection::eSending);
}
return MsgProcessed;
}
default:
return MsgNotKnown;
}
}
} // namespace _ipdltest
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::_ipdltest::PTestDataStructuresParent*>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
MOZ_RELEASE_ASSERT(
aWriter->GetActor(),
"Cannot serialize managed actors without an actor");
int32_t id;
if (!aVar) {
id = 0; // kNullActorId
} else {
id = aVar->Id();
if (id == 1) { // kFreedActorId
aVar->FatalError("Actor has been |delete|d");
}
MOZ_RELEASE_ASSERT(
aWriter->GetActor()->GetIPCChannel() == aVar->GetIPCChannel(),
"Actor must be from the same channel as the"
" actor it's being sent over");
MOZ_RELEASE_ASSERT(
aVar->CanSend(),
"Actor must still be open when sending");
}
IPC::WriteParam(aWriter, id);
}
auto ParamTraits<::mozilla::_ipdltest::PTestDataStructuresParent*>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
MOZ_RELEASE_ASSERT(
aReader->GetActor(),
"Cannot deserialize managed actors without an actor");
mozilla::Maybe<mozilla::ipc::IProtocol*> actor = aReader->GetActor()
->ReadActor(aReader, true, "PTestDataStructures", PTestDataStructuresMsgStart);
if (actor.isSome()) {
return static_cast<::mozilla::_ipdltest::PTestDataStructuresParent*>(actor.ref());
}
return {};
}
} // namespace IPC