| 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" | 8 #include "dart/runtime/include/dart_api.h" |
| 9 #include "mojo/dart/embedder/builtin.h" | 9 #include "mojo/dart/embedder/builtin.h" |
| 10 #include "mojo/dart/embedder/mojo_io_natives.h" | 10 #include "mojo/dart/embedder/mojo_io_natives.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 return -1; | 36 return -1; |
| 37 } | 37 } |
| 38 | 38 |
| 39 const char* Builtin::mojo_core_patch_resource_names_[] = { | 39 const char* Builtin::mojo_core_patch_resource_names_[] = { |
| 40 "/core/natives_patch.dart", | 40 "/core/natives_patch.dart", |
| 41 nullptr, | 41 nullptr, |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 const char* Builtin::mojo_io_patch_resource_names_[] = { | 44 const char* Builtin::mojo_io_patch_resource_names_[] = { |
| 45 "/io/file_patch.dart", | 45 "/io/file_patch.dart", |
| 46 "/io/filter_patch.dart", |
| 46 "/io/internet_address_patch.dart", | 47 "/io/internet_address_patch.dart", |
| 47 "/io/mojo_patch.dart", | 48 "/io/mojo_patch.dart", |
| 48 "/io/platform_patch.dart", | 49 "/io/platform_patch.dart", |
| 49 "/io/process_patch.dart", | 50 "/io/process_patch.dart", |
| 50 "/io/socket_patch.dart", | 51 "/io/socket_patch.dart", |
| 51 "/io/server_socket_patch.dart", | 52 "/io/server_socket_patch.dart", |
| 52 nullptr, | 53 nullptr, |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 Builtin::builtin_lib_props Builtin::builtin_libraries_[] = { | 56 Builtin::builtin_lib_props Builtin::builtin_libraries_[] = { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 DCHECK(builtin_libraries_[id].patch_resources_ != nullptr); | 151 DCHECK(builtin_libraries_[id].patch_resources_ != nullptr); |
| 151 LoadPatchFiles(library, | 152 LoadPatchFiles(library, |
| 152 builtin_libraries_[id].patch_url_, | 153 builtin_libraries_[id].patch_url_, |
| 153 builtin_libraries_[id].patch_resources_); | 154 builtin_libraries_[id].patch_resources_); |
| 154 } | 155 } |
| 155 return library; | 156 return library; |
| 156 } | 157 } |
| 157 | 158 |
| 158 } // namespace dart | 159 } // namespace dart |
| 159 } // namespace mojo | 160 } // namespace mojo |
| OLD | NEW |