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 | |
99 /// Queue |message| and notify the loader that a message is available. | 96 /// Queue |message| and notify the loader that a message is available. |
100 void QueueMessage(Dart_CObject* message); | 97 void QueueMessage(Dart_CObject* message); |
101 | 98 |
102 /// Blocks the caller until the loader is finished. | 99 /// Blocks the caller until the loader is finished. |
103 void BlockUntilComplete(ProcessResult process_result); | 100 void BlockUntilComplete(ProcessResult process_result); |
104 | 101 |
105 /// Returns false if |result| is an error and the loader should quit. | 102 /// Returns false if |result| is an error and the loader should quit. |
106 static bool ProcessResultLocked(Loader* loader, IOResult* result); | 103 static bool ProcessResultLocked(Loader* loader, IOResult* result); |
107 | 104 |
108 /// 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. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 139 |
143 // This is the global callback for the native message handlers. | 140 // This is the global callback for the native message handlers. |
144 static void NativeMessageHandler(Dart_Port dest_port_id, | 141 static void NativeMessageHandler(Dart_Port dest_port_id, |
145 Dart_CObject* message); | 142 Dart_CObject* message); |
146 }; | 143 }; |
147 | 144 |
148 } // namespace bin | 145 } // namespace bin |
149 } // namespace dart | 146 } // namespace dart |
150 | 147 |
151 #endif // RUNTIME_BIN_LOADER_H_ | 148 #endif // RUNTIME_BIN_LOADER_H_ |
OLD | NEW |