mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
38ee7f95d8
--HG-- rename : dom/quota/QuotaManager.cpp => dom/quota/ActorsParent.cpp rename : dom/quota/nsIUsageCallback.idl => dom/quota/nsIQuotaCallbacks.idl rename : dom/quota/nsIQuotaManager.idl => dom/quota/nsIQuotaManagerService.idl rename : dom/quota/nsIQuotaRequest.idl => dom/quota/nsIQuotaRequests.idl
81 lines
1.3 KiB
Plaintext
81 lines
1.3 KiB
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
include protocol PBackground;
|
|
include protocol PQuotaRequest;
|
|
include protocol PQuotaUsageRequest;
|
|
|
|
include PBackgroundSharedTypes;
|
|
|
|
include "mozilla/dom/quota/SerializationHelpers.h";
|
|
|
|
using mozilla::dom::quota::PersistenceType
|
|
from "mozilla/dom/quota/PersistenceType.h";
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
namespace quota {
|
|
|
|
struct UsageParams
|
|
{
|
|
PrincipalInfo principalInfo;
|
|
};
|
|
|
|
union UsageRequestParams
|
|
{
|
|
UsageParams;
|
|
};
|
|
|
|
struct ClearOriginParams
|
|
{
|
|
PrincipalInfo principalInfo;
|
|
PersistenceType persistenceType;
|
|
bool persistenceTypeIsExplicit;
|
|
};
|
|
|
|
struct ClearAppParams
|
|
{
|
|
uint32_t appId;
|
|
bool browserOnly;
|
|
};
|
|
|
|
struct ClearAllParams
|
|
{
|
|
};
|
|
|
|
struct ResetAllParams
|
|
{
|
|
};
|
|
|
|
union RequestParams
|
|
{
|
|
ClearOriginParams;
|
|
ClearAppParams;
|
|
ClearAllParams;
|
|
ResetAllParams;
|
|
};
|
|
|
|
protocol PQuota
|
|
{
|
|
manager PBackground;
|
|
|
|
manages PQuotaRequest;
|
|
manages PQuotaUsageRequest;
|
|
|
|
parent:
|
|
__delete__();
|
|
|
|
PQuotaUsageRequest(UsageRequestParams params);
|
|
|
|
PQuotaRequest(RequestParams params);
|
|
|
|
StartIdleMaintenance();
|
|
|
|
StopIdleMaintenance();
|
|
};
|
|
|
|
} // namespace quota
|
|
} // namespace dom
|
|
} // namespace mozilla
|