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 mozilla::dom::ServiceWorkerState from "mozilla/dom/ServiceWorkerBinding.h";
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
20 uint64_t registrationId;
21 uint64_t registrationVersion;
22 PrincipalInfo principalInfo;
25 ServiceWorkerState state;
30 } // namespace mozilla