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

Side by Side Diff: runtime/bin/directory.h

Issue 25720002: Add Directory.systemTemp getter to replace createSystemTemp(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't add an extra / to a directory ending in // Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_DIRECTORY_H_ 5 #ifndef BIN_DIRECTORY_H_
6 #define BIN_DIRECTORY_H_ 6 #define BIN_DIRECTORY_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/dartutils.h" 9 #include "bin/dartutils.h"
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 UNKNOWN, 250 UNKNOWN,
251 EXISTS, 251 EXISTS,
252 DOES_NOT_EXIST 252 DOES_NOT_EXIST
253 }; 253 };
254 254
255 static void List(DirectoryListing* listing); 255 static void List(DirectoryListing* listing);
256 static ExistsResult Exists(const char* path); 256 static ExistsResult Exists(const char* path);
257 static char* Current(); 257 static char* Current();
258 static bool SetCurrent(const char* path); 258 static bool SetCurrent(const char* path);
259 static bool Create(const char* path); 259 static bool Create(const char* path);
260 static char* CreateTemp(const char* const_template, bool system); 260 static char* SystemTemp();
261 static char* CreateTemp(const char* path);
261 static bool Delete(const char* path, bool recursive); 262 static bool Delete(const char* path, bool recursive);
262 static bool Rename(const char* path, const char* new_path); 263 static bool Rename(const char* path, const char* new_path);
263 264
264 static CObject* CreateRequest(const CObjectArray& request); 265 static CObject* CreateRequest(const CObjectArray& request);
265 static CObject* DeleteRequest(const CObjectArray& request); 266 static CObject* DeleteRequest(const CObjectArray& request);
266 static CObject* ExistsRequest(const CObjectArray& request); 267 static CObject* ExistsRequest(const CObjectArray& request);
267 static CObject* CreateTempRequest(const CObjectArray& request); 268 static CObject* CreateTempRequest(const CObjectArray& request);
268 static CObject* CreateSystemTempRequest(const CObjectArray& request); 269 static CObject* CreateSystemTempRequest(const CObjectArray& request);
269 static CObject* ListStartRequest(const CObjectArray& request); 270 static CObject* ListStartRequest(const CObjectArray& request);
270 static CObject* ListNextRequest(const CObjectArray& request); 271 static CObject* ListNextRequest(const CObjectArray& request);
271 static CObject* ListStopRequest(const CObjectArray& request); 272 static CObject* ListStopRequest(const CObjectArray& request);
272 static CObject* RenameRequest(const CObjectArray& request); 273 static CObject* RenameRequest(const CObjectArray& request);
273 274
274 private: 275 private:
275 DISALLOW_ALLOCATION(); 276 DISALLOW_ALLOCATION();
276 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); 277 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
277 }; 278 };
278 279
279 } // namespace bin 280 } // namespace bin
280 } // namespace dart 281 } // namespace dart
281 282
282 #endif // BIN_DIRECTORY_H_ 283 #endif // BIN_DIRECTORY_H_
OLDNEW
« 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