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

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

Issue 9622001: Add the ability to get the current directory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix windows Created 8 years, 9 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 kCreateTempRequest = 3, 48 kCreateTempRequest = 3,
49 kListRequest = 4 49 kListRequest = 4
50 }; 50 };
51 51
52 static bool List(const char* path, 52 static bool List(const char* path,
53 bool recursive, 53 bool recursive,
54 DirectoryListing* listing); 54 DirectoryListing* listing);
55 55
56 static ExistsResult Exists(const char* path); 56 static ExistsResult Exists(const char* path);
57 57
58 static char* Current();
59
58 static bool Create(const char* path); 60 static bool Create(const char* path);
59 61
60 static int CreateTemp(const char* const_template, 62 static int CreateTemp(const char* const_template,
61 char** path, 63 char** path,
62 char* os_error_message, 64 char* os_error_message,
63 int os_error_message_len); 65 int os_error_message_len);
64 66
65 static bool Delete(const char* path, bool recursive); 67 static bool Delete(const char* path, bool recursive);
66 68
67 static Dart_Port GetServicePort(); 69 static Dart_Port GetServicePort();
68 70
69 private: 71 private:
70 static dart::Mutex mutex_; 72 static dart::Mutex mutex_;
71 static int service_ports_size_; 73 static int service_ports_size_;
72 static Dart_Port* service_ports_; 74 static Dart_Port* service_ports_;
73 static int service_ports_index_; 75 static int service_ports_index_;
74 76
75 DISALLOW_ALLOCATION(); 77 DISALLOW_ALLOCATION();
76 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); 78 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
77 }; 79 };
78 80
79 81
80 #endif // BIN_DIRECTORY_H_ 82 #endif // BIN_DIRECTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698