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

Side by Side Diff: runtime/vm/service/client.dart

Issue 1152283005: Revert "Add the streamListen and streamCancel rpcs to the vm service." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service/message.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // 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>();
12 11
13 Client(this.service, { bool sendEvents: true }) 12 Client(this.service, { bool sendEvents: true })
14 : this.sendEvents = sendEvents { 13 : this.sendEvents = sendEvents {
15 service._addClient(this); 14 service._addClient(this);
16 } 15 }
17 16
18 /// When implementing, call [close] when the network connection closes. 17 /// When implementing, call [close] when the network connection closes.
19 void close() { 18 void close() {
20 service._removeClient(this); 19 service._removeClient(this);
21 } 20 }
(...skipping 13 matching lines...) Expand all
35 } 34 }
36 35
37 // Sends a result to the client. Implemented in subclasses. 36 // Sends a result to the client. Implemented in subclasses.
38 void post(dynamic result); 37 void post(dynamic result);
39 38
40 dynamic toJson() { 39 dynamic toJson() {
41 return { 40 return {
42 }; 41 };
43 } 42 }
44 } 43 }
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service/message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698