Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / localstorage / ActorsParent.h
blobb317ee9d116a1ec74287baaff376fd0ff409ea80
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_localstorage_ActorsParent_h
8 #define mozilla_dom_localstorage_ActorsParent_h
10 #include <cstdint>
11 #include "mozilla/AlreadyAddRefed.h"
13 namespace mozilla {
15 namespace ipc {
17 class PBackgroundParent;
18 class PrincipalInfo;
20 } // namespace ipc
22 namespace dom {
24 class LSRequestParams;
25 class LSSimpleRequestParams;
26 class PBackgroundLSDatabaseParent;
27 class PBackgroundLSObserverParent;
28 class PBackgroundLSRequestParent;
29 class PBackgroundLSSimpleRequestParent;
31 namespace quota {
33 class Client;
35 } // namespace quota
37 void InitializeLocalStorage();
39 already_AddRefed<PBackgroundLSDatabaseParent> AllocPBackgroundLSDatabaseParent(
40 const mozilla::ipc::PrincipalInfo& aPrincipalInfo,
41 const uint32_t& aPrivateBrowsingId, const uint64_t& aDatastoreId);
43 bool RecvPBackgroundLSDatabaseConstructor(
44 PBackgroundLSDatabaseParent* aActor,
45 const mozilla::ipc::PrincipalInfo& aPrincipalInfo,
46 const uint32_t& aPrivateBrowsingId, const uint64_t& aDatastoreId);
48 PBackgroundLSObserverParent* AllocPBackgroundLSObserverParent(
49 const uint64_t& aObserverId);
51 bool RecvPBackgroundLSObserverConstructor(PBackgroundLSObserverParent* aActor,
52 const uint64_t& aObservereId);
54 bool DeallocPBackgroundLSObserverParent(PBackgroundLSObserverParent* aActor);
56 PBackgroundLSRequestParent* AllocPBackgroundLSRequestParent(
57 mozilla::ipc::PBackgroundParent* aBackgroundActor,
58 const LSRequestParams& aParams);
60 bool RecvPBackgroundLSRequestConstructor(PBackgroundLSRequestParent* aActor,
61 const LSRequestParams& aParams);
63 bool DeallocPBackgroundLSRequestParent(PBackgroundLSRequestParent* aActor);
65 PBackgroundLSSimpleRequestParent* AllocPBackgroundLSSimpleRequestParent(
66 mozilla::ipc::PBackgroundParent* aBackgroundActor,
67 const LSSimpleRequestParams& aParams);
69 bool RecvPBackgroundLSSimpleRequestConstructor(
70 PBackgroundLSSimpleRequestParent* aActor,
71 const LSSimpleRequestParams& aParams);
73 bool DeallocPBackgroundLSSimpleRequestParent(
74 PBackgroundLSSimpleRequestParent* aActor);
76 namespace localstorage {
78 already_AddRefed<mozilla::dom::quota::Client> CreateQuotaClient();
80 } // namespace localstorage
82 } // namespace dom
83 } // namespace mozilla
85 #endif // mozilla_dom_localstorage_ActorsParent_h