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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory/location_manager.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 part of observatory; 5 part of observatory;
6 6
7 /// The LocationManager class observes and parses the hash ('#') portion of the 7 /// The LocationManager class observes and parses the hash ('#') portion of the
8 /// URL in window.location. The text after the '#' is used as the request 8 /// URL in window.location. The text after the '#' is used as the request
9 /// string for the VM service. 9 /// string for the VM service.
10 class LocationManager extends Observable { 10 class LocationManager extends Observable {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 String currentIsolateScriptLink(String scriptURL) { 103 String currentIsolateScriptLink(String scriptURL) {
104 var encoded = Uri.encodeComponent(scriptURL); 104 var encoded = Uri.encodeComponent(scriptURL);
105 return currentIsolateRelativeLink('scripts/$encoded'); 105 return currentIsolateRelativeLink('scripts/$encoded');
106 } 106 }
107 107
108 /// Create a request for [l] on [isolateId]. 108 /// Create a request for [l] on [isolateId].
109 @observable 109 @observable
110 String relativeLink(String isolateId, String l) { 110 String relativeLink(String isolateId, String l) {
111 return '#/$isolateId/$l'; 111 return '#/$isolateId/$l';
112 } 112 }
113
114 /// Create a request for [l] on [isolateId].
115 @observable
116 String absoluteLink(String l) {
117 return '#/$l';
118 }
113 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698