| 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 22 matching lines...) Expand all Loading... |
| 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 milliseconds 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 double modificationTime; | 41 double modificationTime; |
| 42 | 42 |
| 43 // FIXME: unused, remove once embedder has stopped updating (and expecting) | |
| 44 // this field. | |
| 45 double modificationTimeMS; | |
| 46 | |
| 47 // The length of the file in bytes. | 43 // The length of the file in bytes. |
| 48 // The value -1 means that the length is not set. | 44 // The value -1 means that the length is not set. |
| 49 long long length; | 45 long long length; |
| 50 | 46 |
| 51 enum Type { | 47 enum Type { |
| 52 TypeUnknown = 0, | 48 TypeUnknown = 0, |
| 53 TypeFile, | 49 TypeFile, |
| 54 TypeDirectory | 50 TypeDirectory |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 Type type; | 53 Type type; |
| 58 | 54 |
| 59 WebString platformPath; | 55 WebString platformPath; |
| 60 | 56 |
| 61 WebFileInfo() | 57 WebFileInfo() |
| 62 : modificationTime(0.0) | 58 : modificationTime(0.0) |
| 63 , modificationTimeMS(0.0) | |
| 64 , length(-1) | 59 , length(-1) |
| 65 , type(TypeUnknown) | 60 , type(TypeUnknown) |
| 66 { | 61 { |
| 67 } | 62 } |
| 68 }; | 63 }; |
| 69 | 64 |
| 70 } // namespace blink | 65 } // namespace blink |
| 71 | 66 |
| 72 #endif // WebFileInfo_h | 67 #endif // WebFileInfo_h |
| OLD | NEW |