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

Unified Diff: gin/v8_initializer.h

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for most comments Created 3 years, 7 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: gin/v8_initializer.h
diff --git a/gin/v8_initializer.h b/gin/v8_initializer.h
index 7d16c3eb6d940e39d2ba9ad5b1f4ba22eddb753a..10d191a5ea2aae0bc7be778b265fd0fc4638984d 100644
--- a/gin/v8_initializer.h
+++ b/gin/v8_initializer.h
@@ -76,6 +76,13 @@ class GIN_EXPORT V8Initializer {
#endif
#endif // V8_USE_EXTERNAL_STARTUP_DATA
+
+ static void LoadV8ContextFromFD(base::PlatformFile snapshot_fd,
+ int64_t snapshot_offset,
+ int64_t snapshot_size);
+ static void LoadV8Context();
+ static void GetV8ContextData(const char** snapshot_data_out,
+ int* snapshot_size_out);
};
} // namespace gin

Powered by Google App Engine
This is Rietveld 408576698