ActorsParent.h (1915B)
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/. */ 6 7 #ifndef mozilla_dom_indexeddb_actorsparent_h__ 8 #define mozilla_dom_indexeddb_actorsparent_h__ 9 10 #include "mozilla/AlreadyAddRefed.h" 11 #include "mozilla/RefPtr.h" 12 #include "mozilla/dom/PBrowserParent.h" 13 #include "nsIPermissionManager.h" 14 15 class nsIPrincipal; 16 17 namespace mozilla::dom { 18 19 class Element; 20 class FileHandleThreadPool; 21 22 namespace quota { 23 24 class Client; 25 26 } // namespace quota 27 28 namespace indexedDB { 29 30 enum class PermissionValue { 31 kPermissionAllowed = nsIPermissionManager::ALLOW_ACTION, 32 kPermissionDenied = nsIPermissionManager::DENY_ACTION, 33 kPermissionPrompt = nsIPermissionManager::PROMPT_ACTION 34 }; 35 36 class LoggingInfo; 37 class PBackgroundIDBFactoryParent; 38 class PBackgroundIndexedDBUtilsParent; 39 40 already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent( 41 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale); 42 43 bool RecvPBackgroundIDBFactoryConstructor(PBackgroundIDBFactoryParent* aActor, 44 const LoggingInfo& aLoggingInfo, 45 const nsACString& aSystemLocale); 46 47 bool DeallocPBackgroundIDBFactoryParent(PBackgroundIDBFactoryParent* aActor); 48 49 PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent(); 50 51 bool DeallocPBackgroundIndexedDBUtilsParent( 52 PBackgroundIndexedDBUtilsParent* aActor); 53 54 bool RecvFlushPendingFileDeletions(); 55 56 RefPtr<mozilla::dom::quota::Client> CreateQuotaClient(); 57 58 FileHandleThreadPool* GetFileHandleThreadPool(); 59 60 } // namespace indexedDB 61 } // namespace mozilla::dom 62 63 #endif // mozilla_dom_indexeddb_actorsparent_h__