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
include protocol PServiceWorkerUpdater;
7
8
include PBackgroundSharedTypes;
9
include ServiceWorkerRegistrarTypes;
10
11
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
12
13
namespace mozilla {
14
namespace dom {
15
16
protocol PServiceWorkerManager
17
{
18
manager PBackground;
19
manages PServiceWorkerUpdater;
20
21
parent:
22
async Register(ServiceWorkerRegistrationData data);
23
24
async Unregister(PrincipalInfo principalInfo, nsString scope);
25
26
async PropagateSoftUpdate(OriginAttributes originAttributes,
27
nsString scope);
28
async PropagateUnregister(PrincipalInfo principalInfo, nsString scope);
29
30
async PropagateRemove(nsCString host);
31
32
async PropagateRemoveAll();
33
34
async Shutdown();
35
36
async PServiceWorkerUpdater(OriginAttributes originAttributes,
37
nsCString scope);
38
39
child:
40
async NotifyRegister(ServiceWorkerRegistrationData data);
41
async NotifySoftUpdate(OriginAttributes originAttributes, nsString scope);
42
async NotifyUnregister(PrincipalInfo principalInfo, nsString scope);
43
async NotifyRemove(nsCString host);
44
async NotifyRemoveAll();
45
46
async __delete__();
47
};
48
49
} // namespace dom
50
} // namespace mozilla