Index: runtime/vm/service.h |
diff --git a/runtime/vm/service.h b/runtime/vm/service.h |
index a1ee159c3e4f6e7a0a6c400ac61ded5264c8f7cc..59d11fbbe887bd8bfdb43cfc489c18838e3e8b11 100644 |
--- a/runtime/vm/service.h |
+++ b/runtime/vm/service.h |
@@ -27,6 +27,7 @@ class Isolate; |
class JSONStream; |
class Object; |
class RawInstance; |
+class RawError; |
class ServiceEvent; |
class String; |
@@ -81,14 +82,14 @@ class StreamInfo { |
class Service : public AllStatic { |
public: |
// Handles a message which is not directed to an isolate. |
- static void HandleRootMessage(const Array& message); |
+ static RawError* HandleRootMessage(const Array& message); |
// Handles a message which is not directed to an isolate and also |
// expects the parameter keys and values to be actual dart objects. |
- static void HandleObjectRootMessage(const Array& message); |
+ static RawError* HandleObjectRootMessage(const Array& message); |
// Handles a message which is directed to a particular isolate. |
- static void HandleIsolateMessage(Isolate* isolate, const Array& message); |
+ static RawError* HandleIsolateMessage(Isolate* isolate, const Array& message); |
static void HandleEvent(ServiceEvent* event); |
@@ -169,9 +170,9 @@ class Service : public AllStatic { |
static void CheckForPause(Isolate* isolate, JSONStream* stream); |
private: |
- static void InvokeMethod(Isolate* isolate, |
- const Array& message, |
- bool parameters_are_dart_objects = false); |
+ static RawError* InvokeMethod(Isolate* isolate, |
+ const Array& message, |
+ bool parameters_are_dart_objects = false); |
static void EmbedderHandleMessage(EmbedderServiceHandler* handler, |
JSONStream* js); |
@@ -203,7 +204,7 @@ class Service : public AllStatic { |
const char* kind, |
JSONStream* event); |
- static void MaybePause(Isolate* isolate); |
+ static RawError* MaybePause(Isolate* isolate, const Error& error); |
static EmbedderServiceHandler* isolate_service_handler_head_; |
static EmbedderServiceHandler* root_service_handler_head_; |