summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 19:08:35 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 19:08:35 +0000
commit50b691cc2cfdbb3b39e05c6c1632d6e9276f52d1 (patch)
tree8ce30104490e98073bf78dbd71f8e88df3734174 /chrome/renderer/render_view.h
parent11853ace9b087d6896e1bcd7cee161bed615b364 (diff)
downloadchromium_src-50b691cc2cfdbb3b39e05c6c1632d6e9276f52d1.zip
chromium_src-50b691cc2cfdbb3b39e05c6c1632d6e9276f52d1.tar.gz
chromium_src-50b691cc2cfdbb3b39e05c6c1632d6e9276f52d1.tar.bz2
Part 2 of the CL to unfork our changes to FrameLoader.cpp to support the
window.history object. I've reverted our original changes and gone with a different approach. The idea is to fake the HistoryItem that FrameLoader asks for synchronously, and give it a special URL that we can intercept later and do the back/forward navigation. BUG=3912 Review URL: http://codereview.chromium.org/8756 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index ddfe6d3..e468e98 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -670,6 +670,11 @@ class RenderView : public RenderWidget, public WebViewDelegate,
// Set if we are waiting for an ack for ViewHostMsg_CreateWindow
bool waiting_for_create_window_ack_;
+ // A cached WebHistoryItem used for back/forward navigations initiated by
+ // WebCore (via the window.history.go API). We only have one such navigation
+ // pending at a time.
+ scoped_refptr<WebHistoryItem> history_navigation_item_;
+
DISALLOW_COPY_AND_ASSIGN(RenderView);
};