| 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_BIN_VMSERVICE_IMPL_H_ | 5 #ifndef RUNTIME_BIN_VMSERVICE_IMPL_H_ |
| 6 #define RUNTIME_BIN_VMSERVICE_IMPL_H_ | 6 #define RUNTIME_BIN_VMSERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 | 9 |
| 10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // HTTP Server's address. | 27 // HTTP Server's address. |
| 28 static const char* GetServerAddress() { return &server_uri_[0]; } | 28 static const char* GetServerAddress() { return &server_uri_[0]; } |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 static const intptr_t kServerUriStringBufferSize = 1024; | 31 static const intptr_t kServerUriStringBufferSize = 1024; |
| 32 friend void NotifyServerState(Dart_NativeArguments args); | 32 friend void NotifyServerState(Dart_NativeArguments args); |
| 33 | 33 |
| 34 static void SetServerAddress(const char* server_uri_); | 34 static void SetServerAddress(const char* server_uri_); |
| 35 static Dart_Handle GetSource(const char* name); | 35 static Dart_Handle GetSource(const char* name); |
| 36 static Dart_Handle LoadScript(const char* name); | 36 static Dart_Handle LoadScript(const char* name); |
| 37 static Dart_Handle LoadLibrary(const char* name); | 37 static Dart_Handle LookupOrLoadLibrary(const char* name); |
| 38 static Dart_Handle LoadSource(Dart_Handle library, const char* name); | 38 static Dart_Handle LoadSource(Dart_Handle library, const char* name); |
| 39 static Dart_Handle LoadResources(Dart_Handle library); | 39 static Dart_Handle LoadResources(Dart_Handle library); |
| 40 static Dart_Handle LoadResource(Dart_Handle library, const char* name); | 40 static Dart_Handle LoadResource(Dart_Handle library, const char* name); |
| 41 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 41 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
| 42 Dart_Handle library, | 42 Dart_Handle library, |
| 43 Dart_Handle url); | 43 Dart_Handle url); |
| 44 | 44 |
| 45 static const char* error_msg_; | 45 static const char* error_msg_; |
| 46 static char server_uri_[kServerUriStringBufferSize]; | 46 static char server_uri_[kServerUriStringBufferSize]; |
| 47 | 47 |
| 48 DISALLOW_ALLOCATION(); | 48 DISALLOW_ALLOCATION(); |
| 49 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); | 49 DISALLOW_IMPLICIT_CONSTRUCTORS(VmService); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace bin | 52 } // namespace bin |
| 53 } // namespace dart | 53 } // namespace dart |
| 54 | 54 |
| 55 #endif // RUNTIME_BIN_VMSERVICE_IMPL_H_ | 55 #endif // RUNTIME_BIN_VMSERVICE_IMPL_H_ |
| OLD | NEW |