Chromium Code Reviews| Index: content/browser/tab_contents/tab_contents.cc |
| diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
| index 14a387a62d7298b7d325c9325819baf2291c3afb..99d558597b72170d0036e010eea721910fea57f4 100644 |
| --- a/content/browser/tab_contents/tab_contents.cc |
| +++ b/content/browser/tab_contents/tab_contents.cc |
| @@ -1801,6 +1801,15 @@ void TabContents::LoadStateChanged(const GURL& url, |
| NotifyNavigationStateChanged(INVALIDATE_LOAD | INVALIDATE_TAB); |
| } |
| +void TabContents::OffsetAndPruneHistory(int offset) { |
| + // TODO(cbentzel): Should this pass in a SiteInstance and a page_id to |
| + // make sure we get the right one. |
|
gavinp
2011/08/08 16:39:47
NIT: Use a question mark on questions.
|
| + RenderViewHost* rvh = render_view_host(); |
| + if (!rvh) |
| + return; |
| + rvh->Send(new ViewMsg_OffsetAndPruneHistory(rvh->routing_id(), offset)); |
| +} |
| + |
| void TabContents::WorkerCrashed() { |
| if (delegate()) |
| delegate()->WorkerCrashed(this); |