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

Unified Diff: Source/web/RemoteFrameClient.cpp

Issue 543913002: Hook up postMessages to WebRemoteFrameClient (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix webkit_unit_tests compile Created 6 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
« no previous file with comments | « Source/web/RemoteFrameClient.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/RemoteFrameClient.cpp
diff --git a/Source/web/RemoteFrameClient.cpp b/Source/web/RemoteFrameClient.cpp
index 96325544cce8a77ad51fea828b737d851c1e9d93..ff9d6a1fee986d103d4348c9e8cc5878709b5384 100644
--- a/Source/web/RemoteFrameClient.cpp
+++ b/Source/web/RemoteFrameClient.cpp
@@ -5,6 +5,8 @@
#include "config.h"
#include "web/RemoteFrameClient.h"
+#include "platform/weborigin/SecurityOrigin.h"
+#include "web/WebLocalFrameImpl.h"
#include "web/WebRemoteFrameImpl.h"
namespace blink {
@@ -54,4 +56,12 @@ Frame* RemoteFrameClient::lastChild() const
return toCoreFrame(m_webFrame->lastChild());
}
+bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
+ SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
+{
+ if (m_webFrame->client())
+ m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sourceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
+ return true;
+}
+
} // namespace blink
« no previous file with comments | « Source/web/RemoteFrameClient.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698