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

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

Issue 2411153002: Make reloadSources service RPC public (Closed)
Patch Set: turnidge review Created 4 years, 2 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/isolate.cc ('k') | runtime/vm/service.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) 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 VM_SERVICE_H_ 5 #ifndef VM_SERVICE_H_
6 #define VM_SERVICE_H_ 6 #define 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 static Dart_ServiceStreamListenCallback stream_listen_callback() { 158 static Dart_ServiceStreamListenCallback stream_listen_callback() {
159 return stream_listen_callback_; 159 return stream_listen_callback_;
160 } 160 }
161 static Dart_ServiceStreamCancelCallback stream_cancel_callback() { 161 static Dart_ServiceStreamCancelCallback stream_cancel_callback() {
162 return stream_cancel_callback_; 162 return stream_cancel_callback_;
163 } 163 }
164 164
165 static void PrintJSONForVM(JSONStream* js, bool ref); 165 static void PrintJSONForVM(JSONStream* js, bool ref);
166 166
167 static void CheckForPause(Isolate* isolate, JSONStream* stream);
168
167 private: 169 private:
168 static void InvokeMethod(Isolate* isolate, 170 static void InvokeMethod(Isolate* isolate,
169 const Array& message, 171 const Array& message,
170 bool parameters_are_dart_objects = false); 172 bool parameters_are_dart_objects = false);
171 173
172 static void EmbedderHandleMessage(EmbedderServiceHandler* handler, 174 static void EmbedderHandleMessage(EmbedderServiceHandler* handler,
173 JSONStream* js); 175 JSONStream* js);
174 176
175 static EmbedderServiceHandler* FindIsolateEmbedderHandler(const char* name); 177 static EmbedderServiceHandler* FindIsolateEmbedderHandler(const char* name);
176 static EmbedderServiceHandler* FindRootEmbedderHandler(const char* name); 178 static EmbedderServiceHandler* FindRootEmbedderHandler(const char* name);
(...skipping 15 matching lines...) Expand all
192 const char* metadata, 194 const char* metadata,
193 intptr_t metadata_size, 195 intptr_t metadata_size,
194 const uint8_t* data, 196 const uint8_t* data,
195 intptr_t data_size); 197 intptr_t data_size);
196 198
197 static void PostEvent(Isolate* isolate, 199 static void PostEvent(Isolate* isolate,
198 const char* stream_id, 200 const char* stream_id,
199 const char* kind, 201 const char* kind,
200 JSONStream* event); 202 JSONStream* event);
201 203
204 static void MaybePause(Isolate* isolate);
205
202 static EmbedderServiceHandler* isolate_service_handler_head_; 206 static EmbedderServiceHandler* isolate_service_handler_head_;
203 static EmbedderServiceHandler* root_service_handler_head_; 207 static EmbedderServiceHandler* root_service_handler_head_;
204 static Dart_ServiceStreamListenCallback stream_listen_callback_; 208 static Dart_ServiceStreamListenCallback stream_listen_callback_;
205 static Dart_ServiceStreamCancelCallback stream_cancel_callback_; 209 static Dart_ServiceStreamCancelCallback stream_cancel_callback_;
206 static Dart_GetVMServiceAssetsArchive get_service_assets_callback_; 210 static Dart_GetVMServiceAssetsArchive get_service_assets_callback_;
207 211
208 static bool needs_isolate_events_; 212 static bool needs_isolate_events_;
209 static bool needs_debug_events_; 213 static bool needs_debug_events_;
210 static bool needs_gc_events_; 214 static bool needs_gc_events_;
211 static bool needs_echo_events_; 215 static bool needs_echo_events_;
212 static bool needs_graph_events_; 216 static bool needs_graph_events_;
213 }; 217 };
214 218
215 } // namespace dart 219 } // namespace dart
216 220
217 #endif // VM_SERVICE_H_ 221 #endif // VM_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698