Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PProfilerChild_h
#define PProfilerChild_h
#include "mozilla/PProfiler.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
namespace mozilla {
class TimeStamp;
} // namespace mozilla
namespace mozilla {
class PProfilerChild :
public mozilla::ipc::IToplevelProtocol
{
private:
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef mozilla::ipc::ByteBuf ByteBuf;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef mozilla::ipc::FileDescriptor FileDescriptor;
typedef mozilla::GatherProfileProgress GatherProfileProgress;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef base::ProcessId ProcessId;
typedef mozilla::ProfileBufferChunkManagerUpdate ProfileBufferChunkManagerUpdate;
typedef mozilla::ProfileBufferChunkMetadata ProfileBufferChunkMetadata;
typedef mozilla::ProfilerInitParams ProfilerInitParams;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef mozilla::ipc::Shmem Shmem;
typedef mozilla::TimeStamp TimeStamp;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
public:
typedef std::function<void(const bool&)> StartResolver;
typedef std::function<void(const bool&)> EnsureStartedResolver;
typedef std::function<void(const bool&)> StopResolver;
typedef std::function<void(const bool&)> PauseResolver;
typedef std::function<void(const bool&)> ResumeResolver;
typedef std::function<void(const bool&)> PauseSamplingResolver;
typedef std::function<void(const bool&)> ResumeSamplingResolver;
typedef std::function<void(const bool&)> WaitOnePeriodicSamplingResolver;
typedef std::function<void(const ProfileBufferChunkManagerUpdate&)> AwaitNextChunkManagerUpdateResolver;
typedef std::function<void(Shmem&&)> GatherProfileResolver;
typedef std::function<void(const GatherProfileProgress&)> GetGatherProfileProgressResolver;
protected:
virtual mozilla::ipc::IPCResult
RecvStart(
const ProfilerInitParams& params,
StartResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvEnsureStarted(
const ProfilerInitParams& params,
EnsureStartedResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvStop(StopResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvPause(PauseResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvResume(ResumeResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvPauseSampling(PauseSamplingResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvResumeSampling(ResumeSamplingResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvWaitOnePeriodicSampling(WaitOnePeriodicSamplingResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvAwaitNextChunkManagerUpdate(AwaitNextChunkManagerUpdateResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvDestroyReleasedChunksAtOrBefore(const TimeStamp& timeStamp) = 0;
virtual mozilla::ipc::IPCResult
RecvGatherProfile(GatherProfileResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvGetGatherProfileProgress(GetGatherProfileProgressResolver&& aResolve) = 0;
virtual mozilla::ipc::IPCResult
RecvClearAllPages() = 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 PProfilerChild();
virtual ~PProfilerChild();
public:
void
AllManagedActors(nsTArray<RefPtr<mozilla::ipc::ActorLifecycleProxy>>& arr__) const override;
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;
Result
OnCallReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
void
OnChannelClose() override;
void
OnChannelError() override;
private:
void
ClearSubtree();
};
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <mozilla::PProfilerChild*>
{
typedef mozilla::PProfilerChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static bool
Read(
IPC::MessageReader* aReader,
paramType* aVar);
};
} // namespace IPC
#endif // ifndef PProfilerChild_h