| 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 BIN_VMSERVICE_IMPL_H_ | 5 #ifndef BIN_VMSERVICE_IMPL_H_ |
| 6 #define BIN_VMSERVICE_IMPL_H_ | 6 #define BIN_VMSERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "bin/vmservice.h" | 8 #include "bin/vmservice.h" |
| 9 #include "platform/thread.h" | 9 #include "platform/thread.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 static bool IsRunning(); | 24 static bool IsRunning(); |
| 25 | 25 |
| 26 static bool SendIsolateStartupMessage(Dart_Port port); | 26 static bool SendIsolateStartupMessage(Dart_Port port); |
| 27 static bool SendIsolateShutdownMessage(Dart_Port port); | 27 static bool SendIsolateShutdownMessage(Dart_Port port); |
| 28 | 28 |
| 29 static void VmServiceShutdownCallback(void* callback_data); | 29 static void VmServiceShutdownCallback(void* callback_data); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 static bool _Start(intptr_t server_port); | 32 static bool _Start(intptr_t server_port); |
| 33 static void _Stop(); | 33 static void _Stop(); |
| 34 static Dart_Handle GetSource(const char* name); |
| 34 static Dart_Handle LoadScript(const char* name); | 35 static Dart_Handle LoadScript(const char* name); |
| 35 static Dart_Handle LoadSources(Dart_Handle library, const char** names); | 36 static Dart_Handle LoadSources(Dart_Handle library, const char** names); |
| 36 static Dart_Handle LoadSource(Dart_Handle library, const char* name); | 37 static Dart_Handle LoadSource(Dart_Handle library, const char* name); |
| 37 static Dart_Handle LoadResources(Dart_Handle library); | 38 static Dart_Handle LoadResources(Dart_Handle library); |
| 38 static Dart_Handle LoadResource(Dart_Handle library, const char* name, | 39 static Dart_Handle LoadResource(Dart_Handle library, const char* name, |
| 39 const char* prefix); | 40 const char* prefix); |
| 40 | 41 |
| 42 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library, |
| 43 Dart_Handle url); |
| 44 |
| 41 static void ThreadMain(uword parameters); | 45 static void ThreadMain(uword parameters); |
| 42 | 46 |
| 43 static Dart_Isolate isolate_; | 47 static Dart_Isolate isolate_; |
| 44 static Dart_Port port_; | 48 static Dart_Port port_; |
| 45 static const char* error_msg_; | 49 static const char* error_msg_; |
| 46 static dart::Monitor* monitor_; | 50 static dart::Monitor* monitor_; |
| 47 | 51 |
| 48 DISALLOW_ALLOCATION(); | 52 DISALLOW_ALLOCATION(); |
| 49 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); | 53 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); |
| 50 }; | 54 }; |
| 51 | 55 |
| 52 | 56 |
| 53 } // namespace bin | 57 } // namespace bin |
| 54 } // namespace dart | 58 } // namespace dart |
| 55 | 59 |
| 56 #endif // BIN_VMSERVICE_IMPL_H_ | 60 #endif // BIN_VMSERVICE_IMPL_H_ |
| OLD | NEW |