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

Unified Diff: Source/core/frame/RemoteFrame.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/core/frame/RemoteFrame.cpp
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
index ae7408abaf2b4476e58f467480ff6a6449d0df8c..5e3c77d8f93f003fcc16247a748a8c6a4b575028 100644
--- a/Source/core/frame/RemoteFrame.cpp
+++ b/Source/core/frame/RemoteFrame.cpp
@@ -5,17 +5,18 @@
#include "config.h"
#include "core/frame/RemoteFrame.h"
+#include "core/frame/RemoteFrameClient.h"
#include "core/frame/RemoteFrameView.h"
#include "core/html/HTMLFrameOwnerElement.h"
namespace blink {
-inline RemoteFrame::RemoteFrame(FrameClient* client, FrameHost* host, FrameOwner* owner)
+inline RemoteFrame::RemoteFrame(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
: Frame(client, host, owner)
{
}
-PassRefPtr<RemoteFrame> RemoteFrame::create(FrameClient* client, FrameHost* host, FrameOwner* owner)
+PassRefPtr<RemoteFrame> RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
{
RefPtr<RemoteFrame> frame = adoptRef(new RemoteFrame(client, host, owner));
return frame.release();
@@ -26,6 +27,11 @@ RemoteFrame::~RemoteFrame()
setView(nullptr);
}
+void RemoteFrame::navigate(Document&, const KURL& url, const Referrer& referrer, bool lockBackForwardList)
+{
+ remoteFrameClient()->navigate(ResourceRequest(url, referrer), lockBackForwardList);
+}
+
void RemoteFrame::detach()
{
detachChildren();
@@ -49,4 +55,9 @@ void RemoteFrame::createView()
}
}
+RemoteFrameClient* RemoteFrame::remoteFrameClient() const
+{
+ return static_cast<RemoteFrameClient*>(client());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698