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

#ifndef PBackgroundIDBTransaction_h
#define PBackgroundIDBTransaction_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/indexedDB/PBackgroundIDBSharedTypes.h"

namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBTransactionParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBTransactionChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla

//-----------------------------------------------------------------------------
// Code common to PBackgroundIDBTransactionChild and PBackgroundIDBTransactionParent
//
namespace mozilla {
namespace dom {
namespace indexedDB {
namespace PBackgroundIDBTransaction {

nsresult
CreateEndpoints(
        mozilla::ipc::EndpointProcInfo aParentDestInfo,
        mozilla::ipc::EndpointProcInfo aChildDestInfo,
        mozilla::ipc::Endpoint<::mozilla::dom::indexedDB::PBackgroundIDBTransactionParent>* aParent,
        mozilla::ipc::Endpoint<::mozilla::dom::indexedDB::PBackgroundIDBTransactionChild>* aChild);

enum MessageType {
    PBackgroundIDBTransactionStart = PBackgroundIDBTransactionMsgStart << 16,
    Msg_DeleteMe__ID,
    Msg_Commit__ID,
    Msg_Abort__ID,
    Msg_PBackgroundIDBCursorConstructor__ID,
    Reply_PBackgroundIDBCursorConstructor__ID,
    Msg_PBackgroundIDBRequestConstructor__ID,
    Reply_PBackgroundIDBRequestConstructor__ID,
    Msg___delete____ID,
    Reply___delete____ID,
    Msg_Complete__ID,
    PBackgroundIDBTransactionEnd
};

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

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

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

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

mozilla::UniquePtr<IPC::Message>
Msg_PBackgroundIDBRequestConstructor(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_PBackgroundIDBRequestConstructor(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_Complete(IPC::Message::routeid_t routingId);



} // namespace PBackgroundIDBTransaction
} // namespace indexedDB
} // namespace dom
} // namespace mozilla

#endif // ifndef PBackgroundIDBTransaction_h
