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 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 |
OLD | NEW |