| 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 "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 static void SetStringField(Dart_Handle handle, | 78 static void SetStringField(Dart_Handle handle, |
| 79 const char* name, | 79 const char* name, |
| 80 const char* val); | 80 const char* val); |
| 81 static bool IsDartSchemeURL(const char* url_name); | 81 static bool IsDartSchemeURL(const char* url_name); |
| 82 static bool IsDartExtensionSchemeURL(const char* url_name); | 82 static bool IsDartExtensionSchemeURL(const char* url_name); |
| 83 static bool IsDartCryptoLibURL(const char* url_name); | 83 static bool IsDartCryptoLibURL(const char* url_name); |
| 84 static bool IsDartIOLibURL(const char* url_name); | 84 static bool IsDartIOLibURL(const char* url_name); |
| 85 static bool IsDartJsonLibURL(const char* url_name); | 85 static bool IsDartJsonLibURL(const char* url_name); |
| 86 static bool IsDartUriLibURL(const char* url_name); | 86 static bool IsDartUriLibURL(const char* url_name); |
| 87 static bool IsDartUtfLibURL(const char* url_name); | 87 static bool IsDartUtfLibURL(const char* url_name); |
| 88 static bool IsDartWebLibURL(const char* url_name); |
| 88 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, | 89 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, |
| 89 Dart_Handle library, | 90 Dart_Handle library, |
| 90 const char* url_str); | 91 const char* url_str); |
| 91 static Dart_Handle ReadStringFromFile(const char* filename); | 92 static Dart_Handle ReadStringFromFile(const char* filename); |
| 92 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 93 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 93 Dart_Handle library, | 94 Dart_Handle library, |
| 94 Dart_Handle url); | 95 Dart_Handle url); |
| 95 static Dart_Handle LoadScript(const char* script_uri, | 96 static Dart_Handle LoadScript(const char* script_uri, |
| 96 bool resolve_script, | 97 bool resolve_script, |
| 97 Dart_Handle builtin_lib); | 98 Dart_Handle builtin_lib); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } | 363 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } |
| 363 Dart_PeerFinalizer Callback() const { | 364 Dart_PeerFinalizer Callback() const { |
| 364 return cobject_->value.as_external_byte_array.callback; | 365 return cobject_->value.as_external_byte_array.callback; |
| 365 } | 366 } |
| 366 | 367 |
| 367 private: | 368 private: |
| 368 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); | 369 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); |
| 369 }; | 370 }; |
| 370 | 371 |
| 371 #endif // BIN_DARTUTILS_H_ | 372 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |