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

Unified Diff: public/platform/WebFileSystem.h

Issue 178333009: Handle has_more correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unneeded space 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: public/platform/WebFileSystem.h
diff --git a/public/platform/WebFileSystem.h b/public/platform/WebFileSystem.h
index c89c6d1426c7d07fdf1675821043f1f9743d2cf0..cf8aad41ff2f480f1ff5f62afdabbbe6852427c8 100644
--- a/public/platform/WebFileSystem.h
+++ b/public/platform/WebFileSystem.h
@@ -36,6 +36,9 @@
#include "WebFileSystemType.h"
#include "WebURL.h"
+// FIXME: Remove this #define.
+#define READ_DIRECTORY_RETURNS_INT
+
namespace blink {
class WebFileWriter;
@@ -133,10 +136,10 @@ public:
// WebFileSystemCallbacks::didFail() must be called otherwise.
virtual void directoryExists(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); }
- // Reads directory entries of a given directory at |path|.
+ // Reads directory entries of a given directory at |path| and returns a callbacks ID which can be used to wait for additional results.
// WebFileSystemCallbacks::didReadDirectory() must be called when the operation is completed successfully.
// WebFileSystemCallbacks::didFail() must be called otherwise.
- virtual void readDirectory(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); }
+ virtual int readDirectory(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); return 0; }
// Creates a WebFileWriter that can be used to write to the given file.
// WebFileSystemCallbacks::didCreateFileWriter() must be called with the created WebFileWriter when the operation is completed successfully.
@@ -153,6 +156,11 @@ public:
// WebFileSystemCallbacks::didFail() must be called otherwise.
virtual void createSnapshotFileAndReadMetadata(const WebURL& path, WebFileSystemCallbacks) { BLINK_ASSERT_NOT_REACHED(); }
+ // Waits for additional results returned for the method call and returns true if possible.
+ // Returns false if there is no running method call corresponding for the given ID.
+ // |callbacksId| must be the value returned by the original method call.
+ virtual bool waitForAdditionalResult(int callbacksId) { BLINK_ASSERT_NOT_REACHED(); return false; }
+
protected:
virtual ~WebFileSystem() { }
};
« Source/modules/filesystem/DirectoryReader.h ('K') | « Source/modules/filesystem/SyncCallbackHelper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698