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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/V8ContextSnapshotExternalReferences.h

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Rebase Created 3 years, 5 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/bindings/modules/v8/V8ContextSnapshotExternalReferences.h
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8ContextSnapshotExternalReferences.h b/third_party/WebKit/Source/bindings/modules/v8/V8ContextSnapshotExternalReferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c7645eb4e1b8f1e38554250e5e7f42ba177e662
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/modules/v8/V8ContextSnapshotExternalReferences.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8ContextSnapshotExternalReferences_h
+#define V8ContextSnapshotExternalReferences_h
+
+#include <cstdint>
+
+#include "modules/ModulesExport.h"
+#include "platform/wtf/Allocator.h"
+
+namespace blink {
+
+// V8ContextSnapshotExternalReferences::GetTable() provides a table of pointers
+// of C++ callbacks exposed to V8. The table contains C++ callbacks for DOM
+// attribute getters, setters, DOM methods, wrapper type info etc.
+class MODULES_EXPORT V8ContextSnapshotExternalReferences {
+ STATIC_ONLY(V8ContextSnapshotExternalReferences);
+
+ public:
+ // The definition of this method is auto-generated in
+ // V8ContextSnapshotExternalReferences.cpp.
+ static intptr_t* GetTable();
+};
+
+} // namespace blink
+
+#endif // V8ContextSnapshotExternalReferences_h
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/v8/BUILD.gn ('k') | third_party/WebKit/Source/bindings/modules/v8/generated.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698