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_NATIVE_SERVICE_H_ | 5 #ifndef BIN_NATIVE_SERVICE_H_ |
6 #define BIN_NATIVE_SERVICE_H_ | 6 #define BIN_NATIVE_SERVICE_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" |
9 #include "platform/globals.h" | 10 #include "platform/globals.h" |
10 #include "platform/thread.h" | 11 #include "platform/thread.h" |
11 | 12 |
12 | 13 |
13 namespace dart { | 14 namespace dart { |
14 namespace bin { | 15 namespace bin { |
15 | 16 |
16 // Utility class to set up a native service and allocate Dart native | 17 // Utility class to set up a native service and allocate Dart native |
17 // ports to interact with it from Dart code. The number of native ports | 18 // ports to interact with it from Dart code. The number of native ports |
18 // allocated for each service is limited. | 19 // allocated for each service is limited. |
(...skipping 24 matching lines...) Expand all Loading... |
43 Dart_Port* service_ports_; | 44 Dart_Port* service_ports_; |
44 int service_ports_index_; | 45 int service_ports_index_; |
45 | 46 |
46 DISALLOW_IMPLICIT_CONSTRUCTORS(NativeService); | 47 DISALLOW_IMPLICIT_CONSTRUCTORS(NativeService); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace bin | 50 } // namespace bin |
50 } // namespace dart | 51 } // namespace dart |
51 | 52 |
52 #endif // BIN_NATIVE_SERVICE_H_ | 53 #endif // BIN_NATIVE_SERVICE_H_ |
OLD | NEW |