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

Unified Diff: Source/web/RemoteFrameClientImpl.cpp

Issue 1176843006: Move window.close implementation to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and move backForwardHistory to FrameClient. Created 5 years, 6 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/RemoteFrameClientImpl.cpp b/Source/web/RemoteFrameClientImpl.cpp
index a5fb499fd462879bc703ca48544bdd00b97788d0..e6ee822c016cc64f320f890ae7bb281c441b2256 100644
--- a/Source/web/RemoteFrameClientImpl.cpp
+++ b/Source/web/RemoteFrameClientImpl.cpp
@@ -110,6 +110,15 @@ void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy
m_webFrame->client()->reload(loadType == FrameLoadTypeReloadFromOrigin, clientRedirectPolicy == ClientRedirect);
}
+unsigned RemoteFrameClientImpl::backForwardLength()
+{
+ // TODO(creis,japhet): This method should return the real value for the
+ // session history length. For now, return static value for the initial
+ // navigation and the subsequent one moving the frame out-of-process.
+ // See https://crbug.com/501116.
+ return 2;
+}
+
// FIXME: Remove this code once we have input routing in the browser
// process. See http://crbug.com/339659.
void RemoteFrameClientImpl::forwardInputEvent(Event* event)

Powered by Google App Engine
This is Rietveld 408576698