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 dart._vmservice; | 5 part of "vmservice.dart"; |
6 | 6 |
7 // A service client. | 7 // A service client. |
8 abstract class Client { | 8 abstract class Client { |
9 final VMService service; | 9 final VMService service; |
10 final bool sendEvents; | 10 final bool sendEvents; |
11 final Set<String> streams = new Set<String>(); | 11 final Set<String> streams = new Set<String>(); |
12 | 12 |
13 Client(this.service, {bool sendEvents: true}) : this.sendEvents = sendEvents { | 13 Client(this.service, {bool sendEvents: true}) : this.sendEvents = sendEvents { |
14 service._addClient(this); | 14 service._addClient(this); |
15 } | 15 } |
(...skipping 20 matching lines...) Expand all Loading... |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 // Sends a result to the client. Implemented in subclasses. | 39 // Sends a result to the client. Implemented in subclasses. |
40 void post(dynamic result); | 40 void post(dynamic result); |
41 | 41 |
42 dynamic toJson() { | 42 dynamic toJson() { |
43 return {}; | 43 return {}; |
44 } | 44 } |
45 } | 45 } |
OLD | NEW |