summaryrefslogtreecommitdiffstats
path: root/WebKit/chromium/public/WebFileInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/chromium/public/WebFileInfo.h')
-rw-r--r--WebKit/chromium/public/WebFileInfo.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/WebKit/chromium/public/WebFileInfo.h b/WebKit/chromium/public/WebFileInfo.h
index 4590a30..be0b3e4 100644
--- a/WebKit/chromium/public/WebFileInfo.h
+++ b/WebKit/chromium/public/WebFileInfo.h
@@ -38,7 +38,19 @@ struct WebFileInfo {
// The value 0.0 means that the time is not set.
double modificationTime;
- WebFileInfo() : modificationTime(0.0) { }
+ // The length of the file in bytes.
+ // The value -1 means that the length is not set.
+ long long length;
+
+ enum Type {
+ TypeUnknown = 0,
+ TypeFile,
+ TypeDirectory
+ };
+
+ Type type;
+
+ WebFileInfo() : modificationTime(0.0), length(-1), type(TypeUnknown) { }
};
} // namespace WebKit