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/. */
5 include protocol PBackground;
7 include ClientIPCTypes;
8 include IPCServiceWorkerRegistrationDescriptor;
10 include "mozilla/dom/ServiceWorkerIPCUtils.h";
15 [ChildImpl=virtual, ParentImpl=virtual]
16 protocol PServiceWorkerContainer
23 async Register(IPCClientInfo aClientInfo, nsCString aScopeURL, nsCString aScriptURL,
24 ServiceWorkerUpdateViaCache aUpdateViaCache)
25 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
27 async GetRegistration(IPCClientInfo aClientInfo, nsCString aURL)
28 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
30 async GetRegistrations(IPCClientInfo aClientInfo)
31 returns (IPCServiceWorkerRegistrationDescriptorListOrCopyableErrorResult aResult);
33 async GetReady(IPCClientInfo aClientInfo)
34 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
41 } // namespace mozilla