Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PBackgroundIDBFactoryParent_h
#define PBackgroundIDBFactoryParent_h
#include "mozilla/dom/indexedDB/PBackgroundIDBFactory.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/dom/IDBCursor.h"
#include "mozilla/dom/IndexedDatabase.h"
#include "mozilla/dom/quota/PersistenceType.h"
#include "mozilla/ipc/BackgroundUtils.h"
#include "mozilla/ipc/SerializedStructuredCloneBuffer.h"
namespace mozilla {
namespace ipc {
class PBackgroundParent;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace ipc {
class PBackgroundChild;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBDatabaseChild;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryRequestParent;
} // 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 PBackgroundIDBDatabaseParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryRequestParent;
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace ipc {
class PBackgroundParent;
} // namespace ipc
} // 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 void_t;
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace indexedDB {
class PBackgroundIDBFactoryParent :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseParent;
friend class ::mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestParent;
friend class ::mozilla::ipc::PBackgroundParent;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PBackgroundIDBFactoryMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::ipc::CSPInfo CSPInfo;
typedef ::mozilla::dom::indexedDB::CommonFactoryRequestParams CommonFactoryRequestParams;
typedef ::mozilla::dom::indexedDB::CommonIndexOpenCursorParams CommonIndexOpenCursorParams;
typedef ::mozilla::dom::indexedDB::CommonOpenCursorParams CommonOpenCursorParams;
typedef ::mozilla::ipc::ContentPrincipalInfo ContentPrincipalInfo;
typedef ::mozilla::ipc::ContentSecurityPolicy ContentSecurityPolicy;
typedef ::mozilla::dom::indexedDB::DatabaseMetadata DatabaseMetadata;
typedef ::mozilla::dom::indexedDB::DatabaseSpec DatabaseSpec;
typedef ::mozilla::dom::indexedDB::DeleteDatabaseRequestParams DeleteDatabaseRequestParams;
typedef ::mozilla::dom::IDBCursor::Direction Direction;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::ipc::ExpandedPrincipalInfo ExpandedPrincipalInfo;
typedef ::mozilla::dom::indexedDB::FactoryRequestParams FactoryRequestParams;
typedef ::mozilla::dom::indexedDB::FileAddInfo FileAddInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::dom::indexedDB::StructuredCloneFileBase::FileType FileType;
typedef ::mozilla::dom::indexedDB::GetDatabasesResponse GetDatabasesResponse;
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::dom::indexedDB::Key Key;
typedef ::mozilla::dom::indexedDB::KeyPath KeyPath;
typedef ::mozilla::dom::indexedDB::LoggingInfo LoggingInfo;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::ipc::NullPrincipalInfo NullPrincipalInfo;
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::OpenDatabaseRequestParams OpenDatabaseRequestParams;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::ipc::PBackgroundChild PBackgroundChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseChild PBackgroundIDBDatabaseChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBDatabaseParent PBackgroundIDBDatabaseParent;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestChild PBackgroundIDBFactoryRequestChild;
typedef ::mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestParent PBackgroundIDBFactoryRequestParent;
typedef ::mozilla::ipc::PBackgroundParent PBackgroundParent;
typedef ::mozilla::dom::quota::PersistenceType PersistenceType;
typedef ::mozilla::ipc::PrincipalInfo PrincipalInfo;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
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::SystemPrincipalInfo SystemPrincipalInfo;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::ipc::WebTransportHash WebTransportHash;
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;
public:
typedef std::function<void(const GetDatabasesResponse&)> GetDatabasesResolver;
protected:
virtual mozilla::ipc::IPCResult
RecvDeleteMe() = 0;
virtual mozilla::ipc::IPCResult
RecvPBackgroundIDBFactoryRequestConstructor(
PBackgroundIDBFactoryRequestParent* actor,
const FactoryRequestParams& params);
virtual mozilla::ipc::IPCResult
RecvGetDatabases(
const PersistenceType& persistenceType,
const PrincipalInfo& principalInfo,
GetDatabasesResolver&& aResolve) = 0;
virtual PBackgroundIDBFactoryRequestParent*
AllocPBackgroundIDBFactoryRequestParent(const FactoryRequestParams& params) = 0;
virtual bool
DeallocPBackgroundIDBFactoryRequestParent(PBackgroundIDBFactoryRequestParent* aActor) = 0;
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 PBackgroundIDBFactoryParent();
virtual ~PBackgroundIDBFactoryParent();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
::GeckoChildID
OtherChildID() const;
::mozilla::ipc::EndpointProcInfo
OtherEndpointProcInfo() const;
PBackgroundParent*
Manager() const;
void
ManagedPBackgroundIDBDatabaseParent(nsTArray<PBackgroundIDBDatabaseParent*>& aArr) const;
const ManagedContainer<PBackgroundIDBDatabaseParent>&
ManagedPBackgroundIDBDatabaseParent() const;
void
ManagedPBackgroundIDBFactoryRequestParent(nsTArray<PBackgroundIDBFactoryRequestParent*>& aArr) const;
const ManagedContainer<PBackgroundIDBFactoryRequestParent>&
ManagedPBackgroundIDBFactoryRequestParent() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
void
RejectPendingResponses(ResponseRejectReason aReason) final;
ManagedEndpoint<PBackgroundIDBDatabaseChild>
OpenPBackgroundIDBDatabaseEndpoint(PBackgroundIDBDatabaseParent* aActor);
bool
BindPBackgroundIDBDatabaseEndpoint(
ManagedEndpoint<PBackgroundIDBDatabaseParent> aEndpoint,
PBackgroundIDBDatabaseParent* aActor);
ManagedEndpoint<PBackgroundIDBFactoryRequestChild>
OpenPBackgroundIDBFactoryRequestEndpoint(PBackgroundIDBFactoryRequestParent* aActor);
bool
BindPBackgroundIDBFactoryRequestEndpoint(
ManagedEndpoint<PBackgroundIDBFactoryRequestParent> aEndpoint,
PBackgroundIDBFactoryRequestParent* aActor);
[[nodiscard]] static bool
Send__delete__(PBackgroundIDBFactoryParent* actor);
[[nodiscard]] PBackgroundIDBDatabaseParent*
SendPBackgroundIDBDatabaseConstructor(
PBackgroundIDBDatabaseParent* actor,
const DatabaseSpec& spec,
mozilla::NotNull<PBackgroundIDBFactoryRequestParent*> request);
void
DeallocManagee(
int32_t aProtocolId,
IProtocol* aListener) override;
Result
OnMessageReceived(const Message& msg__) override;
Result
OnMessageReceived(
const Message& msg__,
UniquePtr<Message>& reply__) override;
private:
mozilla::ipc::IPDLAsyncReturnsCallbacks mAsyncCallbacks;
bool mAwaitingManagedEndpointBind = false;
ManagedContainer<PBackgroundIDBDatabaseParent> mManagedPBackgroundIDBDatabaseParent;
ManagedContainer<PBackgroundIDBFactoryRequestParent> mManagedPBackgroundIDBFactoryRequestParent;
};
} // namespace indexedDB
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::indexedDB::PBackgroundIDBFactoryParent*>
{
typedef ::mozilla::dom::indexedDB::PBackgroundIDBFactoryParent* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PBackgroundIDBFactoryParent_h