OLD | NEW |
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 Loading... |
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. | 39 // The last modification time of the file, in seconds since Epoch, |
40 // The value 0.0 means that the time is not set. | 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. |
41 double modificationTime; | 43 double modificationTime; |
42 | 44 |
| 45 // The last modification time of the file, in milliseconds since Epoch, |
| 46 // with a quiet NaN value representing "not known." |
| 47 // FIXME: remove once the milliseconds transition is complete. |
| 48 double modificationTimeMS; |
| 49 |
43 // The length of the file in bytes. | 50 // The length of the file in bytes. |
44 // The value -1 means that the length is not set. | 51 // The value -1 means that the length is not set. |
45 long long length; | 52 long long length; |
46 | 53 |
47 enum Type { | 54 enum Type { |
48 TypeUnknown = 0, | 55 TypeUnknown = 0, |
49 TypeFile, | 56 TypeFile, |
50 TypeDirectory | 57 TypeDirectory |
51 }; | 58 }; |
52 | 59 |
53 Type type; | 60 Type type; |
54 | 61 |
55 WebString platformPath; | 62 WebString platformPath; |
56 | 63 |
57 WebFileInfo() : modificationTime(0.0), length(-1), type(TypeUnknown) { } | 64 WebFileInfo() |
| 65 : modificationTime(0.0) |
| 66 , modificationTimeMS(0.0) |
| 67 , length(-1) |
| 68 , type(TypeUnknown) |
| 69 { |
| 70 } |
58 }; | 71 }; |
59 | 72 |
60 } // namespace blink | 73 } // namespace blink |
61 | 74 |
62 #endif | 75 #endif // WebFileInfo_h |
OLD | NEW |