Chromium Code Reviews| Index: runtime/bin/dartutils.h |
| =================================================================== |
| --- runtime/bin/dartutils.h (revision 5191) |
| +++ runtime/bin/dartutils.h (working copy) |
| @@ -56,6 +56,10 @@ |
| class DartUtils { |
| public: |
| + // The following Get/Set functions can call Dart_PropagateError(), |
| + // which will never return. If you have memory to deallocate or |
| + // other C++ level cleanup pending, it is not approprate to call |
| + // these functions. |
|
Søren Gjesse
2012/03/08 21:18:46
I can see how Dart_PropagateError makes it simpler
turnidge
2012/03/08 22:19:26
From offline discussion.
I will change the api to
|
| static int64_t GetIntegerValue(Dart_Handle value_obj); |
| static const char* GetStringValue(Dart_Handle str_obj); |
| static bool GetBooleanValue(Dart_Handle bool_obj); |
| @@ -67,6 +71,7 @@ |
| static void SetStringField(Dart_Handle handle, |
| const char* name, |
| const char* val); |
| + |
| static bool IsDartSchemeURL(const char* url_name); |
| static bool IsDartExtensionSchemeURL(const char* url_name); |
| static bool IsDartIOLibURL(const char* url_name); |