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

Unified Diff: runtime/lib/vmservice.cc

Issue 1640773005: Make it possible to share the embedder's dart sources for the vmservice (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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_impl.cc ('k') | runtime/lib/vmservice_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/vmservice.cc
diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc
index 83a25e1b98e05a308b81b42abe60bf470afee8a2..81a49c061f5990412988fd1e778a66a6e4402a6d 100644
--- a/runtime/lib/vmservice.cc
+++ b/runtime/lib/vmservice.cc
@@ -134,6 +134,17 @@ DEFINE_NATIVE_ENTRY(VMService_OnExit, 0) {
}
+DEFINE_NATIVE_ENTRY(VMService_OnServerAddressChange, 1) {
+ GET_NATIVE_ARGUMENT(String, address, arguments->NativeArgAt(0));
+ if (address.IsNull()) {
+ ServiceIsolate::SetServerAddress(NULL);
+ } else {
+ ServiceIsolate::SetServerAddress(address.ToCString());
+ }
+ return Object::null();
+}
+
+
DEFINE_NATIVE_ENTRY(VMService_ListenStream, 1) {
GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0));
bool result = Service::ListenStream(stream_id.ToCString());
« no previous file with comments | « runtime/bin/vmservice_impl.cc ('k') | runtime/lib/vmservice_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698