Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PTestDataStructuresChild_h
#define PTestDataStructuresChild_h
#include "mozilla/_ipdltest/PTestDataStructures.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "nsRegion.h"
namespace mozilla {
namespace _ipdltest {
class PTestDataStructuresSubChild;
} // namespace _ipdltest
} // namespace mozilla
namespace mozilla {
namespace _ipdltest {
class PTestDataStructuresSubParent;
} // namespace _ipdltest
} // namespace mozilla
namespace mozilla {
namespace _ipdltest {
class PTestDataStructuresSubChild;
} // namespace _ipdltest
} // namespace mozilla
namespace mozilla {
struct null_t;
} // namespace mozilla
namespace mozilla {
namespace _ipdltest {
class PTestDataStructuresChild :
public mozilla::ipc::IToplevelProtocol
{
private:
friend class ::mozilla::_ipdltest::PTestDataStructuresSubChild;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::_foo::ActorWrapper ActorWrapper;
typedef ::mozilla::_foo::Actors Actors;
typedef ::mozilla::_foo::Attrs Attrs;
typedef ::mozilla::_foo::BarAttrs BarAttrs;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::_foo::CommonAttrs CommonAttrs;
typedef ::mozilla::_foo::Empty Empty;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::_foo::FooAttrs FooAttrs;
typedef ::mozilla::_foo::IntDouble IntDouble;
typedef ::mozilla::_foo::IntDoubleArrays IntDoubleArrays;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::_foo::Op Op;
typedef ::mozilla::_ipdltest::PTestDataStructuresSubChild PTestDataStructuresSubChild;
typedef ::mozilla::_ipdltest::PTestDataStructuresSubParent PTestDataStructuresSubParent;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::_foo::SActors SActors;
typedef ::mozilla::_foo::SIntDouble SIntDouble;
typedef ::mozilla::_foo::SIntDoubleArrays SIntDoubleArrays;
typedef ::mozilla::_foo::SetAttrs SetAttrs;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::_foo::ShmemStruct ShmemStruct;
typedef ::mozilla::_foo::ShmemUnion ShmemUnion;
typedef ::mozilla::_foo::SpecificAttrs SpecificAttrs;
typedef ::mozilla::_foo::Structs Structs;
typedef ::mozilla::_foo::Unions Unions;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::_foo::WithStructs WithStructs;
typedef ::mozilla::_foo::WithUnions WithUnions;
typedef ::int16_t int16_t;
typedef ::int32_t int32_t;
typedef ::int64_t int64_t;
typedef ::int8_t int8_t;
typedef ::intptr_t intptr_t;
typedef ::nsCString nsCString;
typedef ::nsIntRegion nsIntRegion;
typedef ::nsString nsString;
typedef ::nsresult nsresult;
typedef ::mozilla::null_t null_t;
typedef ::uint16_t uint16_t;
typedef ::uint32_t uint32_t;
typedef ::uint64_t uint64_t;
typedef ::uint8_t uint8_t;
typedef ::uintptr_t uintptr_t;
protected:
virtual mozilla::ipc::IPCResult
RecvPTestDataStructuresSubConstructor(
PTestDataStructuresSubChild* actor,
const int& i);
virtual mozilla::ipc::IPCResult
RecvStart() = 0;
virtual already_AddRefed<PTestDataStructuresSubChild>
AllocPTestDataStructuresSubChild(const int& i) = 0;
void
ProcessingError(
Result aCode,
const char* aReason) override;
bool
ShouldContinueFromReplyTimeout() override;
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PTestDataStructuresChild();
virtual ~PTestDataStructuresChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
void
ManagedPTestDataStructuresSubChild(nsTArray<PTestDataStructuresSubChild*>& aArr) const;
const ManagedContainer<PTestDataStructuresSubChild>&
ManagedPTestDataStructuresSubChild() const;
uint32_t
AllManagedActorsCount() const override;
ManagedEndpoint<PTestDataStructuresSubParent>
OpenPTestDataStructuresSubEndpoint(PTestDataStructuresSubChild* aActor);
bool
BindPTestDataStructuresSubEndpoint(
ManagedEndpoint<PTestDataStructuresSubChild> aEndpoint,
PTestDataStructuresSubChild* aActor);
bool
SendTestArrayOfInt(
mozilla::Span<int const> i1,
nsTArray<int>* o1);
bool
SendTestArrayOfActor(
mozilla::Span<mozilla::NotNull<PTestDataStructuresSubChild*> const> i1,
nsTArray<mozilla::NotNull<PTestDataStructuresSubChild*>>* o1);
bool
SendTestUnion(
const IntDouble& i1,
const IntDouble& i2,
IntDouble* o1,
IntDouble* o2);
bool
SendTestArrayOfUnion(
mozilla::Span<IntDouble const> i1,
nsTArray<IntDouble>* o1);
bool
SendTestUnionWithArray(
const IntDoubleArrays& i1,
const IntDoubleArrays& i2,
const IntDoubleArrays& i3,
IntDoubleArrays* o1,
IntDoubleArrays* o2,
IntDoubleArrays* o3);
bool
SendTestArrayOfUnionWithArray(
mozilla::Span<IntDoubleArrays const> i1,
nsTArray<IntDoubleArrays>* o1);
bool
SendTestStructWithActor(
const ActorWrapper& a1,
ActorWrapper* o1);
bool
SendTestUnionWithActors(
const Actors& i1,
const Actors& i2,
const Actors& i3,
Actors* o1,
Actors* o2,
Actors* o3);
bool
SendTestArrayOfUnionWithActors(
mozilla::Span<Actors const> i1,
nsTArray<Actors>* o1);
bool
SendTestUnions(
const Unions& i1,
const Unions& i2,
const Unions& i3,
const Unions& i4,
Unions* o1,
Unions* o2,
Unions* o3,
Unions* o4);
bool
SendTestArrayOfUnions(
mozilla::Span<Unions const> i1,
nsTArray<Unions>* o1);
bool
SendTestStruct(
const SIntDouble& i,
SIntDouble* o);
bool
SendTestStructWithArrays(
const SIntDoubleArrays& i,
SIntDoubleArrays* o);
bool
SendTestStructWithActors(
const SActors& i,
SActors* o);
bool
SendTestStructs(
const Structs& i,
Structs* o);
bool
SendTestUnionWithStructs(
const WithStructs& i1,
const WithStructs& i2,
const WithStructs& i3,
const WithStructs& i4,
const WithStructs& i5,
WithStructs* o1,
WithStructs* o2,
WithStructs* o3,
WithStructs* o4,
WithStructs* o5);
bool
SendTestStructWithUnions(
const WithUnions& i,
WithUnions* o);
bool
SendTestUnionWithCxx(mozilla::Span<Op const> ops);
bool
SendTestNsIntRegion(mozilla::Span<nsIntRegion const> ops);
void
RemoveManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
void
DoomSubtree() override;
IProtocol*
PeekManagedActor() override;
private:
ManagedContainer<PTestDataStructuresSubChild> mManagedPTestDataStructuresSubChild;
};
} // namespace _ipdltest
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::_ipdltest::PTestDataStructuresChild*>
{
typedef ::mozilla::_ipdltest::PTestDataStructuresChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PTestDataStructuresChild_h