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

Side by Side Diff: runtime/vm/service_event.h

Issue 1152283005: Revert "Add the streamListen and streamCancel rpcs to the vm service." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « runtime/vm/service/vmservice.dart ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 #ifndef VM_SERVICE_EVENT_H_ 5 #ifndef VM_SERVICE_EVENT_H_
6 #define VM_SERVICE_EVENT_H_ 6 #define VM_SERVICE_EVENT_H_
7 7
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 9
10 class DebuggerEvent; 10 class DebuggerEvent;
11 11
12 namespace dart { 12 namespace dart {
13 13
14 class ServiceEvent { 14 class ServiceEvent {
15 public: 15 public:
16 enum EventType { 16 enum EventType {
17 kIsolateStart, // New isolate has started 17 kIsolateStart, // New isolate has started
18 kIsolateExit, // Isolate has exited 18 kIsolateExit, // Isolate has exited
19 kIsolateUpdate, // Isolate identity information has changed 19 kIsolateUpdate, // Isolate identity information has changed
20 20
21 kPauseStart, // --pause-isolates-on-start 21 kPauseStart, // --pause-isolates-on-start
22 kPauseExit, // --pause-isolates-on-exit 22 kPauseExit, // --pause-isolates-on-exit
23 kPauseBreakpoint, 23 kPauseBreakpoint,
24 kPauseInterrupted, 24 kPauseInterrupted,
25 kPauseException, 25 kPauseException,
26 kResume, 26 kResume,
27
27 kBreakpointAdded, 28 kBreakpointAdded,
28 kBreakpointResolved, 29 kBreakpointResolved,
29 kBreakpointRemoved, 30 kBreakpointRemoved,
30 kInspect,
31 31
32 kGC, 32 kGC,
33 kInspect,
33 34
34 kIllegal, 35 kIllegal,
35 }; 36 };
36 37
37 ServiceEvent(Isolate* isolate, EventType event_type) 38 ServiceEvent(Isolate* isolate, EventType event_type)
38 : isolate_(isolate), 39 : isolate_(isolate),
39 type_(event_type), 40 type_(event_type),
40 breakpoint_(NULL), 41 breakpoint_(NULL),
41 top_frame_(NULL), 42 top_frame_(NULL),
42 exception_(NULL), 43 exception_(NULL),
43 inspectee_(NULL), 44 inspectee_(NULL),
44 gc_stats_(NULL) {} 45 gc_stats_(NULL) {}
45 46
46 explicit ServiceEvent(const DebuggerEvent* debugger_event); 47 explicit ServiceEvent(const DebuggerEvent* debugger_event);
47 48
48 Isolate* isolate() const { return isolate_; } 49 Isolate* isolate() const { return isolate_; }
49 50
50 EventType type() const { return type_; } 51 EventType type() const { return type_; }
51 52
52 const char* stream_id() const;
53
54 SourceBreakpoint* breakpoint() const { 53 SourceBreakpoint* breakpoint() const {
55 return breakpoint_; 54 return breakpoint_;
56 } 55 }
57 void set_breakpoint(SourceBreakpoint* bpt) { 56 void set_breakpoint(SourceBreakpoint* bpt) {
58 ASSERT(type() == kPauseBreakpoint || 57 ASSERT(type() == kPauseBreakpoint ||
59 type() == kBreakpointAdded || 58 type() == kBreakpointAdded ||
60 type() == kBreakpointResolved || 59 type() == kBreakpointResolved ||
61 type() == kBreakpointRemoved); 60 type() == kBreakpointRemoved);
62 breakpoint_ = bpt; 61 breakpoint_ = bpt;
63 } 62 }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 SourceBreakpoint* breakpoint_; 106 SourceBreakpoint* breakpoint_;
108 ActivationFrame* top_frame_; 107 ActivationFrame* top_frame_;
109 const Object* exception_; 108 const Object* exception_;
110 const Object* inspectee_; 109 const Object* inspectee_;
111 const Heap::GCStats* gc_stats_; 110 const Heap::GCStats* gc_stats_;
112 }; 111 };
113 112
114 } // namespace dart 113 } // namespace dart
115 114
116 #endif // VM_SERVICE_EVENT_H_ 115 #endif // VM_SERVICE_EVENT_H_
OLDNEW
« no previous file with comments | « runtime/vm/service/vmservice.dart ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698