summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 436772c..a993327 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -279,7 +279,7 @@ class RenderView : public RenderWidget,
virtual void TakeFocus(WebView* webview, bool reverse);
virtual void JSOutOfMemory();
- virtual void NavigateBackForwardSoon(int offset);
+ virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset);
virtual int GetHistoryBackListCount();
virtual int GetHistoryForwardListCount();
virtual void OnNavStateChanged(WebView* webview);
@@ -463,6 +463,10 @@ class RenderView : public RenderWidget,
// keyword search.
void AddGURLSearchProvider(const GURL& osd_url, bool autodetected);
+ // Tells the browser process to navigate to a back/forward entry at the given
+ // offset from current.
+ void GoToEntryAtOffset(int offset);
+
// RenderView IPC message handlers
void SendThumbnail();
void OnPrintPages();
@@ -766,6 +770,11 @@ class RenderView : public RenderWidget,
// out of date responses.
int form_field_autofill_request_id_;
+ // 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_;
+
// We need to prevent windows from closing themselves with a window.close()
// call while a blocked popup notification is being displayed. We cannot
// synchronously query the Browser process. We cannot wait for the Browser