| 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 VM_SERVICE_H_ | 5 #ifndef VM_SERVICE_H_ |
| 6 #define VM_SERVICE_H_ | 6 #define VM_SERVICE_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 static void RegisterIsolateEmbedderCallback( | 67 static void RegisterIsolateEmbedderCallback( |
| 68 const char* name, | 68 const char* name, |
| 69 Dart_ServiceRequestCallback callback, | 69 Dart_ServiceRequestCallback callback, |
| 70 void* user_data); | 70 void* user_data); |
| 71 | 71 |
| 72 static void RegisterRootEmbedderCallback( | 72 static void RegisterRootEmbedderCallback( |
| 73 const char* name, | 73 const char* name, |
| 74 Dart_ServiceRequestCallback callback, | 74 Dart_ServiceRequestCallback callback, |
| 75 void* user_data); | 75 void* user_data); |
| 76 | 76 |
| 77 static void SendEchoEvent(Isolate* isolate); | 77 static void SendEchoEvent(Isolate* isolate, const char* text); |
| 78 static void SendGraphEvent(Isolate* isolate); | 78 static void SendGraphEvent(Isolate* isolate); |
| 79 | 79 |
| 80 static void MaybeInjectVMServiceLibrary(Isolate* isolate); | 80 static void MaybeInjectVMServiceLibrary(Isolate* isolate); |
| 81 | 81 |
| 82 static void RunService(); | 82 static void RunService(); |
| 83 | 83 |
| 84 static void FinishedInitializing(); | 84 static void FinishedInitializing(); |
| 85 | 85 |
| 86 static Dart_IsolateCreateCallback create_callback() { | 86 static Dart_IsolateCreateCallback create_callback() { |
| 87 return create_callback_; | 87 return create_callback_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 static bool initializing_; | 119 static bool initializing_; |
| 120 static Isolate* service_isolate_; | 120 static Isolate* service_isolate_; |
| 121 static Dart_Port service_port_; | 121 static Dart_Port service_port_; |
| 122 static Dart_Port load_port_; | 122 static Dart_Port load_port_; |
| 123 static uint32_t event_mask_; | 123 static uint32_t event_mask_; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace dart | 126 } // namespace dart |
| 127 | 127 |
| 128 #endif // VM_SERVICE_H_ | 128 #endif // VM_SERVICE_H_ |
| OLD | NEW |