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

Unified Diff: runtime/bin/file.h

Issue 17033003: dart:io | Add File.rename (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 7 years, 6 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 | « runtime/bin/builtin_natives.cc ('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 839c5571eac1f008f37d5c914562f91066c7d065..a2bf20de8852535a34bd5f0cce91c60ab5fd713c 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -65,27 +65,28 @@ class File {
kExistsRequest = 0,
kCreateRequest = 1,
kDeleteRequest = 2,
- kOpenRequest = 3,
- kFullPathRequest = 4,
- kCloseRequest = 5,
- kPositionRequest = 6,
- kSetPositionRequest = 7,
- kTruncateRequest = 8,
- kLengthRequest = 9,
- kLengthFromPathRequest = 10,
- kLastModifiedRequest = 11,
- kFlushRequest = 12,
- kReadByteRequest = 13,
- kWriteByteRequest = 14,
- kReadRequest = 15,
- kReadIntoRequest = 16,
- kWriteFromRequest = 17,
- kCreateLinkRequest = 18,
- kDeleteLinkRequest = 19,
- kLinkTargetRequest = 20,
- kTypeRequest = 21,
- kIdenticalRequest = 22,
- kStatRequest = 23
+ kRenameRequest = 3,
+ kOpenRequest = 4,
+ kFullPathRequest = 5,
+ kCloseRequest = 6,
+ kPositionRequest = 7,
+ kSetPositionRequest = 8,
+ kTruncateRequest = 9,
+ kLengthRequest = 10,
+ kLengthFromPathRequest = 11,
+ kLastModifiedRequest = 12,
+ kFlushRequest = 13,
+ kReadByteRequest = 14,
+ kWriteByteRequest = 15,
+ kReadRequest = 16,
+ kReadIntoRequest = 17,
+ kWriteFromRequest = 18,
+ kCreateLinkRequest = 19,
+ kDeleteLinkRequest = 20,
+ kLinkTargetRequest = 21,
+ kTypeRequest = 22,
+ kIdenticalRequest = 23,
+ kStatRequest = 24
};
enum FileStat {
@@ -152,6 +153,7 @@ class File {
static bool CreateLink(const char* path, const char* target);
static bool Delete(const char* path);
static bool DeleteLink(const char* path);
+ static bool Rename(const char* old_path, const char* new_path);
static off_t LengthFromPath(const char* path);
static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698