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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ModuleProxy.cpp

Issue 1535943005: Initial implementation of bindings and basic classes for worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix memory leak. Created 5 years 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/core/v8/ModuleProxy.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.cpp
index 8c64197ac1e3b5c7731f8dde1d9fe8b7d6017f45..fbc7f3f0d4de34d030db99ee073b06e3678fc49c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ModuleProxy.cpp
@@ -15,4 +15,15 @@ ModuleProxy& ModuleProxy::moduleProxy()
return moduleProxy;
}
+ExecutionContext* ModuleProxy::toExecutionContextForModules(v8::Local<v8::Context> context)
+{
+ RELEASE_ASSERT(m_toExecutionContextForModules);
+ return (*m_toExecutionContextForModules)(context);
+}
+
+void ModuleProxy::registerToExecutionContextForModules(ExecutionContext* (*toExecutionContextForModules)(v8::Local<v8::Context>))
+{
+ m_toExecutionContextForModules = toExecutionContextForModules;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698