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

#ifndef PGMPStorage_h
#define PGMPStorage_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/gmp/GMPTypes.h"

namespace mozilla {
namespace gmp {
class PGMPStorageParent;
} // namespace gmp
} // namespace mozilla
namespace mozilla {
namespace gmp {
class PGMPStorageChild;
} // namespace gmp
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PGMPStorageChild and PGMPStorageParent
//
namespace mozilla {
namespace gmp {
namespace PGMPStorage {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::gmp::PGMPStorageParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::gmp::PGMPStorageChild>* aChild);

enum MessageType {
    PGMPStorageStart = PGMPStorageMsgStart << 16,
    Msg_OpenComplete__ID,
    Msg_ReadComplete__ID,
    Msg_WriteComplete__ID,
    Msg_Shutdown__ID,
    Msg_Open__ID,
    Msg_Read__ID,
    Msg_Write__ID,
    Msg_Close__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    PGMPStorageEnd
};

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

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

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

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_Close(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 PGMPStorage
} // namespace gmp
} // namespace mozilla

#endif // ifndef PGMPStorage_h
