PServiceWorkerManager.ipdl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. include protocol PBackground;
  5. include PBackgroundSharedTypes;
  6. include ServiceWorkerRegistrarTypes;
  7. using mozilla::PrincipalOriginAttributes from "mozilla/ipc/BackgroundUtils.h";
  8. namespace mozilla {
  9. namespace dom {
  10. protocol PServiceWorkerManager
  11. {
  12. manager PBackground;
  13. parent:
  14. async Register(ServiceWorkerRegistrationData data);
  15. async Unregister(PrincipalInfo principalInfo, nsString scope);
  16. async PropagateSoftUpdate(PrincipalOriginAttributes originAttributes,
  17. nsString scope);
  18. async PropagateUnregister(PrincipalInfo principalInfo, nsString scope);
  19. async PropagateRemove(nsCString host);
  20. async PropagateRemoveAll();
  21. async Shutdown();
  22. child:
  23. async NotifyRegister(ServiceWorkerRegistrationData data);
  24. async NotifySoftUpdate(PrincipalOriginAttributes originAttributes, nsString scope);
  25. async NotifyUnregister(PrincipalInfo principalInfo, nsString scope);
  26. async NotifyRemove(nsCString host);
  27. async NotifyRemoveAll();
  28. async __delete__();
  29. };
  30. } // namespace dom
  31. } // namespace mozilla