ActorsParent.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_dom_indexeddb_actorsparent_h__
  6. #define mozilla_dom_indexeddb_actorsparent_h__
  7. template <class> struct already_AddRefed;
  8. class nsIPrincipal;
  9. namespace mozilla {
  10. namespace dom {
  11. class Element;
  12. class FileHandleThreadPool;
  13. namespace quota {
  14. class Client;
  15. } // namespace quota
  16. namespace indexedDB {
  17. class LoggingInfo;
  18. class PBackgroundIDBFactoryParent;
  19. class PBackgroundIndexedDBUtilsParent;
  20. class PIndexedDBPermissionRequestParent;
  21. PBackgroundIDBFactoryParent*
  22. AllocPBackgroundIDBFactoryParent(const LoggingInfo& aLoggingInfo);
  23. bool
  24. RecvPBackgroundIDBFactoryConstructor(PBackgroundIDBFactoryParent* aActor,
  25. const LoggingInfo& aLoggingInfo);
  26. bool
  27. DeallocPBackgroundIDBFactoryParent(PBackgroundIDBFactoryParent* aActor);
  28. PBackgroundIndexedDBUtilsParent*
  29. AllocPBackgroundIndexedDBUtilsParent();
  30. bool
  31. DeallocPBackgroundIndexedDBUtilsParent(PBackgroundIndexedDBUtilsParent* aActor);
  32. bool
  33. RecvFlushPendingFileDeletions();
  34. PIndexedDBPermissionRequestParent*
  35. AllocPIndexedDBPermissionRequestParent(Element* aOwnerElement,
  36. nsIPrincipal* aPrincipal);
  37. bool
  38. RecvPIndexedDBPermissionRequestConstructor(
  39. PIndexedDBPermissionRequestParent* aActor);
  40. bool
  41. DeallocPIndexedDBPermissionRequestParent(
  42. PIndexedDBPermissionRequestParent* aActor);
  43. already_AddRefed<mozilla::dom::quota::Client>
  44. CreateQuotaClient();
  45. FileHandleThreadPool*
  46. GetFileHandleThreadPool();
  47. } // namespace indexedDB
  48. } // namespace dom
  49. } // namespace mozilla
  50. #endif // mozilla_dom_indexeddb_actorsparent_h__