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

Unified Diff: components/filesystem/public/interfaces/types.mojom

Issue 1163713002: Mandoline filesystem: Enable windows build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add '.get()' Created 5 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
« no previous file with comments | « components/filesystem/public/interfaces/file_system.mojom ('k') | components/filesystem/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/public/interfaces/types.mojom
diff --git a/components/filesystem/public/interfaces/types.mojom b/components/filesystem/public/interfaces/types.mojom
index f3111438e6697714e19058e98f33d710186006c7..97988f65b2f6c56d382875f29ce27a30ee74dcf1 100644
--- a/components/filesystem/public/interfaces/types.mojom
+++ b/components/filesystem/public/interfaces/types.mojom
@@ -6,7 +6,7 @@ module filesystem;
// Error codes used by the file system. These error codes line up exactly with
// those of base::File.
-enum Error {
+enum FileError {
OK = 0,
FAILED = -1,
IN_USE = -2,
@@ -50,7 +50,7 @@ struct TimespecOrNow {
// appropriate capabilities) and may not reflect reality.
struct FileInformation {
// Type of the file.
- FileType type;
+ FsFileType type;
// Size of the file, in bytes. Zero for directories.
int64 size;
// Last access time, in seconds since Unix Epoch.
@@ -79,7 +79,10 @@ const uint32 kFlagWrite = 0x40;
const uint32 kFlagAppend = 0x80;
// File types.
-enum FileType {
+//
+// Note: This is named FsFileType because otherwise we have a name collision
+// with windows.h.
+enum FsFileType {
UNKNOWN = 0,
REGULAR_FILE,
DIRECTORY,
@@ -87,7 +90,7 @@ enum FileType {
// Describes a directory entry (i.e., a single member of a directory).
struct DirectoryEntry {
- FileType type;
+ FsFileType type;
string name;
};
« no previous file with comments | « components/filesystem/public/interfaces/file_system.mojom ('k') | components/filesystem/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698