Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: runtime/vm/service.h

Issue 474633002: Optional binary payloads in VM service events. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.h
===================================================================
--- runtime/vm/service.h (revision 39330)
+++ runtime/vm/service.h (working copy)
@@ -11,13 +11,14 @@
namespace dart {
+class Array;
class DebuggerEvent;
+class EmbedderServiceHandler;
class GCEvent;
-class EmbedderServiceHandler;
class Instance;
class Isolate;
class JSONStream;
-class Array;
+class Object;
class RawInstance;
class String;
@@ -65,6 +66,8 @@
return isolate == service_isolate_;
}
+ static void SendEchoEvent(Isolate* isolate);
+
private:
// These must be kept in sync with service/constants.dart
static const int kEventFamilyDebug = 0;
@@ -79,7 +82,12 @@
static Dart_Handle GetSource(const char* name);
static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library,
Dart_Handle url);
- static void SendEvent(intptr_t eventId, const String& eventMessage);
+ static void SendEvent(intptr_t eventId, const Object& eventMessage);
+ // Does not take ownership of 'data'.
+ static void SendEvent(intptr_t eventId,
+ const String& meta,
+ const uint8_t* data,
+ intptr_t size);
static EmbedderServiceHandler* isolate_service_handler_head_;
static EmbedderServiceHandler* root_service_handler_head_;
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698