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

Unified Diff: runtime/bin/file.h

Issue 10443008: Implement File.lastModified. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 702331b78705ab012a83e4a260190fed3f8a279d..ed292af2d636482157fb6bbb4cf5edd9bd3c63e7 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -63,12 +63,13 @@ class File {
kTruncateRequest = 9,
kLengthRequest = 10,
kLengthFromNameRequest = 11,
- kFlushRequest = 12,
- kReadByteRequest = 13,
- kWriteByteRequest = 14,
- kReadListRequest = 15,
- kWriteListRequest = 16,
- kWriteStringRequest = 17
+ kLastModifiedRequest = 12,
+ kFlushRequest = 13,
+ kReadByteRequest = 14,
+ kWriteByteRequest = 15,
+ kReadListRequest = 16,
+ kWriteListRequest = 17,
+ kWriteStringRequest = 18
};
~File();
@@ -125,6 +126,7 @@ class File {
static bool Create(const char* name);
static bool Delete(const char* name);
static off_t LengthFromName(const char* name);
+ static time_t LastModified(const char* name);
Anders Johnsen 2012/05/24 12:05:42 I guess this should return an intptr_t?
Mads Ager (google) 2012/05/24 12:09:21 I'm keeping it consistent with Length which return
Anders Johnsen 2012/05/24 12:12:59 Okay.
static bool IsAbsolutePath(const char* pathname);
static char* GetCanonicalPath(const char* name);
static char* GetContainingDirectory(char* name);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | runtime/bin/file_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698