Bug 1731274 [wpt PR 30792] - Add WebIDL.idl as a dependency for webtransport idlharne...
[gecko.git] / dom / serviceworkers / IPCServiceWorkerDescriptor.ipdlh
blobd02b6fc0f696d8dbf6edb265bfc96a2d474b2a55
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 PBackgroundSharedTypes;
7 include "mozilla/dom/ServiceWorkerIPCUtils.h";
9 using ServiceWorkerState from "mozilla/dom/ServiceWorkerBinding.h";
11 namespace mozilla {
12 namespace dom {
14 // IPC type with enough information to create a ServiceWorker DOM object
15 // in a child process.  Note that the state may be slightly out-of-sync
16 // with the parent and should be updated dynamically if necessary.
17 [Comparable] struct IPCServiceWorkerDescriptor
19   uint64_t id;
20   uint64_t registrationId;
21   uint64_t registrationVersion;
22   PrincipalInfo principalInfo;
23   nsCString scope;
24   nsCString scriptURL;
25   ServiceWorkerState state;
26   bool handlesFetch;
29 } // namespace dom
30 } // namespace mozilla