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

Unified Diff: runtime/vm/service.h

Issue 1537523002: Add dart:developer.postEvent for posting events to the service protocol from Dart code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/vm/json_stream.cc ('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
diff --git a/runtime/vm/service.h b/runtime/vm/service.h
index 4d99bedbdf8b59d87eff7d7ebbbfed8936b6a7c6..164a94f1cd29b25ea001c6dc4859e81462cf5a5a 100644
--- a/runtime/vm/service.h
+++ b/runtime/vm/service.h
@@ -124,6 +124,10 @@ class Service : public AllStatic {
const Object& error,
const Instance& stack_trace);
+ static void SendExtensionEvent(Isolate* isolate,
+ const String& event_kind,
+ const String& event_data);
+
static void PostError(const String& method_name,
const Array& parameter_keys,
const Array& parameter_values,
@@ -139,6 +143,7 @@ class Service : public AllStatic {
static StreamInfo echo_stream;
static StreamInfo graph_stream;
static StreamInfo logging_stream;
+ static StreamInfo extension_stream;
static bool ListenStream(const char* stream_id);
static void CancelStream(const char* stream_id);
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698