Source code

Revision control

Other Tools

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/. */
4
5
include protocol PBackground;
6
7
include ClientIPCTypes;
8
include IPCServiceWorkerRegistrationDescriptor;
9
10
namespace mozilla {
11
namespace dom {
12
13
protocol PServiceWorkerContainer
14
{
15
manager PBackground;
16
17
parent:
18
async Teardown();
19
20
async Register(IPCClientInfo aClientInfo, nsCString aScopeURL, nsCString aScriptURL,
21
ServiceWorkerUpdateViaCache aUpdateViaCache)
22
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
23
24
async GetRegistration(IPCClientInfo aClientInfo, nsCString aURL)
25
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
26
27
async GetRegistrations(IPCClientInfo aClientInfo)
28
returns (IPCServiceWorkerRegistrationDescriptorListOrCopyableErrorResult aResult);
29
30
async GetReady(IPCClientInfo aClientInfo)
31
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
32
33
child:
34
async __delete__();
35
};
36
37
} // namespace dom
38
} // namespace mozilla