| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_LOADER_H_ | 5 #ifndef RUNTIME_BIN_LOADER_H_ |
| 6 #define RUNTIME_BIN_LOADER_H_ | 6 #define RUNTIME_BIN_LOADER_H_ |
| 7 | 7 |
| 8 #include "bin/isolate_data.h" | 8 #include "bin/isolate_data.h" |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 #include "include/dart_native_api.h" | 10 #include "include/dart_native_api.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const char* root_script_uri); | 86 const char* root_script_uri); |
| 87 | 87 |
| 88 // Send a request for a dart-ext: import to the service isolate. | 88 // Send a request for a dart-ext: import to the service isolate. |
| 89 void SendImportExtensionRequest(Dart_Handle url, Dart_Handle library_url); | 89 void SendImportExtensionRequest(Dart_Handle url, Dart_Handle library_url); |
| 90 | 90 |
| 91 // Send a request from the tag handler to the service isolate. | 91 // Send a request from the tag handler to the service isolate. |
| 92 void SendRequest(Dart_LibraryTag tag, | 92 void SendRequest(Dart_LibraryTag tag, |
| 93 Dart_Handle url, | 93 Dart_Handle url, |
| 94 Dart_Handle library_url); | 94 Dart_Handle library_url); |
| 95 | 95 |
| 96 // Send a request from the tag handler to the kernel isolate. |
| 97 void SendKernelRequest(Dart_LibraryTag tag, Dart_Handle url); |
| 98 |
| 96 /// Queue |message| and notify the loader that a message is available. | 99 /// Queue |message| and notify the loader that a message is available. |
| 97 void QueueMessage(Dart_CObject* message); | 100 void QueueMessage(Dart_CObject* message); |
| 98 | 101 |
| 99 /// Blocks the caller until the loader is finished. | 102 /// Blocks the caller until the loader is finished. |
| 100 void BlockUntilComplete(ProcessResult process_result); | 103 void BlockUntilComplete(ProcessResult process_result); |
| 101 | 104 |
| 102 /// Returns false if |result| is an error and the loader should quit. | 105 /// Returns false if |result| is an error and the loader should quit. |
| 103 static bool ProcessResultLocked(Loader* loader, IOResult* result); | 106 static bool ProcessResultLocked(Loader* loader, IOResult* result); |
| 104 | 107 |
| 105 /// Returns false if |result| is an error and the loader should quit. | 108 /// Returns false if |result| is an error and the loader should quit. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 142 |
| 140 // This is the global callback for the native message handlers. | 143 // This is the global callback for the native message handlers. |
| 141 static void NativeMessageHandler(Dart_Port dest_port_id, | 144 static void NativeMessageHandler(Dart_Port dest_port_id, |
| 142 Dart_CObject* message); | 145 Dart_CObject* message); |
| 143 }; | 146 }; |
| 144 | 147 |
| 145 } // namespace bin | 148 } // namespace bin |
| 146 } // namespace dart | 149 } // namespace dart |
| 147 | 150 |
| 148 #endif // RUNTIME_BIN_LOADER_H_ | 151 #endif // RUNTIME_BIN_LOADER_H_ |
| OLD | NEW |