Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1227)

Unified Diff: mojo/dart/embedder/builtin.h

Issue 950063002: Add patch file support to Dart embedder (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/dart/embedder/builtin.h
diff --git a/mojo/dart/embedder/builtin.h b/mojo/dart/embedder/builtin.h
index bce0c3e95fc38b976c399ad23e94044a9b2c3aec..aa2d0d5b41c0be4aaca20c58b8e3fe8022a188c7 100644
--- a/mojo/dart/embedder/builtin.h
+++ b/mojo/dart/embedder/builtin.h
@@ -56,15 +56,21 @@ class Builtin {
bool* auto_setup_scope);
static const uint8_t* NativeSymbol(Dart_NativeFunction nf);
-
+ static Dart_Handle ReadStringFromFile(const char* file);
+ static void LoadPatchFiles(Dart_Handle library,
+ const char* patch_uri,
+ const char** patch_files);
typedef struct {
const char* url_;
bool has_natives_;
Dart_NativeEntrySymbol native_symbol_;
Dart_NativeEntryResolver native_resolver_;
+ const char* patch_url_;
+ const char** patch_paths_;
} builtin_lib_props;
static builtin_lib_props builtin_libraries_[];
+ static const char* mojo_core_patch_paths_[];
DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin);
};

Powered by Google App Engine
This is Rietveld 408576698