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

Unified Diff: Source/modules/filesystem/DirectoryReader.h

Issue 178333009: Handle has_more correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ifdef hack Created 6 years, 9 months 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: Source/modules/filesystem/DirectoryReader.h
diff --git a/Source/modules/filesystem/DirectoryReader.h b/Source/modules/filesystem/DirectoryReader.h
index 7ec604d2718eb849c391053269e24348f9c07562..8ad46f879b89fb9f4df957a436b1b3563f16be0f 100644
--- a/Source/modules/filesystem/DirectoryReader.h
+++ b/Source/modules/filesystem/DirectoryReader.h
@@ -56,7 +56,20 @@ public:
DOMFileSystem* filesystem() const { return static_cast<DOMFileSystem*>(m_fileSystem.get()); }
private:
+ class EntriesCallbackHelper;
+ class ErrorCallbackHelper;
+
DirectoryReader(PassRefPtr<DOMFileSystemBase>, const String& fullPath);
+
+ void addEntries(const Vector<RefPtr<Entry> >& entries);
+
+ void onError(FileError*);
+
+ bool m_isReading;
+ Vector<RefPtr<Entry> > m_entries;
+ RefPtr<FileError> m_error;
+ OwnPtr<EntriesCallback> m_entriesCallback;
+ OwnPtr<ErrorCallback> m_errorCallback;
};
}

Powered by Google App Engine
This is Rietveld 408576698