Bug 1886946: Remove incorrect assertion that buffer is not-pinned. r=sfink
[gecko.git] / dom / indexedDB / ActorsParent.h
blob45c0bf8688ef7f659a8f1a354063e6d9d0f8fcc6
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, const nsACString& aSystemLocale);
43 bool RecvPBackgroundIDBFactoryConstructor(PBackgroundIDBFactoryParent* aActor,
44 const LoggingInfo& aLoggingInfo,
45 const nsACString& aSystemLocale);
47 bool DeallocPBackgroundIDBFactoryParent(PBackgroundIDBFactoryParent* aActor);
49 PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent();
51 bool DeallocPBackgroundIndexedDBUtilsParent(
52 PBackgroundIndexedDBUtilsParent* aActor);
54 bool RecvFlushPendingFileDeletions();
56 RefPtr<mozilla::dom::quota::Client> CreateQuotaClient();
58 FileHandleThreadPool* GetFileHandleThreadPool();
60 } // namespace indexedDB
61 } // namespace mozilla::dom
63 #endif // mozilla_dom_indexeddb_actorsparent_h__