FileSystemAccessHandleControlParent.h (1326B)
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 DOM_FS_PARENT_FILESYSTEMACCESSHANDLECONTROLPARENT_H_ 8 #define DOM_FS_PARENT_FILESYSTEMACCESSHANDLECONTROLPARENT_H_ 9 10 #include "mozilla/dom/PFileSystemAccessHandleControlParent.h" 11 #include "nsISupportsUtils.h" 12 13 namespace mozilla::dom { 14 15 class FileSystemAccessHandle; 16 17 class FileSystemAccessHandleControlParent 18 : public PFileSystemAccessHandleControlParent { 19 public: 20 explicit FileSystemAccessHandleControlParent( 21 RefPtr<FileSystemAccessHandle> aAccessHandle); 22 23 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FileSystemAccessHandleControlParent, 24 override) 25 26 mozilla::ipc::IPCResult RecvClose(CloseResolver&& aResolver); 27 28 void ActorDestroy(ActorDestroyReason aWhy) override; 29 30 protected: 31 virtual ~FileSystemAccessHandleControlParent(); 32 33 private: 34 RefPtr<FileSystemAccessHandle> mAccessHandle; 35 36 #ifdef DEBUG 37 bool mActorDestroyed = false; 38 #endif 39 }; 40 41 } // namespace mozilla::dom 42 43 #endif // DOM_FS_PARENT_FILESYSTEMACCESSHANDLECONTROLPARENT_H_