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

#ifndef PRemoteWorker_h
#define PRemoteWorker_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/ServiceWorkerOpArgs.h"
#include "mozilla/dom/SharedWorkerOpArgs.h"
#include "mozilla/dom/RemoteWorkerTypes.h"

namespace mozilla {
namespace dom {
class PRemoteWorkerParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PRemoteWorkerChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PRemoteWorkerChild and PRemoteWorkerParent
//
namespace mozilla {
namespace dom {
namespace PRemoteWorker {

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

enum MessageType {
    PRemoteWorkerStart = PRemoteWorkerMsgStart << 16,
    Msg_Created__ID,
    Msg_Error__ID,
    Msg_NotifyLock__ID,
    Msg_NotifyWebTransport__ID,
    Msg_Close__ID,
    Msg_SetServiceWorkerSkipWaitingFlag__ID,
    Reply_SetServiceWorkerSkipWaitingFlag__ID,
    Msg_PFetchEventOpProxyConstructor__ID,
    Reply_PFetchEventOpProxyConstructor__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_ExecOp__ID,
    Msg_ExecServiceWorkerOp__ID,
    Reply_ExecServiceWorkerOp__ID,
    PRemoteWorkerEnd
};

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

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

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

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

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

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

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

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

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

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



} // namespace PRemoteWorker
} // namespace dom
} // namespace mozilla

#endif // ifndef PRemoteWorker_h
