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

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 1331213002: Expose the V8 script context from WebRemoteFrame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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: Source/web/WebRemoteFrameImpl.cpp
diff --git a/Source/web/WebRemoteFrameImpl.cpp b/Source/web/WebRemoteFrameImpl.cpp
index c9f39fc79aac8de4a33a3323c6ce95f90ef82d17..5223b31784c37cbffaf701cacf2322254efbd401 100644
--- a/Source/web/WebRemoteFrameImpl.cpp
+++ b/Source/web/WebRemoteFrameImpl.cpp
@@ -285,6 +285,11 @@ v8::Local<v8::Context> WebRemoteFrameImpl::mainWorldScriptContext() const
return v8::Local<v8::Context>();
}
+v8::Local<v8::Context> WebRemoteFrameImpl::doNotUseMainWorldScriptContext() const
+{
+ return toV8Context(frame(), DOMWrapperWorld::mainWorld());
+}
+
void WebRemoteFrameImpl::reload(bool ignoreCache)
{
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698