| 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_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
| 6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 const char* url_string); | 178 const char* url_string); |
| 179 | 179 |
| 180 static Dart_Handle SetWorkingDirectory(Dart_Handle builtin_lib); | 180 static Dart_Handle SetWorkingDirectory(Dart_Handle builtin_lib); |
| 181 | 181 |
| 182 static Dart_Handle ResolveScriptUri(Dart_Handle script_uri, | 182 static Dart_Handle ResolveScriptUri(Dart_Handle script_uri, |
| 183 Dart_Handle builtin_lib); | 183 Dart_Handle builtin_lib); |
| 184 | 184 |
| 185 static Dart_Handle FilePathFromUri(Dart_Handle script_uri, | 185 static Dart_Handle FilePathFromUri(Dart_Handle script_uri, |
| 186 Dart_Handle builtin_lib); | 186 Dart_Handle builtin_lib); |
| 187 | 187 |
| 188 static Dart_Handle ExtensionPathFromUri(Dart_Handle extension_uri, |
| 189 Dart_Handle builtin_lib); |
| 190 |
| 188 static Dart_Handle ResolveUri(Dart_Handle library_url, | 191 static Dart_Handle ResolveUri(Dart_Handle library_url, |
| 189 Dart_Handle url, | 192 Dart_Handle url, |
| 190 Dart_Handle builtin_lib); | 193 Dart_Handle builtin_lib); |
| 191 | 194 |
| 192 // Sniffs the specified text_buffer to see if it contains the magic number | 195 // Sniffs the specified text_buffer to see if it contains the magic number |
| 193 // representing a script snapshot. If the text_buffer is a script snapshot | 196 // representing a script snapshot. If the text_buffer is a script snapshot |
| 194 // the return value is an updated pointer to the text_buffer pointing past | 197 // the return value is an updated pointer to the text_buffer pointing past |
| 195 // the magic number value. The 'buffer_len' parameter is also appropriately | 198 // the magic number value. The 'buffer_len' parameter is also appropriately |
| 196 // adjusted. | 199 // adjusted. |
| 197 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer, | 200 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer, |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 } | 545 } |
| 543 | 546 |
| 544 private: | 547 private: |
| 545 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 548 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 546 }; | 549 }; |
| 547 | 550 |
| 548 } // namespace bin | 551 } // namespace bin |
| 549 } // namespace dart | 552 } // namespace dart |
| 550 | 553 |
| 551 #endif // BIN_DARTUTILS_H_ | 554 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |