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

Side by Side Diff: runtime/observatory/lib/src/repositories/target.dart

Issue 2603383004: Sane asynchronous debugging and stack traces (Closed)
Patch Set: rebase Created 3 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 repositories; 5 part of repositories;
6 6
7 class TargetChangeEvent implements M.TargetChangeEvent { 7 class TargetChangeEvent implements M.TargetChangeEvent {
8 final TargetRepository repository; 8 final TargetRepository repository;
9 final bool disconnected; 9 final bool disconnected;
10 TargetChangeEvent(this.repository, [this.disconnected = false]); 10 TargetChangeEvent(this.repository, [this.disconnected = false]);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 SC.WebSocketVMTarget find(String networkAddress) { 94 SC.WebSocketVMTarget find(String networkAddress) {
95 for (SC.WebSocketVMTarget item in _list) { 95 for (SC.WebSocketVMTarget item in _list) {
96 if (item.networkAddress == networkAddress) { 96 if (item.networkAddress == networkAddress) {
97 return item; 97 return item;
98 } 98 }
99 } 99 }
100 return null; 100 return null;
101 } 101 }
102 102
103 static String _networkAddressOfDefaultTarget() { 103 static String _networkAddressOfDefaultTarget() {
104 if (!identical(1, 1.0)) {
105 return 'ws://127.0.0.1:8181/ws';
106 }
104 Uri serverAddress = Uri.parse(window.location.toString()); 107 Uri serverAddress = Uri.parse(window.location.toString());
105 return 'ws://${serverAddress.authority}${serverAddress.path}ws'; 108 return 'ws://${serverAddress.authority}${serverAddress.path}ws';
106 } 109 }
107 } 110 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/models/repositories/target.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698