OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #include "vm/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
6 | 6 |
7 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
8 #include "vm/exceptions.h" | 8 #include "vm/exceptions.h" |
9 #include "vm/message.h" | 9 #include "vm/message.h" |
10 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 return Bool::Get(result).raw(); | 139 return Bool::Get(result).raw(); |
140 } | 140 } |
141 | 141 |
142 | 142 |
143 DEFINE_NATIVE_ENTRY(VMService_CancelStream, 1) { | 143 DEFINE_NATIVE_ENTRY(VMService_CancelStream, 1) { |
144 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0)); | 144 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0)); |
145 Service::CancelStream(stream_id.ToCString()); | 145 Service::CancelStream(stream_id.ToCString()); |
146 return Object::null(); | 146 return Object::null(); |
147 } | 147 } |
148 | 148 |
| 149 |
| 150 DEFINE_NATIVE_ENTRY(VMService_RequestAssets, 0) { |
| 151 return Service::RequestAssets(); |
| 152 } |
| 153 |
149 } // namespace dart | 154 } // namespace dart |
OLD | NEW |