| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(); | 58 static char* Current(); |
| 59 | 59 |
| 60 static bool Create(const char* path); | 60 static bool Create(const char* path); |
| 61 | 61 |
| 62 static int CreateTemp(const char* const_template, | 62 static char* CreateTemp(const char* const_template); |
| 63 char** path, | |
| 64 char* os_error_message, | |
| 65 int os_error_message_len); | |
| 66 | 63 |
| 67 static bool Delete(const char* path, bool recursive); | 64 static bool Delete(const char* path, bool recursive); |
| 68 | 65 |
| 69 static Dart_Port GetServicePort(); | 66 static Dart_Port GetServicePort(); |
| 70 | 67 |
| 71 private: | 68 private: |
| 72 static dart::Mutex mutex_; | 69 static dart::Mutex mutex_; |
| 73 static int service_ports_size_; | 70 static int service_ports_size_; |
| 74 static Dart_Port* service_ports_; | 71 static Dart_Port* service_ports_; |
| 75 static int service_ports_index_; | 72 static int service_ports_index_; |
| 76 | 73 |
| 77 DISALLOW_ALLOCATION(); | 74 DISALLOW_ALLOCATION(); |
| 78 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 | 78 |
| 82 #endif // BIN_DIRECTORY_H_ | 79 #endif // BIN_DIRECTORY_H_ |
| OLD | NEW |