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

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

Issue 869613005: Upgrade Blink to milliseconds-based last modified filetimes, part 7. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fileinfo-modtime-in-ms-5
Patch Set: 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 | « no previous file | 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 22 matching lines...) Expand all
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
OLDNEW
« 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