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

#ifndef PServiceWorkerManager_h
#define PServiceWorkerManager_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/ipc/PBackgroundSharedTypes.h"
#include "mozilla/dom/ServiceWorkerRegistrarTypes.h"

namespace mozilla {
namespace dom {
class PServiceWorkerManagerParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PServiceWorkerManagerChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PServiceWorkerManagerChild and PServiceWorkerManagerParent
//
namespace mozilla {
namespace dom {
namespace PServiceWorkerManager {

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

enum MessageType {
    PServiceWorkerManagerStart = PServiceWorkerManagerMsgStart << 16,
    Msg_Register__ID,
    Msg_Unregister__ID,
    Msg_PropagateUnregister__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PServiceWorkerManagerEnd
};

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

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

mozilla::UniquePtr<IPC::Message>
Msg_PropagateUnregister(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);



} // namespace PServiceWorkerManager
} // namespace dom
} // namespace mozilla

#endif // ifndef PServiceWorkerManager_h
