Bug 1805294 [wpt PR 37463] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / dom / indexedDB / ActorsParent.h
blobab6c6c142ff7f8d6e6174ff1bbb2ae908742000c
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_indexeddb_actorsparent_h__
8 #define mozilla_dom_indexeddb_actorsparent_h__
10 #include "mozilla/AlreadyAddRefed.h"
11 #include "mozilla/dom/PBrowserParent.h"
12 #include "mozilla/RefPtr.h"
13 #include "nsIPermissionManager.h"
15 class nsIPrincipal;
17 namespace mozilla::dom {
19 class Element;
20 class FileHandleThreadPool;
22 namespace quota {
24 class Client;
26 } // namespace quota
28 namespace indexedDB {
30 enum class PermissionValue {
31 kPermissionAllowed = nsIPermissionManager::ALLOW_ACTION,
32 kPermissionDenied = nsIPermissionManager::DENY_ACTION,
33 kPermissionPrompt = nsIPermissionManager::PROMPT_ACTION
36 class LoggingInfo;
37 class PBackgroundIDBFactoryParent;
38 class PBackgroundIndexedDBUtilsParent;
40 already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent(
41 const LoggingInfo& aLoggingInfo);
43 bool RecvPBackgroundIDBFactoryConstructor(PBackgroundIDBFactoryParent* aActor,
44 const LoggingInfo& aLoggingInfo);
46 bool DeallocPBackgroundIDBFactoryParent(PBackgroundIDBFactoryParent* aActor);
48 PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent();
50 bool DeallocPBackgroundIndexedDBUtilsParent(
51 PBackgroundIndexedDBUtilsParent* aActor);
53 bool RecvFlushPendingFileDeletions();
55 RefPtr<mozilla::dom::quota::Client> CreateQuotaClient();
57 FileHandleThreadPool* GetFileHandleThreadPool();
59 } // namespace indexedDB
60 } // namespace mozilla::dom
62 #endif // mozilla_dom_indexeddb_actorsparent_h__