Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PQuotaChild_h
#define PQuotaChild_h
#include "mozilla/dom/quota/PQuota.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/OriginAttributes.h"
#include "mozilla/dom/ipc/IdType.h"
#include "mozilla/dom/quota/Client.h"
#include "mozilla/dom/quota/PersistenceType.h"
#include "mozilla/ipc/BackgroundUtils.h"
namespace mozilla {
namespace ipc {
class PBackgroundChild;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace ipc {
class PBackgroundParent;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaRequestChild;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaRequestParent;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaUsageRequestChild;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaUsageRequestParent;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaRequestChild;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaUsageRequestChild;
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace ipc {
class PBackgroundChild;
} // namespace ipc
} // namespace mozilla
namespace mozilla {
struct void_t;
} // namespace mozilla
namespace mozilla {
namespace dom {
namespace quota {
class PQuotaChild :
public mozilla::ipc::IRefCountedProtocol
{
private:
friend class ::mozilla::dom::quota::PQuotaRequestChild;
friend class ::mozilla::dom::quota::PQuotaUsageRequestChild;
friend class ::mozilla::ipc::PBackgroundChild;
public:
static constexpr ::mozilla::ipc::ProtocolId kProtocolId = PQuotaMsgStart;
protected:
typedef mozilla::ipc::ActorHandle ActorHandle;
typedef ::mozilla::dom::quota::AllUsageParams AllUsageParams;
typedef ::mozilla::ipc::BoolResponse BoolResponse;
typedef ::mozilla::ipc::ByteBuf ByteBuf;
typedef ::mozilla::ipc::CSPInfo CSPInfo;
typedef ::mozilla::dom::quota::ClearResetOriginParams ClearResetOriginParams;
typedef ::mozilla::dom::ContentParentId ContentParentId;
typedef ::mozilla::ipc::ContentPrincipalInfo ContentPrincipalInfo;
typedef ::mozilla::ipc::ContentSecurityPolicy ContentSecurityPolicy;
template<class FooSide> using Endpoint = mozilla::ipc::Endpoint<FooSide>;
typedef ::mozilla::dom::quota::EstimateParams EstimateParams;
typedef ::mozilla::ipc::ExpandedPrincipalInfo ExpandedPrincipalInfo;
typedef ::mozilla::ipc::FileDescriptor FileDescriptor;
typedef ::mozilla::dom::quota::GetFullOriginMetadataParams GetFullOriginMetadataParams;
typedef ::mozilla::dom::quota::InitializePersistentOriginParams InitializePersistentOriginParams;
typedef ::mozilla::dom::quota::InitializeTemporaryOriginParams InitializeTemporaryOriginParams;
typedef ::mozilla::dom::quota::ListOriginsParams ListOriginsParams;
template<class FooSide> using ManagedEndpoint = mozilla::ipc::ManagedEndpoint<FooSide>;
typedef ::mozilla::ipc::NullPrincipalInfo NullPrincipalInfo;
typedef ::mozilla::OriginAttributes OriginAttributes;
typedef ::mozilla::OriginAttributesPattern OriginAttributesPattern;
typedef ::mozilla::dom::quota::OriginUsageParams OriginUsageParams;
typedef ::mozilla::ipc::PBackgroundChild PBackgroundChild;
typedef ::mozilla::ipc::PBackgroundParent PBackgroundParent;
typedef ::mozilla::dom::quota::PQuotaRequestChild PQuotaRequestChild;
typedef ::mozilla::dom::quota::PQuotaRequestParent PQuotaRequestParent;
typedef ::mozilla::dom::quota::PQuotaUsageRequestChild PQuotaUsageRequestChild;
typedef ::mozilla::dom::quota::PQuotaUsageRequestParent PQuotaUsageRequestParent;
typedef ::mozilla::dom::quota::PersistParams PersistParams;
typedef ::mozilla::dom::quota::PersistedParams PersistedParams;
typedef ::mozilla::dom::quota::PersistenceType PersistenceType;
typedef ::mozilla::ipc::PrincipalInfo PrincipalInfo;
typedef base::ProcessId ProcessId;
typedef mozilla::ipc::ProtocolId ProtocolId;
typedef ::mozilla::dom::quota::RequestParams RequestParams;
typedef ::mozilla::dom::quota::ResetOriginParams ResetOriginParams;
typedef mozilla::ipc::ResponseRejectReason ResponseRejectReason;
typedef ::mozilla::ipc::Shmem Shmem;
typedef ::mozilla::dom::quota::StorageNameParams StorageNameParams;
typedef ::mozilla::ipc::SystemPrincipalInfo SystemPrincipalInfo;
typedef ::mozilla::dom::quota::Client::Type Type;
template<class T> using UniquePtr = mozilla::UniquePtr<T>;
typedef ::mozilla::dom::quota::UsageRequestParams UsageRequestParams;
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 ::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 MozPromise<BoolResponse, ResponseRejectReason, true> StorageInitializedPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> TemporaryStorageInitializedPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> InitializeStoragePromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> InitializePersistentClientPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> InitializeTemporaryClientPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> InitializeTemporaryStoragePromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ClearStoragesForOriginPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ClearStoragesForOriginPrefixPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ClearStoragesForOriginAttributesPatternPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ClearStoragesForPrivateBrowsingPromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ClearStoragePromise;
typedef MozPromise<BoolResponse, ResponseRejectReason, true> ShutdownStoragePromise;
protected:
virtual PQuotaUsageRequestChild*
AllocPQuotaUsageRequestChild(const UsageRequestParams& params) = 0;
virtual PQuotaRequestChild*
AllocPQuotaRequestChild(const RequestParams& params) = 0;
virtual bool
DeallocPQuotaRequestChild(PQuotaRequestChild* aActor) = 0;
virtual bool
DeallocPQuotaUsageRequestChild(PQuotaUsageRequestChild* 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 PQuotaChild();
virtual ~PQuotaChild();
protected:
void
ActorAlloc() final;
void
ActorDealloc() final;
public:
::base::ProcessId
OtherPid() const;
PBackgroundChild*
Manager() const;
void
ManagedPQuotaRequestChild(nsTArray<PQuotaRequestChild*>& aArr) const;
const ManagedContainer<PQuotaRequestChild>&
ManagedPQuotaRequestChild() const;
void
ManagedPQuotaUsageRequestChild(nsTArray<PQuotaUsageRequestChild*>& aArr) const;
const ManagedContainer<PQuotaUsageRequestChild>&
ManagedPQuotaUsageRequestChild() const;
mozilla::Span<mozilla::ipc::ProtocolId const>
ManagedProtocolIds() const final;
UntypedManagedContainer*
GetManagedActors(mozilla::ipc::ProtocolId aProtocol) final;
ManagedEndpoint<PQuotaRequestParent>
OpenPQuotaRequestEndpoint(PQuotaRequestChild* aActor);
bool
BindPQuotaRequestEndpoint(
ManagedEndpoint<PQuotaRequestChild> aEndpoint,
PQuotaRequestChild* aActor);
ManagedEndpoint<PQuotaUsageRequestParent>
OpenPQuotaUsageRequestEndpoint(PQuotaUsageRequestChild* aActor);
bool
BindPQuotaUsageRequestEndpoint(
ManagedEndpoint<PQuotaUsageRequestChild> aEndpoint,
PQuotaUsageRequestChild* aActor);
static bool
Send__delete__(PQuotaChild* actor);
PQuotaUsageRequestChild*
SendPQuotaUsageRequestConstructor(const UsageRequestParams& params);
PQuotaUsageRequestChild*
SendPQuotaUsageRequestConstructor(
PQuotaUsageRequestChild* actor,
const UsageRequestParams& params);
PQuotaRequestChild*
SendPQuotaRequestConstructor(const RequestParams& params);
PQuotaRequestChild*
SendPQuotaRequestConstructor(
PQuotaRequestChild* actor,
const RequestParams& params);
void
SendStorageInitialized(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<StorageInitializedPromise>
SendStorageInitialized();
void
SendTemporaryStorageInitialized(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<TemporaryStorageInitializedPromise>
SendTemporaryStorageInitialized();
void
SendInitializeStorage(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitializeStoragePromise>
SendInitializeStorage();
void
SendInitializePersistentClient(
const PrincipalInfo& principalInfo,
const Type& clientType,
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitializePersistentClientPromise>
SendInitializePersistentClient(
const PrincipalInfo& principalInfo,
const Type& clientType);
void
SendInitializeTemporaryClient(
const PersistenceType& persistenceType,
const PrincipalInfo& principalInfo,
const Type& clientType,
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitializeTemporaryClientPromise>
SendInitializeTemporaryClient(
const PersistenceType& persistenceType,
const PrincipalInfo& principalInfo,
const Type& clientType);
void
SendInitializeTemporaryStorage(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<InitializeTemporaryStoragePromise>
SendInitializeTemporaryStorage();
void
SendClearStoragesForOrigin(
const mozilla::Maybe<PersistenceType>& persistenceType,
const PrincipalInfo& principalInfo,
const mozilla::Maybe<Type>& clientType,
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClearStoragesForOriginPromise>
SendClearStoragesForOrigin(
const mozilla::Maybe<PersistenceType>& persistenceType,
const PrincipalInfo& principalInfo,
const mozilla::Maybe<Type>& clientType);
void
SendClearStoragesForOriginPrefix(
const mozilla::Maybe<PersistenceType>& persistenceType,
const PrincipalInfo& principalInfo,
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClearStoragesForOriginPrefixPromise>
SendClearStoragesForOriginPrefix(
const mozilla::Maybe<PersistenceType>& persistenceType,
const PrincipalInfo& principalInfo);
void
SendClearStoragesForOriginAttributesPattern(
const OriginAttributesPattern& pattern,
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClearStoragesForOriginAttributesPatternPromise>
SendClearStoragesForOriginAttributesPattern(const OriginAttributesPattern& pattern);
void
SendClearStoragesForPrivateBrowsing(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClearStoragesForPrivateBrowsingPromise>
SendClearStoragesForPrivateBrowsing();
void
SendClearStorage(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ClearStoragePromise>
SendClearStorage();
void
SendShutdownStorage(
mozilla::ipc::ResolveCallback<BoolResponse>&& aResolve,
mozilla::ipc::RejectCallback&& aReject);
RefPtr<ShutdownStoragePromise>
SendShutdownStorage();
bool
SendStartIdleMaintenance();
bool
SendStopIdleMaintenance();
bool
SendAbortOperationsForProcess(const ContentParentId& contentParentId);
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<PQuotaRequestChild> mManagedPQuotaRequestChild;
ManagedContainer<PQuotaUsageRequestChild> mManagedPQuotaUsageRequestChild;
};
} // namespace quota
} // namespace dom
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::dom::quota::PQuotaChild*>
{
typedef ::mozilla::dom::quota::PQuotaChild* paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
#endif // ifndef PQuotaChild_h