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

Unified Diff: Source/core/frame/RemoteFrame.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/core/frame/RemoteFrame.cpp
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
index 1b0e04e5b191d34055b23181db1a5b72f3ec9ea7..69c59e05d15ec087ac68523d0fb40bb7128b64e2 100644
--- a/Source/core/frame/RemoteFrame.cpp
+++ b/Source/core/frame/RemoteFrame.cpp
@@ -5,6 +5,7 @@
#include "config.h"
#include "core/frame/RemoteFrame.h"
+#include "core/dom/RemoteSecurityContext.h"
#include "core/frame/RemoteFrameClient.h"
#include "core/frame/RemoteFrameView.h"
#include "core/html/HTMLFrameOwnerElement.h"
@@ -15,6 +16,7 @@ namespace blink {
inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
: Frame(client, host, owner)
{
+ m_securityContext = RemoteSecurityContext::create();
dcheng 2014/11/18 23:31:40 Nit: move this into the initializer list.
alexmos 2014/11/19 00:33:04 Done.
}
PassRefPtrWillBeRawPtr<RemoteFrame> RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
@@ -50,6 +52,11 @@ void RemoteFrame::detach()
Frame::detach();
}
+RemoteSecurityContext* RemoteFrame::securityContext() const
+{
+ return m_securityContext.get();
+}
+
void RemoteFrame::forwardInputEvent(Event* event)
{
remoteFrameClient()->forwardInputEvent(event);

Powered by Google App Engine
This is Rietveld 408576698