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

Side by Side Diff: runtime/observatory/lib/src/models/objects/event.dart

Issue 2980733003: Introduced support for external services registration in the ServiceProtocol (Closed)
Patch Set: Address comments Created 3 years, 5 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 models; 5 part of models;
6 6
7 abstract class Event { 7 abstract class Event {
8 /// The timestamp (in milliseconds since the epoch) associated with this 8 /// The timestamp (in milliseconds since the epoch) associated with this
9 /// event. For some isolate pause events, the timestamp is from when the 9 /// event. For some isolate pause events, the timestamp is from when the
10 /// isolate was paused. For other events, the timestamp is from when the 10 /// isolate was paused. For other events, the timestamp is from when the
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 bool isAtAsyncSuspension(DebugEvent event) { 191 bool isAtAsyncSuspension(DebugEvent event) {
192 if (event is PauseBreakpointEvent) { 192 if (event is PauseBreakpointEvent) {
193 return event.atAsyncSuspension; 193 return event.atAsyncSuspension;
194 } 194 }
195 if (event is PauseInterruptedEvent) { 195 if (event is PauseInterruptedEvent) {
196 return event.atAsyncSuspension; 196 return event.atAsyncSuspension;
197 } 197 }
198 return false; 198 return false;
199 } 199 }
200
201 abstract class ServiceEvent extends Event {
202 /// The identifier of the service
203 String get service;
204
205 /// The JSON-RPC 2.0 Method that identifes this instance
206 String get method;
207 }
208
209 abstract class ServiceRegisteredEvent extends ServiceEvent {
210 /// The alias associated with this new instance
211 String get alias;
212 }
213
214 abstract class ServiceUnregisteredEvent extends ServiceEvent {}
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/nav/reload.dart ('k') | runtime/observatory/lib/src/models/objects/service.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698