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

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

Issue 1143783003: Add the streamListen and streamCancel rpcs to the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: before commit Created 5 years, 7 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/vm/service/client.dart ('k') | runtime/vm/service/vmservice.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/message.dart
diff --git a/runtime/vm/service/message.dart b/runtime/vm/service/message.dart
index 3afbd0dfce50c18f56ef39ffc10fb0fb254d4e85..7b07baac5e6ee2d9bcc8223d78f36e00e0d1820c 100644
--- a/runtime/vm/service/message.dart
+++ b/runtime/vm/service/message.dart
@@ -9,6 +9,7 @@ class Message {
bool get completed => _completer.isCompleted;
/// Future of response.
Future<String> get response => _completer.future;
+ Client client;
// Client-side identifier for this message.
final serial;
@@ -33,7 +34,7 @@ class Message {
});
}
- Message.fromJsonRpc(Map map)
+ Message.fromJsonRpc(this.client, Map map)
: serial = map['id'], method = map['method'] {
params.addAll(map['params']);
}
@@ -48,12 +49,12 @@ class Message {
return uri.pathSegments[0];
}
- Message.fromUri(Uri uri)
+ Message.fromUri(this.client, Uri uri)
: method = _methodNameFromUri(uri) {
params.addAll(uri.queryParameters);
}
- Message.forIsolate(Uri uri, RunningIsolate isolate)
+ Message.forIsolate(this.client, Uri uri, RunningIsolate isolate)
: method = _methodNameFromUri(uri) {
params.addAll(uri.queryParameters);
params['isolateId'] = isolate.serviceId;
« no previous file with comments | « runtime/vm/service/client.dart ('k') | runtime/vm/service/vmservice.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698