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

#ifndef PServiceWorkerRegistration_h
#define PServiceWorkerRegistration_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/ClientIPCTypes.h"
#include "mozilla/dom/DOMTypes.h"
#include "mozilla/dom/IPCNavigationPreloadState.h"
#include "mozilla/dom/IPCServiceWorkerRegistrationDescriptor.h"

namespace mozilla {
namespace dom {
class PServiceWorkerRegistrationParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PServiceWorkerRegistrationChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PServiceWorkerRegistrationChild and PServiceWorkerRegistrationParent
//
namespace mozilla {
namespace dom {
namespace PServiceWorkerRegistration {

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

enum MessageType {
    PServiceWorkerRegistrationStart = PServiceWorkerRegistrationMsgStart << 16,
    Msg_Unregister__ID,
    Reply_Unregister__ID,
    Msg_Update__ID,
    Reply_Update__ID,
    Msg_GetNotifications__ID,
    Reply_GetNotifications__ID,
    Msg_SetNavigationPreloadEnabled__ID,
    Reply_SetNavigationPreloadEnabled__ID,
    Msg_SetNavigationPreloadHeader__ID,
    Reply_SetNavigationPreloadHeader__ID,
    Msg_GetNavigationPreloadState__ID,
    Reply_GetNavigationPreloadState__ID,
    Msg_UpdateState__ID,
    Msg_FireUpdateFound__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PServiceWorkerRegistrationEnd
};

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_FireUpdateFound(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 PServiceWorkerRegistration
} // namespace dom
} // namespace mozilla

#endif // ifndef PServiceWorkerRegistration_h
