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

Unified Diff: third_party/WebKit/Source/web/SnapshotCreator.cpp

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Fix some behaviors 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: third_party/WebKit/Source/web/SnapshotCreator.cpp
diff --git a/third_party/WebKit/Source/web/SnapshotCreator.cpp b/third_party/WebKit/Source/web/SnapshotCreator.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a44ad1f003216cdf1afc06752fa4bd689869a99d
--- /dev/null
+++ b/third_party/WebKit/Source/web/SnapshotCreator.cpp
@@ -0,0 +1,31 @@
+#include "public/web/SnapshotCreator.h"
+
+#include "bindings/core/v8/V8SnapshotCreator.h"
+#include "v8/include/v8.h"
+
+namespace blink {
+
+void SnapshotCreator::TakeSnapshot(v8::SnapshotCreator* creator, int worldId) {
+ V8SnapshotCreator::TakeSnapshot(creator, worldId);
+}
+
+v8::StartupData SnapshotCreator::SetUpSnapshotCreator(
+ v8::SnapshotCreator* creator) {
+ return V8SnapshotCreator::SetUpSnapshotCreator(creator);
+}
+
+v8::SnapshotCreator* SnapshotCreator::GetSnapshotCreator() {
+ return V8SnapshotCreator::GetSnapshotCreator();
+}
+
+v8::StartupData SnapshotCreator::Serialize(v8::Local<v8::Object> holder,
+ int index,
+ void* data) {
+ return V8SnapshotCreator::Serialize(holder, index, data);
+}
+
+void SnapshotCreator::SetTakingSnapshot(bool value) {
+ V8SnapshotCreator::SetTakingSnapshot(value);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698