Bug 1806483 - Enable TSAN cppunittests by default. r=jmaher
[gecko.git] / dom / serviceworkers / ServiceWorkerManagerParent.h
blob741f2250b32d0e2fc5bf677a5805634a030cd49d
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"
12 namespace mozilla {
14 namespace ipc {
15 class BackgroundParentImpl;
16 } // namespace ipc
18 namespace dom {
20 class ServiceWorkerManagerService;
22 class ServiceWorkerManagerParent final : public PServiceWorkerManagerParent {
23 friend class mozilla::ipc::BackgroundParentImpl;
24 friend class PServiceWorkerManagerParent;
26 public:
27 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ServiceWorkerManagerParent)
29 private:
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;
45 } // namespace dom
46 } // namespace mozilla
48 #endif // mozilla_dom_ServiceWorkerManagerParent_h