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

Unified Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 520213002: Make SecurityContext available in RemoteFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review feedback from Daniel, expose securityOrigin() from WebFrame Created 6 years, 1 month 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 8a00aaaa9f803a3a726ba6539b64e11182f71c48..7b1e7576cdf384170a226d50505a9be8f40c6a95 100644
--- a/Source/web/WebRemoteFrameImpl.cpp
+++ b/Source/web/WebRemoteFrameImpl.cpp
@@ -849,4 +849,15 @@ void WebRemoteFrameImpl::initializeFromFrame(WebLocalFrame* source) const
localFrameImpl->frame()->view()->visibleContentScaleFactor());
}
+WebSecurityOrigin WebRemoteFrameImpl::securityOrigin() const
+{
+ return WebSecurityOrigin(frame()->securityContext()->securityOrigin());
+}
+
+void WebRemoteFrameImpl::setReplicatedOrigin(const WebSecurityOrigin& origin) const
+{
+ ASSERT(frame());
+ frame()->securityContext()->setReplicatedOrigin(origin);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698