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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_FileSystemRequestParent_h
8 #define mozilla_dom_FileSystemRequestParent_h
10 #include "mozilla/dom/PFileSystemRequestParent.h"
11 #include "mozilla/dom/FileSystemBase.h"
13 namespace mozilla::dom
{
15 class FileSystemParams
;
16 class FileSystemTaskParentBase
;
18 class FileSystemRequestParent final
: public PFileSystemRequestParent
{
19 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileSystemRequestParent
, final
)
22 FileSystemRequestParent();
24 bool Initialize(const FileSystemParams
& aParams
);
28 bool Destroyed() const { return mDestroyed
; }
30 virtual void ActorDestroy(ActorDestroyReason why
) override
;
33 ~FileSystemRequestParent();
35 RefPtr
<FileSystemBase
> mFileSystem
;
36 RefPtr
<FileSystemTaskParentBase
> mTask
;
41 } // namespace mozilla::dom
43 #endif // mozilla_dom_FileSystemRequestParent_h