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

Unified Diff: runtime/bin/file.h

Issue 2681683005: [dart:io] Adds functions to set file access and modification time (Closed)
Patch Set: Update changelog Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 300e56103c68765741c5afece830324bd08af7e5..d5d76b77cd6ab7c304514adc7b42cf112df40d0a 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -163,6 +163,9 @@ class File : public ReferenceCounted<File> {
static int64_t LengthFromPath(const char* path);
static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
+ static bool SetLastModified(const char* path, int64_t millis);
+ static time_t LastAccessed(const char* path);
+ static bool SetLastAccessed(const char* path, int64_t millis);
static bool IsAbsolutePath(const char* path);
static const char* PathSeparator();
static const char* StringEscapedPathSeparator();
@@ -190,6 +193,9 @@ class File : public ReferenceCounted<File> {
static CObject* LengthRequest(const CObjectArray& request);
static CObject* LengthFromPathRequest(const CObjectArray& request);
static CObject* LastModifiedRequest(const CObjectArray& request);
+ static CObject* SetLastModifiedRequest(const CObjectArray& request);
+ static CObject* LastAccessedRequest(const CObjectArray& request);
+ static CObject* SetLastAccessedRequest(const CObjectArray& request);
static CObject* FlushRequest(const CObjectArray& request);
static CObject* ReadByteRequest(const CObjectArray& request);
static CObject* WriteByteRequest(const CObjectArray& request);
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698