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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 years, 7 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: third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp b/third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp
index 62d61fb1cb41f15677e4b5cefc2b6928a149ce4e..e3b220fe77202c85e82fb2a874b87bf440916b27 100644
--- a/third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp
+++ b/third_party/WebKit/Source/web/RemoteFrameClientImpl.cpp
@@ -117,14 +117,6 @@ Frame* RemoteFrameClientImpl::lastChild() const
return toCoreFrame(m_webFrame->lastChild());
}
-bool RemoteFrameClientImpl::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;
-}
-
void RemoteFrameClientImpl::frameFocused() const
{
if (m_webFrame->client())
@@ -153,6 +145,13 @@ unsigned RemoteFrameClientImpl::backForwardLength()
return 2;
}
+void RemoteFrameClientImpl::forwardPostMessage(
+ MessageEvent* event, PassRefPtr<SecurityOrigin> target, LocalFrame* sourceFrame) const
+{
+ if (m_webFrame->client())
+ m_webFrame->client()->forwardPostMessage(WebLocalFrameImpl::fromFrame(sourceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
+}
+
// FIXME: Remove this code once we have input routing in the browser
// process. See http://crbug.com/339659.
void RemoteFrameClientImpl::forwardInputEvent(Event* event)
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameClientImpl.h ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698