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 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 // Handles a message which is not directed to an isolate. | 28 // Handles a message which is not directed to an isolate. |
29 static void HandleRootMessage(const Array& message); | 29 static void HandleRootMessage(const Array& message); |
30 | 30 |
31 // Handles a message which is directed to a particular isolate. | 31 // Handles a message which is directed to a particular isolate. |
32 static void HandleIsolateMessage(Isolate* isolate, const Array& message); | 32 static void HandleIsolateMessage(Isolate* isolate, const Array& message); |
33 | 33 |
34 static bool NeedsEvents(); | 34 static bool NeedsEvents(); |
35 | 35 |
36 static void HandleEvent(ServiceEvent* event); | 36 static void HandleEvent(ServiceEvent* event); |
37 static void HandleGCEvent(GCEvent* event); | |
38 | 37 |
39 static void RegisterIsolateEmbedderCallback( | 38 static void RegisterIsolateEmbedderCallback( |
40 const char* name, | 39 const char* name, |
41 Dart_ServiceRequestCallback callback, | 40 Dart_ServiceRequestCallback callback, |
42 void* user_data); | 41 void* user_data); |
43 | 42 |
44 static void RegisterRootEmbedderCallback( | 43 static void RegisterRootEmbedderCallback( |
45 const char* name, | 44 const char* name, |
46 Dart_ServiceRequestCallback callback, | 45 Dart_ServiceRequestCallback callback, |
47 void* user_data); | 46 void* user_data); |
(...skipping 17 matching lines...) Expand all Loading... |
65 const uint8_t* data, | 64 const uint8_t* data, |
66 intptr_t size); | 65 intptr_t size); |
67 | 66 |
68 static EmbedderServiceHandler* isolate_service_handler_head_; | 67 static EmbedderServiceHandler* isolate_service_handler_head_; |
69 static EmbedderServiceHandler* root_service_handler_head_; | 68 static EmbedderServiceHandler* root_service_handler_head_; |
70 }; | 69 }; |
71 | 70 |
72 } // namespace dart | 71 } // namespace dart |
73 | 72 |
74 #endif // VM_SERVICE_H_ | 73 #endif // VM_SERVICE_H_ |
OLD | NEW |