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

Unified Diff: webkit/fileapi/file_system_file_util.h

Issue 7717020: Adding Size() to AbstractFileEnumerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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: webkit/fileapi/file_system_file_util.h
diff --git a/webkit/fileapi/file_system_file_util.h b/webkit/fileapi/file_system_file_util.h
index 8a46fbdb6d5974369ce2d8e7b12bc76663879425..9a758bebab10635137e5c2810a547c7ca39da311 100644
--- a/webkit/fileapi/file_system_file_util.h
+++ b/webkit/fileapi/file_system_file_util.h
@@ -222,12 +222,14 @@ class FileSystemFileUtil {
// Returns an empty string if there are no more results.
virtual FilePath Next() = 0;
+ virtual int64 Size() = 0;
virtual bool IsDirectory() = 0;
};
class EmptyFileEnumerator : public AbstractFileEnumerator {
- virtual FilePath Next() { return FilePath(); }
- virtual bool IsDirectory() { return false; }
+ virtual FilePath Next() OVERRIDE { return FilePath(); }
+ virtual int64 Size() OVERRIDE { return 0; }
+ virtual bool IsDirectory() OVERRIDE { return false; }
};
// Returns a pointer to a new instance of AbstractFileEnumerator which is
« no previous file with comments | « no previous file | webkit/fileapi/file_system_file_util.cc » ('j') | webkit/fileapi/local_file_system_file_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698