| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "base/i18n/icu_util.h" | 7 #include "base/i18n/icu_util.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/mojo_io_natives.h" | 9 #include "mojo/dart/embedder/mojo_io_natives.h" |
| 11 #include "mojo/dart/embedder/mojo_natives.h" | 10 #include "mojo/dart/embedder/mojo_natives.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 struct ResourcesEntry { | 16 struct ResourcesEntry { |
| 17 const char* path_; | 17 const char* path_; |
| 18 const char* resource_; | 18 const char* resource_; |
| 19 int length_; | 19 int length_; |
| 20 }; | 20 }; |
| 21 | 21 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 DCHECK(builtin_libraries_[id].patch_resources_ != nullptr); | 149 DCHECK(builtin_libraries_[id].patch_resources_ != nullptr); |
| 150 LoadPatchFiles(library, | 150 LoadPatchFiles(library, |
| 151 builtin_libraries_[id].patch_url_, | 151 builtin_libraries_[id].patch_url_, |
| 152 builtin_libraries_[id].patch_resources_); | 152 builtin_libraries_[id].patch_resources_); |
| 153 } | 153 } |
| 154 return library; | 154 return library; |
| 155 } | 155 } |
| 156 | 156 |
| 157 } // namespace dart | 157 } // namespace dart |
| 158 } // namespace mojo | 158 } // namespace mojo |
| OLD | NEW |