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 BIN_LOADER_H_ | 5 #ifndef BIN_LOADER_H_ |
6 #define BIN_LOADER_H_ | 6 #define 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Must be accessed with monitor_ held. | 54 // Must be accessed with monitor_ held. |
55 intptr_t pending_operations_; | 55 intptr_t pending_operations_; |
56 | 56 |
57 // The result of an I/O request to the service isolate. Payload is either | 57 // The result of an I/O request to the service isolate. Payload is either |
58 // a UInt8Array or a C string containing an error message. | 58 // a UInt8Array or a C string containing an error message. |
59 struct IOResult { | 59 struct IOResult { |
60 uint8_t* payload; | 60 uint8_t* payload; |
61 intptr_t payload_length; | 61 intptr_t payload_length; |
62 char* library_uri; | 62 char* library_uri; |
63 char* uri; | 63 char* uri; |
| 64 char* resolved_uri; |
64 int8_t tag; | 65 int8_t tag; |
65 | 66 |
66 void Setup(Dart_CObject* message); | 67 void Setup(Dart_CObject* message); |
67 void Cleanup(); | 68 void Cleanup(); |
68 }; | 69 }; |
69 // An array of I/O results queued from the service isolate. | 70 // An array of I/O results queued from the service isolate. |
70 IOResult* results_; | 71 IOResult* results_; |
71 intptr_t results_length_; | 72 intptr_t results_length_; |
72 intptr_t results_capacity_; | 73 intptr_t results_capacity_; |
73 uint8_t* payload_; | 74 uint8_t* payload_; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 140 |
140 // This is the global callback for the native message handlers. | 141 // This is the global callback for the native message handlers. |
141 static void NativeMessageHandler(Dart_Port dest_port_id, | 142 static void NativeMessageHandler(Dart_Port dest_port_id, |
142 Dart_CObject* message); | 143 Dart_CObject* message); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace bin | 146 } // namespace bin |
146 } // namespace dart | 147 } // namespace dart |
147 | 148 |
148 #endif // BIN_LOADER_H_ | 149 #endif // BIN_LOADER_H_ |
OLD | NEW |