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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_ServiceWorkerManagerParent_h
8 #define mozilla_dom_ServiceWorkerManagerParent_h
10 #include "mozilla/dom/PServiceWorkerManagerParent.h"
15 class BackgroundParentImpl
;
20 class ServiceWorkerManagerService
;
22 class ServiceWorkerManagerParent final
: public PServiceWorkerManagerParent
{
23 friend class mozilla::ipc::BackgroundParentImpl
;
24 friend class PServiceWorkerManagerParent
;
27 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ServiceWorkerManagerParent
)
30 ServiceWorkerManagerParent();
31 ~ServiceWorkerManagerParent();
33 mozilla::ipc::IPCResult
RecvRegister(
34 const ServiceWorkerRegistrationData
& aData
);
36 mozilla::ipc::IPCResult
RecvUnregister(const PrincipalInfo
& aPrincipalInfo
,
37 const nsString
& aScope
);
39 mozilla::ipc::IPCResult
RecvPropagateUnregister(
40 const PrincipalInfo
& aPrincipalInfo
, const nsString
& aScope
);
42 virtual void ActorDestroy(ActorDestroyReason aWhy
) override
;
46 } // namespace mozilla
48 #endif // mozilla_dom_ServiceWorkerManagerParent_h