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

Unified Diff: Source/web/RemoteFrameClientImpl.cpp

Issue 573353002: Plumbing toward transitioning remote frame back to a local frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/web/RemoteFrameClientImpl.cpp
diff --git a/Source/web/RemoteFrameClient.cpp b/Source/web/RemoteFrameClientImpl.cpp
similarity index 54%
rename from Source/web/RemoteFrameClient.cpp
rename to Source/web/RemoteFrameClientImpl.cpp
index ff9d6a1fee986d103d4348c9e8cc5878709b5384..34a5c0b9d1b1f075e4dd3e4efad0d0bb0037f24d 100644
--- a/Source/web/RemoteFrameClient.cpp
+++ b/Source/web/RemoteFrameClientImpl.cpp
@@ -3,60 +3,62 @@
// found in the LICENSE file.
#include "config.h"
-#include "web/RemoteFrameClient.h"
+#include "web/RemoteFrameClientImpl.h"
+#include "platform/exported/WrappedResourceRequest.h"
#include "platform/weborigin/SecurityOrigin.h"
+#include "platform/weborigin/SecurityPolicy.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebRemoteFrameImpl.h"
namespace blink {
-RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
+RemoteFrameClientImpl::RemoteFrameClientImpl(WebRemoteFrameImpl* webFrame)
: m_webFrame(webFrame)
{
}
-Frame* RemoteFrameClient::opener() const
+Frame* RemoteFrameClientImpl::opener() const
{
return toCoreFrame(m_webFrame->opener());
}
-void RemoteFrameClient::setOpener(Frame*)
+void RemoteFrameClientImpl::setOpener(Frame*)
{
// FIXME: Implement.
}
-Frame* RemoteFrameClient::parent() const
+Frame* RemoteFrameClientImpl::parent() const
{
return toCoreFrame(m_webFrame->parent());
}
-Frame* RemoteFrameClient::top() const
+Frame* RemoteFrameClientImpl::top() const
{
return toCoreFrame(m_webFrame->top());
}
-Frame* RemoteFrameClient::previousSibling() const
+Frame* RemoteFrameClientImpl::previousSibling() const
{
return toCoreFrame(m_webFrame->previousSibling());
}
-Frame* RemoteFrameClient::nextSibling() const
+Frame* RemoteFrameClientImpl::nextSibling() const
{
return toCoreFrame(m_webFrame->nextSibling());
}
-Frame* RemoteFrameClient::firstChild() const
+Frame* RemoteFrameClientImpl::firstChild() const
{
return toCoreFrame(m_webFrame->firstChild());
}
-Frame* RemoteFrameClient::lastChild() const
+Frame* RemoteFrameClientImpl::lastChild() const
{
return toCoreFrame(m_webFrame->lastChild());
}
-bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
+bool RemoteFrameClientImpl::willCheckAndDispatchMessageEvent(
SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
{
if (m_webFrame->client())
@@ -64,4 +66,10 @@ bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
return true;
}
+void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool shouldReplaceCurrentEntry)
+{
+ if (m_webFrame->client())
+ m_webFrame->client()->navigate(m_webFrame, WrappedResourceRequest(request), shouldReplaceCurrentEntry);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698