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

Unified Diff: runtime/vm/service_event.h

Issue 1527793004: Provide list of service protocol extensions in isolate and emit an event when one is registered (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 71516a6c80d067a174a10d49f66365e35eaa3da3..32786dd6df7604442d2811b2713604f074675bd8 100644
--- a/runtime/vm/service_event.h
+++ b/runtime/vm/service_event.h
@@ -21,6 +21,8 @@ class ServiceEvent {
kIsolateExit, // Isolate has exited
kIsolateUpdate, // Isolate identity information has changed
+ kServiceExtensionAdded, // A service extension was registered
+
kPauseStart, // --pause-isolates-on-start
kPauseExit, // --pause-isolates-on-exit
kPauseBreakpoint,
@@ -97,6 +99,13 @@ class ServiceEvent {
top_frame_ = frame;
}
+ const String* extension_rpc() const {
+ return extension_rpc_;
+ }
+ void set_extension_rpc(const String* extension_rpc) {
+ extension_rpc_ = extension_rpc;
+ }
+
const Object* exception() const {
return exception_;
}
@@ -168,6 +177,7 @@ class ServiceEvent {
const char* embedder_stream_id_;
Breakpoint* breakpoint_;
ActivationFrame* top_frame_;
+ const String* extension_rpc_;
const Object* exception_;
const Object* async_continuation_;
bool at_async_jump_;
« 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