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

Unified Diff: runtime/bin/directory.h

Issue 10414046: Add support for directory renaming to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments 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
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.h
diff --git a/runtime/bin/directory.h b/runtime/bin/directory.h
index 8c61bb61e86b6726a6f17fd6c8dc3ae4153ccd93..9455bbbc7c2f65fd4a04c1eb1c6939ea3f0132be 100644
--- a/runtime/bin/directory.h
+++ b/runtime/bin/directory.h
@@ -41,28 +41,26 @@ class Directory {
DOES_NOT_EXIST
};
+ // This enum must be kept in sync with the request values in
+ // directory_impl.dart.
enum DirectoryRequest {
kCreateRequest = 0,
kDeleteRequest = 1,
kExistsRequest = 2,
kCreateTempRequest = 3,
- kListRequest = 4
+ kListRequest = 4,
+ kRenameRequest = 5
};
static bool List(const char* path,
bool recursive,
DirectoryListing* listing);
-
static ExistsResult Exists(const char* path);
-
static char* Current();
-
static bool Create(const char* path);
-
static char* CreateTemp(const char* const_template);
-
static bool Delete(const char* path, bool recursive);
-
+ static bool Rename(const char* path, const char* new_path);
static Dart_Port GetServicePort();
private:
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698