Commit 5229253b authored by cbentzel@chromium.org's avatar cbentzel@chromium.org

Remove references to prerender and instant in content.

These were introduced with the SetHistoryLengthAndPrune changes.


Review URL: http://codereview.chromium.org/7633071

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96939 0039d316-1c4b-4281-b951-d872f2087c98
parent 0f57d2f2
...@@ -599,10 +599,8 @@ bool TabContents::NavigateToEntry( ...@@ -599,10 +599,8 @@ bool TabContents::NavigateToEntry(
void TabContents::SetHistoryLengthAndPrune(const SiteInstance* site_instance, void TabContents::SetHistoryLengthAndPrune(const SiteInstance* site_instance,
int history_length, int history_length,
int32 minimum_page_id) { int32 minimum_page_id) {
// SetHistoryLengthAndPrune doesn't handle pending cross-site navigations // SetHistoryLengthAndPrune doesn't work when there are pending cross-site
// cleanly. Since it's only used when swapping in instant and prerendered // navigations. Callers should ensure that this is the case.
// TabContents, checks are done at a higher level to ensure that the pages
// are not swapped in during this case.
if (render_manager_.pending_render_view_host()) { if (render_manager_.pending_render_view_host()) {
NOTREACHED(); NOTREACHED();
return; return;
......
...@@ -748,16 +748,15 @@ IPC_STRUCT_END() ...@@ -748,16 +748,15 @@ IPC_STRUCT_END()
IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID,
int32 /* next_page_id */) int32 /* next_page_id */)
// Sent to the RenderView when a prerendered or instant page is committed // Sent to the RenderView when a new tab is swapped into an existing
// to an existing tab. The existing tab has a history of // tab and the histories need to be merged. The existing tab has a history of
// |merged_history_length| which precedes the current history of pages // |merged_history_length| which precedes the history of the new tab. All
// in the render view. All page_ids >= |minimum_page_id| are appended to // page_ids >= |minimum_page_id| in the new tab are appended to the history.
// this new history in the same order.
// //
// For example, suppose the history of page_ids in the instant RenderView // For example, suppose the history of page_ids in the new tab's RenderView
// is [4 7 8]. This instant RenderView is committed, and merged into // is [4 7 8]. This is merged into an existing tab with 3 history items, and
// an existing tab with 3 history items, with every page with page_id >= 7 // all pages in the new tab with page_id >= 7 are to be preserved.
// is preserved. The resulting page history is [-1 -1 -1 7 8]. // The resulting page history is [-1 -1 -1 7 8].
IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune,
int, /* merge_history_length */ int, /* merge_history_length */
int32 /* minimum_page_id */) int32 /* minimum_page_id */)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment