2015-11-22 12:43:55 +03:00
|
|
|
/* 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 UsageResponse
|
|
|
|
{
|
|
|
|
uint64_t usage;
|
|
|
|
uint64_t fileUsage;
|
2016-06-24 05:24:06 +03:00
|
|
|
uint64_t limit;
|
2015-11-22 12:43:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
union UsageRequestResponse
|
|
|
|
{
|
|
|
|
nsresult;
|
|
|
|
UsageResponse;
|
|
|
|
};
|
|
|
|
|
|
|
|
protocol PQuotaUsageRequest
|
|
|
|
{
|
|
|
|
manager PQuota;
|
|
|
|
|
|
|
|
parent:
|
2016-01-27 00:51:53 +03:00
|
|
|
async Cancel();
|
2015-11-22 12:43:55 +03:00
|
|
|
|
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async __delete__(UsageRequestResponse response);
|
2015-11-22 12:43:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace quota
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|