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

#ifndef PBackgroundStorage_h
#define PBackgroundStorage_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"

namespace mozilla {
namespace dom {
class PBackgroundStorageParent;
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class PBackgroundStorageChild;
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PBackgroundStorageChild and PBackgroundStorageParent
//
namespace mozilla {
namespace dom {
namespace PBackgroundStorage {

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

enum MessageType {
    PBackgroundStorageStart = PBackgroundStorageMsgStart << 16,
    Msg_DeleteMe__ID,
    Msg_Preload__ID,
    Reply_Preload__ID,
    Msg_AsyncPreload__ID,
    Msg_AsyncGetUsage__ID,
    Msg_AsyncAddItem__ID,
    Msg_AsyncUpdateItem__ID,
    Msg_AsyncRemoveItem__ID,
    Msg_AsyncClear__ID,
    Msg_AsyncFlush__ID,
    Msg_Startup__ID,
    Msg_ClearAll__ID,
    Msg_ClearMatchingOrigin__ID,
    Msg_ClearMatchingOriginAttributes__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_Observe__ID,
    Msg_OriginsHavingData__ID,
    Msg_LoadItem__ID,
    Msg_LoadDone__ID,
    Msg_LoadUsage__ID,
    Msg_Error__ID,
    PBackgroundStorageEnd
};

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

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

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

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

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

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_ClearMatchingOriginAttributes(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_Observe(IPC::Message::routeid_t routingId);

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

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

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

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

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



} // namespace PBackgroundStorage
} // namespace dom
} // namespace mozilla

#endif // ifndef PBackgroundStorage_h
