Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PBackgroundIDBDatabaseChild_h
#define PBackgroundIDBDatabaseChild_h
#include "mozilla/dom/indexedDB/PBackgroundIDBDatabase.h"
#ifdef DEBUG
#include "prenv.h"
#endif // DEBUG
#include "mozilla/Tainting.h"
#include "mozilla/ipc/MessageChannel.h"
#include "mozilla/ipc/ProtocolUtils.h"
// Headers for things that cannot be forward declared
#include "mozilla/RemoteLazyInputStream.h"
#include "mozilla/dom/IDBCursor.h"
#include "mozilla/dom/IDBTransaction.h"
#include "mozilla/dom/IndexedDatabase.h"
#include "mozilla/dom/quota/PersistenceType.h"
#include "mozilla/ipc/DataPipe.h"
#include "mozilla/ipc/SerializedStructuredCloneBuffer.h"
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseFileChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseFileParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBTransactionChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBTransactionParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBVersionChangeTransactionChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBVersionChangeTransactionParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseFileChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryRequestChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBTransactionChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBVersionChangeTransactionChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
class RemoteLazyInputStream;
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
struct null_t;
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class Key;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class KeyPath;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
struct null_t;
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseFileChild;
friend class ::mozilla::dom::indexedDB::PBackgroundIDBFactoryChild;
friend class ::mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestChild;
friend class ::mozilla::dom::indexedDB::PBackgroundIDBTransactionChild;
friend class ::mozilla::dom::indexedDB::PBackgroundIDBVersionChangeTransactionChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PBackgroundIDBDatabaseMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::ipc::BufferedInputStreamParams BufferedInputStreamParams;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::dom::indexedDB::CommonIndexOpenCursorParams CommonIndexOpenCursorParams;
typedef ::mozilla::dom::indexedDB::CommonOpenCursorParams CommonOpenCursorParams;
typedef ::mozilla::ipc::DataPipeReceiver DataPipeReceiver;
typedef ::mozilla::ipc::DataPipeReceiverStreamParams DataPipeReceiverStreamParams;
typedef ::mozilla::dom::indexedDB::DatabaseMetadata DatabaseMetadata;
typedef ::mozilla::dom::indexedDB::DatabaseSpec DatabaseSpec;
typedef ::mozilla::dom::IDBCursor::Direction Direction;
typedef ::mozilla::dom::IDBTransaction::Durability Durability;
typedef ::mozilla::ipc::EncryptedFileInputStreamParams EncryptedFileInputStreamParams;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::dom::indexedDB::FileAddInfo FileAddInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::ipc::FileInputStreamParams FileInputStreamParams;
typedef ::mozilla::dom::indexedDB::StructuredCloneFileBase::FileType FileType;
typedef ::mozilla::ipc::HeaderEntry HeaderEntry;
typedef ::mozilla::dom::IPCBlob IPCBlob;
typedef ::mozilla::dom::IPCFile IPCFile;
typedef ::mozilla::dom::indexedDB::IndexCountParams IndexCountParams;
typedef ::mozilla::dom::indexedDB::IndexGetAllKeysParams IndexGetAllKeysParams;
typedef ::mozilla::dom::indexedDB::IndexGetAllParams IndexGetAllParams;
typedef ::mozilla::dom::indexedDB::IndexGetKeyParams IndexGetKeyParams;
typedef ::mozilla::dom::indexedDB::IndexGetParams IndexGetParams;
typedef ::mozilla::dom::indexedDB::IndexMetadata IndexMetadata;
typedef ::mozilla::dom::indexedDB::IndexOpenCursorParams IndexOpenCursorParams;
typedef ::mozilla::dom::indexedDB::IndexOpenKeyCursorParams IndexOpenKeyCursorParams;
typedef ::mozilla::dom::indexedDB::IndexUpdateInfo IndexUpdateInfo;
typedef ::mozilla::ipc::InputStreamLengthWrapperParams InputStreamLengthWrapperParams;
typedef ::mozilla::ipc::InputStreamParams InputStreamParams;
typedef ::mozilla::dom::indexedDB::Key Key;
typedef ::mozilla::dom::indexedDB::KeyPath KeyPath;
typedef ::mozilla::dom::indexedDB::LoggingInfo LoggingInfo;
typedef ::mozilla::ipc::MIMEInputStreamParams MIMEInputStreamParams;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::dom::IDBTransaction::Mode Mode;
typedef ::mozilla::ipc::MultiplexInputStreamParams MultiplexInputStreamParams;
typedef ::mozilla::dom::indexedDB::NullableBlob NullableBlob;
typedef ::mozilla::dom::indexedDB::ObjectStoreAddParams ObjectStoreAddParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreAddPutParams ObjectStoreAddPutParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreClearParams ObjectStoreClearParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreCountParams ObjectStoreCountParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreDeleteParams ObjectStoreDeleteParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreGetAllKeysParams ObjectStoreGetAllKeysParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreGetAllParams ObjectStoreGetAllParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreGetKeyParams ObjectStoreGetKeyParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreGetParams ObjectStoreGetParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreMetadata ObjectStoreMetadata;
typedef ::mozilla::dom::indexedDB::ObjectStoreOpenCursorParams ObjectStoreOpenCursorParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreOpenKeyCursorParams ObjectStoreOpenKeyCursorParams;
typedef ::mozilla::dom::indexedDB::ObjectStorePutParams ObjectStorePutParams;
typedef ::mozilla::dom::indexedDB::ObjectStoreSpec ObjectStoreSpec;
typedef ::mozilla::dom::indexedDB::OpenCursorParams OpenCursorParams;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseFileChild PBackgroundIDBDatabaseFileChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseFileParent PBackgroundIDBDatabaseFileParent;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBFactoryChild PBackgroundIDBFactoryChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBFactoryParent PBackgroundIDBFactoryParent;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBTransactionChild PBackgroundIDBTransactionChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBTransactionParent PBackgroundIDBTransactionParent;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBVersionChangeTransactionChild PBackgroundIDBVersionChangeTransactionChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBVersionChangeTransactionParent PBackgroundIDBVersionChangeTransactionParent;
typedef ::mozilla::dom::quota::PersistenceType PersistenceType;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::RemoteLazyInputStream RemoteLazyInputStream;
typedef ::mozilla::ipc::RemoteLazyInputStreamParams RemoteLazyInputStreamParams;
typedef ::mozilla::RemoteLazyStream RemoteLazyStream;
typedef ::mozilla::dom::indexedDB::RequestParams RequestParams;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::dom::indexedDB::SerializedKeyRange SerializedKeyRange;
typedef ::mozilla::SerializedStructuredCloneBuffer SerializedStructuredCloneBuffer;
typedef ::mozilla::dom::indexedDB::SerializedStructuredCloneFile SerializedStructuredCloneFile;
typedef ::mozilla::dom::indexedDB::SerializedStructuredCloneReadInfo SerializedStructuredCloneReadInfo;
typedef ::mozilla::dom::indexedDB::SerializedStructuredCloneWriteInfo SerializedStructuredCloneWriteInfo;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::ipc::SlicedInputStreamParams SlicedInputStreamParams;
typedef ::mozilla::ipc::StringInputStreamParams StringInputStreamParams;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::int16_t int16_t;
typedef ::int32_t int32_t;
typedef ::int64_t int64_t;
typedef ::int8_t int8_t;
typedef ::intptr_t intptr_t;
typedef ::nsCString nsCString;
typedef ::nsString nsString;
typedef ::nsresult nsresult;
typedef ::mozilla::null_t null_t;
typedef ::uint16_t uint16_t;
typedef ::uint32_t uint32_t;
typedef ::uint64_t uint64_t;
typedef ::uint8_t uint8_t;
typedef ::uintptr_t uintptr_t;
typedef ::mozilla::void_t void_t;
protected:
virtual mozilla::ipc::IPCResult
Recv__delete__();
virtual mozilla::ipc::IPCResult
RecvPBackgroundIDBVersionChangeTransactionConstructor(
PBackgroundIDBVersionChangeTransactionChild* actor,
const uint64_t& currentVersion,
const uint64_t& requestedVersion,
const int64_t& nextObjectStoreId,
const int64_t& nextIndexId);
public:
typedef mozilla::ipc::IProtocol IProtocol;
typedef IPC::Message Message;
typedef base::ProcessHandle ProcessHandle;
typedef mozilla::ipc::MessageChannel MessageChannel;
typedef mozilla::ipc::SharedMemory SharedMemory;
public:
MOZ_IMPLICIT PBackgroundIDBDatabaseChild();
virtual ~PBackgroundIDBDatabaseChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PBackgroundIDBFactoryChild*
Manager() const;
void
ManagedPBackgroundIDBDatabaseFileChild(nsTArray<PBackgroundIDBDatabaseFileChild*>& aArr) const;
const ManagedContainer<PBackgroundIDBDatabaseFileChild>&
ManagedPBackgroundIDBDatabaseFileChild() const;
void
ManagedPBackgroundIDBTransactionChild(nsTArray<PBackgroundIDBTransactionChild*>& aArr) const;
const ManagedContainer<PBackgroundIDBTransactionChild>&
ManagedPBackgroundIDBTransactionChild() const;
void
ManagedPBackgroundIDBVersionChangeTransactionChild(nsTArray<PBackgroundIDBVersionChangeTransactionChild*>& aArr) const;
const ManagedContainer<PBackgroundIDBVersionChangeTransactionChild>&
ManagedPBackgroundIDBVersionChangeTransactionChild() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
ManagedEndpoint<PBackgroundIDBDatabaseFileParent>
OpenPBackgroundIDBDatabaseFileEndpoint(PBackgroundIDBDatabaseFileChild* aActor);
bool
BindPBackgroundIDBDatabaseFileEndpoint(
ManagedEndpoint<PBackgroundIDBDatabaseFileChild> aEndpoint,
PBackgroundIDBDatabaseFileChild* aActor);
ManagedEndpoint<PBackgroundIDBTransactionParent>
OpenPBackgroundIDBTransactionEndpoint(PBackgroundIDBTransactionChild* aActor);
bool
BindPBackgroundIDBTransactionEndpoint(
ManagedEndpoint<PBackgroundIDBTransactionChild> aEndpoint,
PBackgroundIDBTransactionChild* aActor);
ManagedEndpoint<PBackgroundIDBVersionChangeTransactionParent>
OpenPBackgroundIDBVersionChangeTransactionEndpoint(PBackgroundIDBVersionChangeTransactionChild* aActor);
bool
BindPBackgroundIDBVersionChangeTransactionEndpoint(
ManagedEndpoint<PBackgroundIDBVersionChangeTransactionChild> aEndpoint,
PBackgroundIDBVersionChangeTransactionChild* aActor);
bool
SendDeleteMe();
bool
SendBlocked();
bool
SendClose();
PBackgroundIDBDatabaseFileChild*
SendPBackgroundIDBDatabaseFileConstructor(const IPCBlob& blob);
PBackgroundIDBDatabaseFileChild*
SendPBackgroundIDBDatabaseFileConstructor(
PBackgroundIDBDatabaseFileChild* actor,
const IPCBlob& blob);
PBackgroundIDBTransactionChild*
SendPBackgroundIDBTransactionConstructor(
PBackgroundIDBTransactionChild* actor,
mozilla::Span<nsString const> objectStoreNames,
const Mode& mode,
const Durability& durability);
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
private:
bool mAwaitingManagedEndpointBind = false;
ManagedContainer<PBackgroundIDBDatabaseFileChild> mManagedPBackgroundIDBDatabaseFileChild;
ManagedContainer<PBackgroundIDBTransactionChild> mManagedPBackgroundIDBTransactionChild;
ManagedContainer<PBackgroundIDBVersionChangeTransactionChild> mManagedPBackgroundIDBVersionChangeTransactionChild;
};
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::indexedDB::PBackgroundIDBDatabaseChild*>
{
typedef ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PBackgroundIDBDatabaseChild_h