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

Unified Diff: runtime/lib/vmservice/client.dart

Issue 1396603002: Properly split dart:_vmservice across sdk and runtime (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | runtime/lib/vmservice/constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/vmservice/client.dart
diff --git a/runtime/lib/vmservice/client.dart b/runtime/lib/vmservice/client.dart
deleted file mode 100644
index 279b4247b3199867f283daa65b61553ba5a1f3b4..0000000000000000000000000000000000000000
--- a/runtime/lib/vmservice/client.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of vmservice;
-
-// A service client.
-abstract class Client {
- final VMService service;
- final bool sendEvents;
- final Set<String> streams = new Set<String>();
-
- Client(this.service, { bool sendEvents: true })
- : this.sendEvents = sendEvents {
- service._addClient(this);
- }
-
- // Disconnects the client.
- disconnect();
-
- /// When implementing, call [close] when the network connection closes.
- void close() {
- service._removeClient(this);
- }
-
- /// Call to process a message. Response will be posted with 'seq'.
- void onMessage(var seq, Message message) {
- try {
- // Send message to service.
- service.route(message).then((response) {
- // Call post when the response arrives.
- post(response);
- });
- } catch (e, st) {
- message.setErrorResponse(
- kInternalError, 'Unexpected exception:$e\n$st');
- post(message.response);
- }
- }
-
- // Sends a result to the client. Implemented in subclasses.
- void post(dynamic result);
-
- dynamic toJson() {
- return {
- };
- }
-}
« no previous file with comments | « no previous file | runtime/lib/vmservice/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698