PBackgroundIDBFactoryRequest.ipdl 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 PBackgroundIDBFactory;
  5. include protocol PBackgroundIDBDatabase;
  6. include PBackgroundSharedTypes;
  7. namespace mozilla {
  8. namespace dom {
  9. namespace indexedDB {
  10. struct OpenDatabaseRequestResponse
  11. {
  12. PBackgroundIDBDatabase database;
  13. };
  14. struct DeleteDatabaseRequestResponse
  15. {
  16. uint64_t previousVersion;
  17. };
  18. union FactoryRequestResponse
  19. {
  20. nsresult;
  21. OpenDatabaseRequestResponse;
  22. DeleteDatabaseRequestResponse;
  23. };
  24. protocol PBackgroundIDBFactoryRequest
  25. {
  26. manager PBackgroundIDBFactory;
  27. child:
  28. async __delete__(FactoryRequestResponse response);
  29. async PermissionChallenge(PrincipalInfo principalInfo);
  30. async Blocked(uint64_t currentVersion);
  31. parent:
  32. async PermissionRetry();
  33. };
  34. } // namespace indexedDB
  35. } // namespace dom
  36. } // namespace mozilla