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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for some 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: 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..03ce5d7ff51182da75feb9bfc7d07c3a1a99bfe8
--- /dev/null
+++ b/third_party/WebKit/Source/web/SnapshotCreator.cpp
@@ -0,0 +1,20 @@
+#include "public/web/SnapshotCreator.h"
haraken 2017/05/20 19:10:03 Add a copyright.
peria 2017/05/30 08:25:44 Done.
+
+#include "bindings/core/v8/V8SnapshotCreator.h"
+#include "v8/include/v8.h"
+
+namespace blink {
+
+v8::StartupData SnapshotCreator::TakeSnapshot(v8::SnapshotCreator* creator) {
+ return V8SnapshotCreator::TakeSnapshot(creator);
+}
+
+v8::SnapshotCreator* SnapshotCreator::GetSnapshotCreator() {
+ return V8SnapshotCreator::GetSnapshotCreator();
+}
+
+void SnapshotCreator::SetTakingSnapshot(bool value) {
+ V8SnapshotCreator::SetTakingSnapshot(value);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698