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

Unified Diff: runtime/bin/isolate_data.h

Issue 2433573002: GN: Build app snapshots for the SDK tools. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/isolate_data.h
diff --git a/runtime/bin/isolate_data.h b/runtime/bin/isolate_data.h
index a5e8bfb0e920a21d039813e8cc89c16caef8e03b..bb60740c80274fd1583cb34504a878d0b4f4eff4 100644
--- a/runtime/bin/isolate_data.h
+++ b/runtime/bin/isolate_data.h
@@ -16,6 +16,8 @@ namespace bin {
class EventHandler;
class Loader;
+typedef void (*ExitHook)(int64_t exit_code);
+
// Data associated with every isolate in the standalone VM
// embedding. This is used to free external resources for each isolate
// when the isolate shuts down.
@@ -29,7 +31,8 @@ class IsolateData {
packages_file(NULL),
udp_receive_buffer(NULL),
builtin_lib_(NULL),
- loader_(NULL) {
+ loader_(NULL),
+ exit_hook_(NULL) {
if (package_root != NULL) {
ASSERT(packages_file == NULL);
this->package_root = strdup(package_root);
@@ -64,6 +67,9 @@ class IsolateData {
builtin_lib_ = Dart_NewPersistentHandle(lib);
}
+ ExitHook exit_hook() const { return exit_hook_; }
+ void set_exit_hook(ExitHook hook) { exit_hook_ = hook; }
+
char* script_url;
char* package_root;
char* packages_file;
@@ -83,6 +89,7 @@ class IsolateData {
private:
Dart_Handle builtin_lib_;
Loader* loader_;
+ ExitHook exit_hook_;
DISALLOW_COPY_AND_ASSIGN(IsolateData);
};
« no previous file with comments | « runtime/bin/file_win.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698