Bug 1883861 - Part 2: Remove unnecessary SSE2 check for x86 memory barrier. r=jandem
[gecko.git] / dom / serviceworkers / ServiceWorkerActors.cpp
blob145698f3ad56ae2dcd3a760d9505ea2038060db3
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/. */
7 #include "ServiceWorkerActors.h"
9 #include "ServiceWorkerChild.h"
10 #include "ServiceWorkerContainerChild.h"
11 #include "ServiceWorkerContainerParent.h"
12 #include "ServiceWorkerParent.h"
13 #include "ServiceWorkerRegistrationChild.h"
14 #include "ServiceWorkerRegistrationParent.h"
15 #include "mozilla/dom/WorkerRef.h"
17 namespace mozilla::dom {
19 void InitServiceWorkerParent(PServiceWorkerParent* aActor,
20 const IPCServiceWorkerDescriptor& aDescriptor) {
21 auto actor = static_cast<ServiceWorkerParent*>(aActor);
22 actor->Init(aDescriptor);
25 void InitServiceWorkerContainerParent(PServiceWorkerContainerParent* aActor) {
26 auto actor = static_cast<ServiceWorkerContainerParent*>(aActor);
27 actor->Init();
30 void InitServiceWorkerRegistrationParent(
31 PServiceWorkerRegistrationParent* aActor,
32 const IPCServiceWorkerRegistrationDescriptor& aDescriptor) {
33 auto actor = static_cast<ServiceWorkerRegistrationParent*>(aActor);
34 actor->Init(aDescriptor);
37 } // namespace mozilla::dom