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

Side by Side Diff: runtime/bin/vmservice/vmservice.dart

Issue 131973007: Allow root level requests in the vm service. (Closed) Base URL: http://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 unified diff | Download patch | Annotate | Revision Log
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 library vmservice; 5 library vmservice;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 Future<String> route(Message message) { 78 Future<String> route(Message message) {
79 if (message.completed) { 79 if (message.completed) {
80 return message.response; 80 return message.response;
81 } 81 }
82 if ((message.path.length == 1) && (message.path[0] == 'clients')) { 82 if ((message.path.length == 1) && (message.path[0] == 'clients')) {
83 _clientCollection(message); 83 _clientCollection(message);
84 return message.response; 84 return message.response;
85 } 85 }
86 return runningIsolates.route(message); 86 if (message.path[0] == 'isolates') {
87 return runningIsolates.route(message);
88 }
89
90 return message.sendToVM();
87 } 91 }
88 } 92 }
89
90 void sendServiceMessage(SendPort sp, Object m)
91 native "VMService_SendServiceMessage";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698