gecko-dev/dom/quota/PQuota.ipdl
Jan Varga 38ee7f95d8 Bug 961049 - Part 4: QuotaManager on PBackground core changes; r=baku
--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
2015-11-22 10:43:55 +01:00

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