Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / serviceworkers / PServiceWorkerRegistration.ipdl
blob45efc2f52d197433e95b337a725b616655ea6246
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 IPCNavigationPreloadState;
8 include IPCServiceWorkerRegistrationDescriptor;
10 include "ipc/ErrorIPCUtils.h";
12 namespace mozilla {
13 namespace dom {
15 [ChildImpl=virtual, ParentImpl=virtual]
16 protocol PServiceWorkerRegistration
18   manager PBackground;
20 parent:
21   async Teardown();
23   async Unregister() returns (bool aSuccess, CopyableErrorResult aRv);
24   async Update(nsCString aNewestWorkerScriptUrl) returns (
25     IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
27   // For NavigationPreload interface
28   async SetNavigationPreloadEnabled(bool aEnabled) returns (bool aSuccess);
29   async SetNavigationPreloadHeader(nsCString aHeader) returns (bool aSuccess);
30   async GetNavigationPreloadState() returns (IPCNavigationPreloadState? aState);
32 child:
33   async __delete__();
35   async UpdateState(IPCServiceWorkerRegistrationDescriptor aDescriptor);
36   async FireUpdateFound();
39 } // namespace dom
40 } // namespace mozilla