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

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

Issue 125103004: Move service into VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/bin/run_vm_tests.cc ('k') | runtime/bin/vmservice/constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client.dart
diff --git a/runtime/bin/vmservice/client.dart b/runtime/bin/vmservice/client.dart
deleted file mode 100644
index 553fa1fd0a06c90cb3f74165500322bc4b68b457..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client.dart
+++ /dev/null
@@ -1,43 +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 {
- /// Port that lives as long as the network client.
- final RawReceivePort receivePort = new RawReceivePort();
- final VMService service;
-
- Client(this.service) {
- receivePort.handler = (response) {
- post(null, response);
- };
- service._addClient(this);
- }
-
- /// When implementing, call [close] when the network connection closes.
- void close() {
- receivePort.close();
- service._removeClient(this);
- }
-
- /// Call to process a message. Response will be posted with 'seq'.
- void onMessage(var seq, Message message) {
- // Call post when the response arrives.
- message.response.then((response) {
- post(seq, response);
- });
- // Send message to service.
- service.route(message);
- }
-
- /// When implementing, responsible for sending [response] to the client.
- void post(var seq, String response);
-
- dynamic toJson() {
- return {
- };
- }
-}
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/bin/vmservice/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698