no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / filesystem / FileSystemRequestParent.h
blob7ac1547d278501978e17a05cef5c698a376a44cb
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)
21 public:
22 FileSystemRequestParent();
24 bool Initialize(const FileSystemParams& aParams);
26 void Start();
28 bool Destroyed() const { return mDestroyed; }
30 virtual void ActorDestroy(ActorDestroyReason why) override;
32 private:
33 ~FileSystemRequestParent();
35 RefPtr<FileSystemBase> mFileSystem;
36 RefPtr<FileSystemTaskParentBase> mTask;
38 bool mDestroyed;
41 } // namespace mozilla::dom
43 #endif // mozilla_dom_FileSystemRequestParent_h