| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/dart/embedder/vmservice.h" | 5 #include "mojo/dart/embedder/vmservice.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "dart/runtime/include/dart_api.h" | |
| 9 #include "mojo/dart/embedder/builtin.h" | 8 #include "mojo/dart/embedder/builtin.h" |
| 10 #include "mojo/dart/embedder/common.h" | 9 #include "mojo/dart/embedder/common.h" |
| 11 #include "mojo/dart/embedder/dart_controller.h" | 10 #include "mojo/dart/embedder/dart_controller.h" |
| 11 #include "mojo/public/third_party/dart/runtime/include/dart_api.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace dart { | 14 namespace dart { |
| 15 | 15 |
| 16 #define RETURN_ERROR_HANDLE(handle) \ | 16 #define RETURN_ERROR_HANDLE(handle) \ |
| 17 if (Dart_IsError(handle)) { \ | 17 if (Dart_IsError(handle)) { \ |
| 18 return handle; \ | 18 return handle; \ |
| 19 } | 19 } |
| 20 | 20 |
| 21 #define SHUTDOWN_ON_ERROR(handle) \ | 21 #define SHUTDOWN_ON_ERROR(handle) \ |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 Dart_Handle source = GetSource(url_string); | 333 Dart_Handle source = GetSource(url_string); |
| 334 if (Dart_IsError(source)) { | 334 if (Dart_IsError(source)) { |
| 335 return source; | 335 return source; |
| 336 } | 336 } |
| 337 return Dart_LoadSource(library, url, source, 0, 0); | 337 return Dart_LoadSource(library, url, source, 0, 0); |
| 338 } | 338 } |
| 339 | 339 |
| 340 | 340 |
| 341 } // namespace dart | 341 } // namespace dart |
| 342 } // namespace mojo | 342 } // namespace mojo |
| OLD | NEW |