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 PBackgroundSharedTypes;
6
7
using ServiceWorkerState from "mozilla/dom/ServiceWorkerIPCUtils.h";
8
9
namespace mozilla {
10
namespace dom {
11
12
// IPC type with enough information to create a ServiceWorker DOM object
13
// in a child process. Note that the state may be slightly out-of-sync
14
// with the parent and should be updated dynamically if necessary.
15
struct IPCServiceWorkerDescriptor
16
{
17
uint64_t id;
18
uint64_t registrationId;
19
uint64_t registrationVersion;
20
PrincipalInfo principalInfo;
21
nsCString scope;
22
nsCString scriptURL;
23
ServiceWorkerState state;
24
};
25
26
} // namespace dom
27
} // namespace mozilla