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

#ifndef PRemoteWorkerDebugger_h
#define PRemoteWorkerDebugger_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"
#include "mozilla/dom/RemoteWorkerTypes.h"

namespace mozilla {
namespace dom {
class PRemoteWorkerDebuggerParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PRemoteWorkerDebuggerChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PRemoteWorkerDebuggerChild and PRemoteWorkerDebuggerParent
//
namespace mozilla {
namespace dom {
namespace PRemoteWorkerDebugger {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::dom::PRemoteWorkerDebuggerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::PRemoteWorkerDebuggerChild>* aChild);

nsresult
CreateEndpoints(
        mozilla::ipc::Endpoint<::mozilla::dom::PRemoteWorkerDebuggerParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::PRemoteWorkerDebuggerChild>* aChild);

enum MessageType {
    PRemoteWorkerDebuggerStart = PRemoteWorkerDebuggerMsgStart << 16,
    Msg_Unregister__ID,
    Msg_PostMessageToDebugger__ID,
    Msg_ReportErrorToDebugger__ID,
    Msg_SetAsInitialized__ID,
    Msg_SetAsClosed__ID,
    Msg_AddWindowID__ID,
    Msg_RemoveWindowID__ID,
    Msg_RegisterDone__ID,
    Msg_UnregisterDone__ID,
    Msg_Initialize__ID,
    Msg_PostMessage__ID,
    Msg_SetDebuggerReady__ID,
    PRemoteWorkerDebuggerEnd
};

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

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

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

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

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

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

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

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

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

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

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

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



} // namespace PRemoteWorkerDebugger
} // namespace dom
} // namespace mozilla

#endif // ifndef PRemoteWorkerDebugger_h
