Line data Source code
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 file,
5 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #ifndef mozilla_dom_FileSystemRootDirectoryReader_h
8 : #define mozilla_dom_FileSystemRootDirectoryReader_h
9 :
10 : #include "FileSystemDirectoryReader.h"
11 :
12 : namespace mozilla {
13 : namespace dom {
14 :
15 : class FileSystemRootDirectoryReader final : public FileSystemDirectoryReader
16 : {
17 : public:
18 : NS_DECL_ISUPPORTS_INHERITED
19 0 : NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(FileSystemRootDirectoryReader,
20 : FileSystemDirectoryReader)
21 :
22 : explicit FileSystemRootDirectoryReader(FileSystemDirectoryEntry* aParentEntry,
23 : FileSystem* aFileSystem,
24 : const Sequence<RefPtr<FileSystemEntry>>& aEntries);
25 :
26 : virtual void
27 : ReadEntries(FileSystemEntriesCallback& aSuccessCallback,
28 : const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback,
29 : ErrorResult& aRv) override;
30 :
31 : private:
32 : ~FileSystemRootDirectoryReader();
33 :
34 : Sequence<RefPtr<FileSystemEntry>> mEntries;
35 : bool mAlreadyRead;
36 : };
37 :
38 : } // namespace dom
39 : } // namespace mozilla
40 :
41 : #endif // mozilla_dom_FileSystemRootDirectoryReader_h
|