| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of vmservice; | 5 part of vmservice; |
| 6 | 6 |
| 7 class Message { | 7 class Message { |
| 8 final Completer _completer = new Completer.sync(); | 8 final Completer _completer = new Completer.sync(); |
| 9 bool get completed => _completer.isCompleted; | 9 bool get completed => _completer.isCompleted; |
| 10 /// Future of response. | 10 /// Future of response. |
| 11 Future<String> get response => _completer.future; | 11 Future<String> get response => _completer.future; |
| 12 /// Path. | 12 /// Path. |
| 13 final List<String> path = new List<String>(); | 13 final List path = new List(); |
| 14 /// Options. | 14 /// Options. |
| 15 final Map<String, String> options = new Map<String, String>(); | 15 final Map options = new Map(); |
| 16 | 16 |
| 17 void _setPath(List<String> pathSegments) { | 17 void _setPath(List<String> pathSegments) { |
| 18 if (pathSegments == null) { | 18 if (pathSegments == null) { |
| 19 return; | 19 return; |
| 20 } | 20 } |
| 21 pathSegments.forEach((String segment) { | 21 pathSegments.forEach((String segment) { |
| 22 if (segment == null || segment == '') { | 22 if (segment == null || segment == '') { |
| 23 return; | 23 return; |
| 24 } | 24 } |
| 25 path.add(segment); | 25 path.add(segment); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 'options': options | 96 'options': options |
| 97 })); | 97 })); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 void sendIsolateServiceMessage(SendPort sp, List m) | 101 void sendIsolateServiceMessage(SendPort sp, List m) |
| 102 native "VMService_SendIsolateServiceMessage"; | 102 native "VMService_SendIsolateServiceMessage"; |
| 103 | 103 |
| 104 void sendRootServiceMessage(List m) | 104 void sendRootServiceMessage(List m) |
| 105 native "VMService_SendRootServiceMessage"; | 105 native "VMService_SendRootServiceMessage"; |
| OLD | NEW |