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

Unified Diff: public/platform/WebFileInfo.h

Issue 873723004: Upgrade Blink to milliseconds-based last modified filetimes, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebFileInfo.h
diff --git a/public/platform/WebFileInfo.h b/public/platform/WebFileInfo.h
index e48d1b16501d3ae461ceee96514977f9decce08e..3e78971589834cafa9437104ed0fa4bb04f54214 100644
--- a/public/platform/WebFileInfo.h
+++ b/public/platform/WebFileInfo.h
@@ -36,10 +36,17 @@
namespace blink {
struct WebFileInfo {
- // The last modification time of the file, in seconds.
- // The value 0.0 means that the time is not set.
+ // The last modification time of the file, in seconds since Epoch,
+ // with a quiet NaN value representing "not known."
+ // FIXME: change to be milliseconds-based once the transition to a
+ // WebFileInfo with milliseconds-based modification is complete.
double modificationTime;
+ // The last modification time of the file, in milliseconds since Epoch,
+ // with a quiet NaN value representing "not known."
+ // FIXME: remove once the milliseconds transition is complete.
+ double modificationTimeMS;
+
// The length of the file in bytes.
// The value -1 means that the length is not set.
long long length;
@@ -54,9 +61,15 @@ struct WebFileInfo {
WebString platformPath;
- WebFileInfo() : modificationTime(0.0), length(-1), type(TypeUnknown) { }
+ WebFileInfo()
+ : modificationTime(0.0)
+ , modificationTimeMS(0.0)
+ , length(-1)
+ , type(TypeUnknown)
+ {
+ }
};
} // namespace blink
-#endif
+#endif // WebFileInfo_h
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698