Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_dom_serviceworkeractors_h__
8
#define mozilla_dom_serviceworkeractors_h__
9
10
namespace mozilla {
11
namespace dom {
12
13
// PServiceWorker
14
15
class IPCServiceWorkerDescriptor;
16
class PServiceWorkerChild;
17
class PServiceWorkerParent;
18
19
PServiceWorkerChild* AllocServiceWorkerChild();
20
21
bool DeallocServiceWorkerChild(PServiceWorkerChild* aActor);
22
23
PServiceWorkerParent* AllocServiceWorkerParent();
24
25
bool DeallocServiceWorkerParent(PServiceWorkerParent* aActor);
26
27
void InitServiceWorkerParent(PServiceWorkerParent* aActor,
28
const IPCServiceWorkerDescriptor& aDescriptor);
29
30
// PServiceWorkerContainer
31
32
class PServiceWorkerContainerChild;
33
class PServiceWorkerContainerParent;
34
35
PServiceWorkerContainerChild* AllocServiceWorkerContainerChild();
36
37
bool DeallocServiceWorkerContainerChild(PServiceWorkerContainerChild* aActor);
38
39
PServiceWorkerContainerParent* AllocServiceWorkerContainerParent();
40
41
bool DeallocServiceWorkerContainerParent(PServiceWorkerContainerParent* aActor);
42
43
void InitServiceWorkerContainerParent(PServiceWorkerContainerParent* aActor);
44
45
// PServiceWorkerRegistration
46
47
class IPCServiceWorkerRegistrationDescriptor;
48
class PServiceWorkerRegistrationChild;
49
class PServiceWorkerRegistrationParent;
50
51
PServiceWorkerRegistrationChild* AllocServiceWorkerRegistrationChild();
52
53
bool DeallocServiceWorkerRegistrationChild(
54
PServiceWorkerRegistrationChild* aActor);
55
56
PServiceWorkerRegistrationParent* AllocServiceWorkerRegistrationParent();
57
58
bool DeallocServiceWorkerRegistrationParent(
59
PServiceWorkerRegistrationParent* aActor);
60
61
void InitServiceWorkerRegistrationParent(
62
PServiceWorkerRegistrationParent* aActor,
63
const IPCServiceWorkerRegistrationDescriptor& aDescriptor);
64
65
} // namespace dom
66
} // namespace mozilla
67
68
#endif // mozilla_dom_serviceworkeractors_h__