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_ISOLATE_H_ | 5 #ifndef VM_SERVICE_ISOLATE_H_ |
6 #define VM_SERVICE_ISOLATE_H_ | 6 #define VM_SERVICE_ISOLATE_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" |
11 #include "vm/os_thread.h" | 11 #include "vm/os_thread.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 | 14 |
15 class ServiceIsolate : public AllStatic { | 15 class ServiceIsolate : public AllStatic { |
16 public: | 16 public: |
17 static const char* kName; | 17 static const char* kName; |
18 static bool NameEquals(const char* name); | 18 static bool NameEquals(const char* name); |
19 | 19 |
20 static bool Exists(); | 20 static bool Exists(); |
21 static bool IsRunning(); | 21 static bool IsRunning(); |
22 static bool IsServiceIsolate(Isolate* isolate); | 22 static bool IsServiceIsolate(const Isolate* isolate); |
23 static bool IsServiceIsolateDescendant(Isolate* isolate); | 23 static bool IsServiceIsolateDescendant(const Isolate* isolate); |
24 static Dart_Port Port(); | 24 static Dart_Port Port(); |
25 | 25 |
26 static Dart_Port WaitForLoadPort(); | 26 static Dart_Port WaitForLoadPort(); |
27 static Dart_Port LoadPort(); | 27 static Dart_Port LoadPort(); |
28 | 28 |
29 static void Run(); | 29 static void Run(); |
30 static bool SendIsolateStartupMessage(); | 30 static bool SendIsolateStartupMessage(); |
31 static bool SendIsolateShutdownMessage(); | 31 static bool SendIsolateShutdownMessage(); |
32 static void SendServiceExitMessage(); | 32 static void SendServiceExitMessage(); |
33 static void Shutdown(); | 33 static void Shutdown(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 static char* server_address_; | 69 static char* server_address_; |
70 | 70 |
71 friend class Dart; | 71 friend class Dart; |
72 friend class RunServiceTask; | 72 friend class RunServiceTask; |
73 friend class ServiceIsolateNatives; | 73 friend class ServiceIsolateNatives; |
74 }; | 74 }; |
75 | 75 |
76 } // namespace dart | 76 } // namespace dart |
77 | 77 |
78 #endif // VM_SERVICE_ISOLATE_H_ | 78 #endif // VM_SERVICE_ISOLATE_H_ |
OLD | NEW |