PQuotaUsageRequest.ipdl 808 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. include protocol PQuota;
  5. namespace mozilla {
  6. namespace dom {
  7. namespace quota {
  8. struct OriginUsage
  9. {
  10. nsCString origin;
  11. bool persisted;
  12. uint64_t usage;
  13. };
  14. struct AllUsageResponse
  15. {
  16. OriginUsage[] originUsages;
  17. };
  18. struct OriginUsageResponse
  19. {
  20. uint64_t usage;
  21. uint64_t fileUsage;
  22. uint64_t limit;
  23. };
  24. union UsageRequestResponse
  25. {
  26. nsresult;
  27. AllUsageResponse;
  28. OriginUsageResponse;
  29. };
  30. protocol PQuotaUsageRequest
  31. {
  32. manager PQuota;
  33. parent:
  34. async Cancel();
  35. child:
  36. async __delete__(UsageRequestResponse response);
  37. };
  38. } // namespace quota
  39. } // namespace dom
  40. } // namespace mozilla