| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 static bool IsDartIOLibURL(const char* url_name); | 108 static bool IsDartIOLibURL(const char* url_name); |
| 109 static bool IsDartBuiltinLibURL(const char* url_name); | 109 static bool IsDartBuiltinLibURL(const char* url_name); |
| 110 static bool IsHttpSchemeURL(const char* url_name); | 110 static bool IsHttpSchemeURL(const char* url_name); |
| 111 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 111 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
| 112 Dart_Handle library, | 112 Dart_Handle library, |
| 113 const char* url_str); | 113 const char* url_str); |
| 114 static void* OpenFile(const char* name, bool write); | 114 static void* OpenFile(const char* name, bool write); |
| 115 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); | 115 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); |
| 116 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); | 116 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); |
| 117 static void CloseFile(void* stream); | 117 static void CloseFile(void* stream); |
| 118 static bool EntropySource(uint8_t* buffer, size_t length); |
| 119 |
| 118 static Dart_Handle ReadStringFromFile(const char* filename); | 120 static Dart_Handle ReadStringFromFile(const char* filename); |
| 119 static Dart_Handle ReadStringFromHttp(const char* filename); | 121 static Dart_Handle ReadStringFromHttp(const char* filename); |
| 120 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 121 Dart_Handle library, | 123 Dart_Handle library, |
| 122 Dart_Handle url); | 124 Dart_Handle url); |
| 123 static Dart_Handle LoadScript(const char* script_uri, | 125 static Dart_Handle LoadScript(const char* script_uri, |
| 124 Dart_Handle builtin_lib); | 126 Dart_Handle builtin_lib); |
| 125 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri, | 127 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri, |
| 126 Dart_Handle builtin_lib); | 128 Dart_Handle builtin_lib); |
| 127 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, | 129 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 } | 533 } |
| 532 | 534 |
| 533 private: | 535 private: |
| 534 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 536 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 535 }; | 537 }; |
| 536 | 538 |
| 537 } // namespace bin | 539 } // namespace bin |
| 538 } // namespace dart | 540 } // namespace dart |
| 539 | 541 |
| 540 #endif // BIN_DARTUTILS_H_ | 542 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |