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

Unified Diff: runtime/bin/vmservice/client/lib/src/service/vm.dart

Issue 203243006: Move all service objects to one file ahead of refactor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js / fix bug Created 6 years, 9 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/vmservice/client/lib/src/service/service.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/lib/src/service/vm.dart
diff --git a/runtime/bin/vmservice/client/lib/src/service/vm.dart b/runtime/bin/vmservice/client/lib/src/service/vm.dart
deleted file mode 100644
index 488651779afb0fa0722f1a44d1608a261757e83d..0000000000000000000000000000000000000000
--- a/runtime/bin/vmservice/client/lib/src/service/vm.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2014, 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 service;
-
-abstract class VM extends Observable {
- @reflectable IsolateList _isolates;
- @reflectable IsolateList get isolates => _isolates;
-
- void _initOnce() {
- assert(_isolates == null);
- _isolates = new IsolateList(this);
- }
-
- VM() {
- _initOnce();
- }
-
- /// Get [id] as an [ObservableMap] from the service directly.
- Future<ObservableMap> getAsMap(String id) {
- return getString(id).then((response) {
- try {
- var map = JSON.decode(response);
- Logger.root.info('Decoded $id');
- return toObservable(map);
- } catch (e, st) {
- return toObservable({
- 'type': 'Error',
- 'id': '',
- 'kind': 'DecodeError',
- 'message': '$e',
- });
- }
- }).catchError((error) {
- return toObservable({
- 'type': 'Error',
- 'id': '',
- 'kind': 'LastResort',
- 'message': '$error'
- });
- });
- }
-
- /// Get [id] as a [String] from the service directly. See [getAsMap].
- Future<String> getString(String id);
-}
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/service.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698