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";
15 [ChildImpl=virtual, ParentImpl=virtual]
16 protocol PServiceWorkerRegistration
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);
35 async UpdateState(IPCServiceWorkerRegistrationDescriptor aDescriptor);
36 async FireUpdateFound();
40 } // namespace mozilla