OLD | NEW |
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 #ifndef RUNTIME_VM_SERVICE_H_ | 5 #ifndef RUNTIME_VM_SERVICE_H_ |
6 #define RUNTIME_VM_SERVICE_H_ | 6 #define RUNTIME_VM_SERVICE_H_ |
7 | 7 |
8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 void set_policy(ObjectIdRing::IdPolicy policy) { policy_ = policy; } | 57 void set_policy(ObjectIdRing::IdPolicy policy) { policy_ = policy; } |
58 | 58 |
59 ObjectIdRing::IdPolicy policy() const { return policy_; } | 59 ObjectIdRing::IdPolicy policy() const { return policy_; } |
60 | 60 |
61 private: | 61 private: |
62 ObjectIdRing* ring_; | 62 ObjectIdRing* ring_; |
63 ObjectIdRing::IdPolicy policy_; | 63 ObjectIdRing::IdPolicy policy_; |
64 }; | 64 }; |
65 | 65 |
66 | |
67 class StreamInfo { | 66 class StreamInfo { |
68 public: | 67 public: |
69 explicit StreamInfo(const char* id) : id_(id), enabled_(false) {} | 68 explicit StreamInfo(const char* id) : id_(id), enabled_(false) {} |
70 | 69 |
71 const char* id() const { return id_; } | 70 const char* id() const { return id_; } |
72 | 71 |
73 void set_enabled(bool value) { enabled_ = value; } | 72 void set_enabled(bool value) { enabled_ = value; } |
74 bool enabled() const { return enabled_; } | 73 bool enabled() const { return enabled_; } |
75 | 74 |
76 private: | 75 private: |
77 const char* id_; | 76 const char* id_; |
78 bool enabled_; | 77 bool enabled_; |
79 }; | 78 }; |
80 | 79 |
81 | |
82 class Service : public AllStatic { | 80 class Service : public AllStatic { |
83 public: | 81 public: |
84 // Handles a message which is not directed to an isolate. | 82 // Handles a message which is not directed to an isolate. |
85 static RawError* HandleRootMessage(const Array& message); | 83 static RawError* HandleRootMessage(const Array& message); |
86 | 84 |
87 // Handles a message which is not directed to an isolate and also | 85 // Handles a message which is not directed to an isolate and also |
88 // expects the parameter keys and values to be actual dart objects. | 86 // expects the parameter keys and values to be actual dart objects. |
89 static RawError* HandleObjectRootMessage(const Array& message); | 87 static RawError* HandleObjectRootMessage(const Array& message); |
90 | 88 |
91 // Handles a message which is directed to a particular isolate. | 89 // Handles a message which is directed to a particular isolate. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 static bool needs_isolate_events_; | 214 static bool needs_isolate_events_; |
217 static bool needs_debug_events_; | 215 static bool needs_debug_events_; |
218 static bool needs_gc_events_; | 216 static bool needs_gc_events_; |
219 static bool needs_echo_events_; | 217 static bool needs_echo_events_; |
220 static bool needs_graph_events_; | 218 static bool needs_graph_events_; |
221 }; | 219 }; |
222 | 220 |
223 } // namespace dart | 221 } // namespace dart |
224 | 222 |
225 #endif // RUNTIME_VM_SERVICE_H_ | 223 #endif // RUNTIME_VM_SERVICE_H_ |
OLD | NEW |