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

Side by Side Diff: public/platform/WebFileInfo.h

Issue 882343002: Upgrade Blink to milliseconds-based last modified filetimes, part 5. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fileinfo-modtime-in-ms-3
Patch Set: rebased Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « Source/web/WebFileChooserCompletionImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebFileInfo_h 31 #ifndef WebFileInfo_h
32 #define WebFileInfo_h 32 #define WebFileInfo_h
33 33
34 #include "WebString.h" 34 #include "WebString.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 struct WebFileInfo { 38 struct WebFileInfo {
39 // The last modification time of the file, in seconds since Epoch, 39 // The last modification time of the file, in milliseconds since Epoch,
40 // with a quiet NaN value representing "not known." 40 // with a quiet NaN value representing "not known."
41 // FIXME: change to be milliseconds-based once the transition to a
42 // WebFileInfo with milliseconds-based modification is complete.
43 double modificationTime; 41 double modificationTime;
44 42
45 // The last modification time of the file, in milliseconds since Epoch, 43 // FIXME: unused, remove once embedder has stopped updating (and expecting)
46 // with a quiet NaN value representing "not known." 44 // this field.
47 // FIXME: remove once the milliseconds transition is complete.
48 double modificationTimeMS; 45 double modificationTimeMS;
49 46
50 // The length of the file in bytes. 47 // The length of the file in bytes.
51 // The value -1 means that the length is not set. 48 // The value -1 means that the length is not set.
52 long long length; 49 long long length;
53 50
54 enum Type { 51 enum Type {
55 TypeUnknown = 0, 52 TypeUnknown = 0,
56 TypeFile, 53 TypeFile,
57 TypeDirectory 54 TypeDirectory
58 }; 55 };
59 56
60 Type type; 57 Type type;
61 58
62 WebString platformPath; 59 WebString platformPath;
63 60
64 WebFileInfo() 61 WebFileInfo()
65 : modificationTime(0.0) 62 : modificationTime(0.0)
66 , modificationTimeMS(0.0) 63 , modificationTimeMS(0.0)
67 , length(-1) 64 , length(-1)
68 , type(TypeUnknown) 65 , type(TypeUnknown)
69 { 66 {
70 } 67 }
71 }; 68 };
72 69
73 } // namespace blink 70 } // namespace blink
74 71
75 #endif // WebFileInfo_h 72 #endif // WebFileInfo_h
OLDNEW
« no previous file with comments | « Source/web/WebFileChooserCompletionImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698