Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryReaderSync.h

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryReaderSync.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryReaderSync.h b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryReaderSync.h
similarity index 74%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryReaderSync.h
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryReaderSync.h
index a2b226e86fb7dbbb0f5ea80b7e58d778ad21169a..e75bd923e735db6cd3f4dfc838bb9b3e9db0270f 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryReaderSync.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryReaderSync.h
@@ -28,32 +28,33 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DirectoryReaderSync_h
-#define DirectoryReaderSync_h
+#ifndef FileSystemDirectoryReaderSync_h
+#define FileSystemDirectoryReaderSync_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/fileapi/FileError.h"
-#include "modules/filesystem/DirectoryReaderBase.h"
+#include "modules/filesystem/FileSystemDirectoryReaderBase.h"
#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class EntrySync;
class ExceptionState;
+class FileSystemEntrySync;
-typedef HeapVector<Member<EntrySync>> EntrySyncHeapVector;
+typedef HeapVector<Member<FileSystemEntrySync>> EntrySyncHeapVector;
-class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
+class FileSystemDirectoryReaderSync : public FileSystemDirectoryReaderBase,
+ public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static DirectoryReaderSync* create(DOMFileSystemBase* fileSystem,
- const String& fullPath) {
- return new DirectoryReaderSync(fileSystem, fullPath);
+ static FileSystemDirectoryReaderSync* create(FileSystemBase* fileSystem,
+ const String& fullPath) {
+ return new FileSystemDirectoryReaderSync(fileSystem, fullPath);
}
- ~DirectoryReaderSync() override;
+ ~FileSystemDirectoryReaderSync() override;
EntrySyncHeapVector readEntries(ExceptionState&);
@@ -69,7 +70,7 @@ class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
class EntriesCallbackHelper;
class ErrorCallbackHelper;
- DirectoryReaderSync(DOMFileSystemBase*, const String& fullPath);
+ FileSystemDirectoryReaderSync(FileSystemBase*, const String& fullPath);
int m_callbacksId;
EntrySyncHeapVector m_entries;
@@ -78,4 +79,4 @@ class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
} // namespace blink
-#endif // DirectoryReaderSync_h
+#endif // FileSystemDirectoryReaderSync_h

Powered by Google App Engine
This is Rietveld 408576698