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

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: forward declarations, drop a spurious parameter 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/core/frame/RemoteFrame.h ('k') | Source/core/frame/RemoteFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/RemoteFrame.cpp
diff --git a/Source/core/frame/RemoteFrame.cpp b/Source/core/frame/RemoteFrame.cpp
index 54ebd930fefbe39eb35bebbe19099f2c94046a94..28bed4677ace03842aa993b97f019ae7b38d0d8c 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)
{
}
-PassRefPtrWillBeRawPtr<RemoteFrame> RemoteFrame::create(FrameClient* client, FrameHost* host, FrameOwner* owner)
+PassRefPtrWillBeRawPtr<RemoteFrame> RemoteFrame::create(RemoteFrameClient* client, FrameHost* host, FrameOwner* owner)
{
return adoptRefWillBeNoop(new RemoteFrame(client, host, owner));
}
@@ -25,6 +26,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();
@@ -48,4 +54,9 @@ void RemoteFrame::createView()
}
}
+RemoteFrameClient* RemoteFrame::remoteFrameClient() const
+{
+ return static_cast<RemoteFrameClient*>(client());
+}
+
} // namespace blink
« no previous file with comments | « Source/core/frame/RemoteFrame.h ('k') | Source/core/frame/RemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698