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
21 async Register(IPCClientInfo aClientInfo, nsCString aScopeURL, nsCString aScriptURL,
22 ServiceWorkerUpdateViaCache aUpdateViaCache)
23 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
25 async GetRegistration(IPCClientInfo aClientInfo, nsCString aURL)
26 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
28 async GetRegistrations(IPCClientInfo aClientInfo)
29 returns (IPCServiceWorkerRegistrationDescriptorListOrCopyableErrorResult aResult);
31 async GetReady(IPCClientInfo aClientInfo)
32 returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
38 } // namespace mozilla