//
// Automatically generated by ipdlc.
// Edit at your own risk
//

#ifndef PCanvasManager_h
#define PCanvasManager_h

#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"

namespace mozilla {
namespace gfx {
class PCanvasManagerParent;
} // namespace gfx
} // namespace mozilla
namespace mozilla {
namespace gfx {
class PCanvasManagerChild;
} // namespace gfx
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PCanvasManagerChild and PCanvasManagerParent
//
namespace mozilla {
namespace gfx {
namespace PCanvasManager {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::gfx::PCanvasManagerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::gfx::PCanvasManagerChild>* aChild);

enum MessageType {
    PCanvasManagerStart = PCanvasManagerMsgStart << 16,
    Msg_PCanvasConstructor__ID,
    Reply_PCanvasConstructor__ID,
    Msg_PWebGLConstructor__ID,
    Reply_PWebGLConstructor__ID,
    Msg_PWebGPUConstructor__ID,
    Reply_PWebGPUConstructor__ID,
    Msg_Initialize__ID,
    Msg_GetSnapshot__ID,
    Reply_GetSnapshot__ID,
    PCanvasManagerEnd
};

mozilla::UniquePtr<IPC::Message>
Msg_PCanvasConstructor(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_PCanvasConstructor(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_PWebGLConstructor(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_PWebGLConstructor(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_PWebGPUConstructor(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_PWebGPUConstructor(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_Initialize(IPC::Message::routeid_t routingId);

mozilla::UniquePtr<IPC::Message>
Msg_GetSnapshot(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_GetSnapshot(IPC::Message::routeid_t routingId);



} // namespace PCanvasManager
} // namespace gfx
} // namespace mozilla

#endif // ifndef PCanvasManager_h
