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

#ifndef PSessionStore_h
#define PSessionStore_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/sessionstore/SessionStoreTypes.h"

namespace mozilla {
namespace dom {
class PSessionStoreParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PSessionStoreChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PSessionStoreChild and PSessionStoreParent
//
namespace mozilla {
namespace dom {
namespace PSessionStore {

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

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

enum MessageType {
    PSessionStoreStart = PSessionStoreMsgStart << 16,
    Msg_SessionStoreUpdate__ID,
    Msg_IncrementalSessionStoreUpdate__ID,
    Msg_ResetSessionStore__ID,
    Msg_FlushTabState__ID,
    Reply_FlushTabState__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PSessionStoreEnd
};

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_FlushTabState(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_FlushTabState(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 PSessionStore
} // namespace dom
} // namespace mozilla

#endif // ifndef PSessionStore_h
