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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 14671020: FileAPI: Copy base::FileUtilProxy::Entry to fileapi::DirectoryEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index 35e0a502da78901746e767c991db668289694818..5adf4d2ce9ad4771bf6afa8dfd5ab7eaeaf2b16a 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -7,7 +7,8 @@
#include <vector>
-#include "base/files/file_util_proxy.h"
+#include "base/callback.h"
+#include "base/files/file_path.h"
#include "base/platform_file.h"
#include "base/process.h"
@@ -53,6 +54,14 @@ class LocalFileSystemOperation;
//
class FileSystemOperation {
public:
+ // Holds metadata for file or directory entry.
+ struct Entry {
+ base::FilePath::StringType name;
+ bool is_directory;
+ int64 size;
+ base::Time last_modified_time;
+ };
+
virtual ~FileSystemOperation() {}
// Used for CreateFile(), etc. |result| is the return code of the operation.
@@ -76,7 +85,7 @@ class FileSystemOperation {
base::ProcessHandle peer_handle)> OpenFileCallback;
// Used for ReadDirectoryCallback.
- typedef std::vector<base::FileUtilProxy::Entry> FileEntryList;
+ typedef std::vector<FileSystemOperation::Entry> FileEntryList;
// Used for ReadDirectory(). |result| is the return code of the operation,
// |file_list| is the list of files read, and |has_more| is true if some files

Powered by Google App Engine
This is Rietveld 408576698