gecko-dev/dom/quota/PQuotaUsageRequest.ipdl
Johann Hofmann 23a0a82554 Bug 1431029 - Expose timestamp for quota managed storage. r=asuth
MozReview-Commit-ID: 7MNd2m2Jp46

--HG--
extra : rebase_source : 4a17e0b6b38073fea7b4b3d3b4483d4c495b3950
2018-02-20 14:54:17 +01:00

52 lines
833 B
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 PQuota;
namespace mozilla {
namespace dom {
namespace quota {
struct OriginUsage
{
nsCString origin;
bool persisted;
uint64_t usage;
uint64_t lastAccessed;
};
struct AllUsageResponse
{
OriginUsage[] originUsages;
};
struct OriginUsageResponse
{
uint64_t usage;
uint64_t fileUsage;
uint64_t limit;
};
union UsageRequestResponse
{
nsresult;
AllUsageResponse;
OriginUsageResponse;
};
protocol PQuotaUsageRequest
{
manager PQuota;
parent:
async Cancel();
child:
async __delete__(UsageRequestResponse response);
};
} // namespace quota
} // namespace dom
} // namespace mozilla