c76b6eb1c2
Move most service sources into the VM. R=asiva@google.com Review URL: https://codereview.chromium.org//125103004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31809 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
527 B
Dart
19 lines
527 B
Dart
// 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;
|
|
|
|
class RunningIsolate implements MessageRouter {
|
|
final int portId;
|
|
final SendPort sendPort;
|
|
final String name;
|
|
|
|
RunningIsolate(this.portId, this.sendPort, this.name);
|
|
|
|
Future<String> route(Message message) {
|
|
// Send message to isolate.
|
|
return message.send(sendPort);
|
|
}
|
|
}
|