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

Unified Diff: runtime/vm/service_event.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/service/service.md ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_event.h
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h
index 32786dd6df7604442d2811b2713604f074675bd8..ed4153bdd44dcb7e6a85af4a93dcb1ac9d88e927 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -41,6 +41,8 @@ class ServiceEvent {
kLogging,
+ kExtension,
+
kIllegal,
};
@@ -55,6 +57,11 @@ class ServiceEvent {
const Instance* stack_trace;
};
+ struct ExtensionEvent {
+ const String* event_kind;
+ const String* event_data;
+ };
+
ServiceEvent(Isolate* isolate, EventKind event_kind);
explicit ServiceEvent(const DebuggerEvent* debugger_event);
@@ -162,6 +169,10 @@ class ServiceEvent {
log_record_ = log_record;
}
+ void set_extension_event(const ExtensionEvent& extension_event) {
+ extension_event_ = extension_event;
+ }
+
int64_t timestamp() const {
return timestamp_;
}
@@ -186,6 +197,7 @@ class ServiceEvent {
const uint8_t* bytes_;
intptr_t bytes_length_;
LogRecord log_record_;
+ ExtensionEvent extension_event_;
int64_t timestamp_;
};
« no previous file with comments | « runtime/vm/service/service.md ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698