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_ISOLATE_H_ | 5 #ifndef RUNTIME_VM_SERVICE_ISOLATE_H_ |
6 #define RUNTIME_VM_SERVICE_ISOLATE_H_ | 6 #define RUNTIME_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" |
(...skipping 25 matching lines...) Expand all Loading... |
36 static void Shutdown(); | 36 static void Shutdown(); |
37 | 37 |
38 static void BootVmServiceLibrary(); | 38 static void BootVmServiceLibrary(); |
39 | 39 |
40 static void RequestServerInfo(const SendPort& sp); | 40 static void RequestServerInfo(const SendPort& sp); |
41 static void ControlWebServer(const SendPort& sp, bool enable); | 41 static void ControlWebServer(const SendPort& sp, bool enable); |
42 | 42 |
43 static void SetServerAddress(const char* address); | 43 static void SetServerAddress(const char* address); |
44 | 44 |
45 // Returns the server's web address or NULL if none is running. | 45 // Returns the server's web address or NULL if none is running. |
46 static const char* server_address() { | 46 static const char* server_address() { return server_address_; } |
47 return server_address_; | |
48 } | |
49 | 47 |
50 static void VisitObjectPointers(ObjectPointerVisitor* visitor); | 48 static void VisitObjectPointers(ObjectPointerVisitor* visitor); |
51 | 49 |
52 private: | 50 private: |
53 static void KillServiceIsolate(); | 51 static void KillServiceIsolate(); |
54 | 52 |
55 protected: | 53 protected: |
56 static void SetServicePort(Dart_Port port); | 54 static void SetServicePort(Dart_Port port); |
57 static void SetServiceIsolate(Isolate* isolate); | 55 static void SetServiceIsolate(Isolate* isolate); |
58 static void SetLoadPort(Dart_Port port); | 56 static void SetLoadPort(Dart_Port port); |
(...skipping 18 matching lines...) Expand all Loading... |
77 static char* server_address_; | 75 static char* server_address_; |
78 | 76 |
79 friend class Dart; | 77 friend class Dart; |
80 friend class RunServiceTask; | 78 friend class RunServiceTask; |
81 friend class ServiceIsolateNatives; | 79 friend class ServiceIsolateNatives; |
82 }; | 80 }; |
83 | 81 |
84 } // namespace dart | 82 } // namespace dart |
85 | 83 |
86 #endif // RUNTIME_VM_SERVICE_ISOLATE_H_ | 84 #endif // RUNTIME_VM_SERVICE_ISOLATE_H_ |
OLD | NEW |