Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / serviceworkers / PServiceWorkerContainer.ipdl
blobb24b4946310ab074c0135181d593fc33ee7aa64a
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";
12 namespace mozilla {
13 namespace dom {
15 [ChildImpl=virtual, ParentImpl=virtual]
16 protocol PServiceWorkerContainer
18   manager PBackground;
20 parent:
21   async Teardown();
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);
36 child:
37   async __delete__();
40 } // namespace dom
41 } // namespace mozilla