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

Unified Diff: runtime/vm/service/message.dart

Issue 1100583006: Add crash dumps to service protocol and Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
Index: runtime/vm/service/message.dart
diff --git a/runtime/vm/service/message.dart b/runtime/vm/service/message.dart
index b4654999c9a8b307cf92beb6fc651c6cbc7fe722..c161e9259bf4b11bb42df09d2dcb0f5e15a5a0b4 100644
--- a/runtime/vm/service/message.dart
+++ b/runtime/vm/service/message.dart
@@ -51,6 +51,16 @@ class Message {
params.addAll(uri.queryParameters);
}
+ Message.forIsolate(Uri uri, RunningIsolate isolate)
+ : method = _methodNameFromUri(uri) {
+ params.addAll(uri.queryParameters);
+ params['isolateId'] = isolate.serviceId;
+ }
+
+ Uri toUri() {
+ return new Uri(path: method, queryParameters: params);
+ }
+
dynamic toJson() {
return {
'path': path,

Powered by Google App Engine
This is Rietveld 408576698