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"
17 namespace mozilla::dom
{
20 class FileHandleThreadPool
;
30 enum class PermissionValue
{
31 kPermissionAllowed
= nsIPermissionManager::ALLOW_ACTION
,
32 kPermissionDenied
= nsIPermissionManager::DENY_ACTION
,
33 kPermissionPrompt
= nsIPermissionManager::PROMPT_ACTION
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__