tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

FileSystemRequestParent.h (1184B)


      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/. */
      6 
      7 #ifndef mozilla_dom_FileSystemRequestParent_h
      8 #define mozilla_dom_FileSystemRequestParent_h
      9 
     10 #include "mozilla/dom/FileSystemBase.h"
     11 #include "mozilla/dom/PFileSystemRequestParent.h"
     12 
     13 namespace mozilla::dom {
     14 
     15 class FileSystemParams;
     16 class FileSystemTaskParentBase;
     17 
     18 class FileSystemRequestParent final : public PFileSystemRequestParent {
     19  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileSystemRequestParent, final)
     20 
     21 public:
     22  FileSystemRequestParent();
     23 
     24  bool Initialize(const FileSystemParams& aParams);
     25 
     26  void Start();
     27 
     28  bool Destroyed() const { return mDestroyed; }
     29 
     30  virtual void ActorDestroy(ActorDestroyReason why) override;
     31 
     32 private:
     33  ~FileSystemRequestParent();
     34 
     35  RefPtr<FileSystemBase> mFileSystem;
     36  RefPtr<FileSystemTaskParentBase> mTask;
     37 
     38  bool mDestroyed;
     39 };
     40 
     41 }  // namespace mozilla::dom
     42 
     43 #endif  // mozilla_dom_FileSystemRequestParent_h