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

Unified Diff: chrome/browser/prerender/prerender_manager.h

Issue 9416031: Prerendered pages are swapped in at browser::Navigate time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 8 years, 10 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: chrome/browser/prerender/prerender_manager.h
diff --git a/chrome/browser/prerender/prerender_manager.h b/chrome/browser/prerender/prerender_manager.h
index 393be4b0cb7843328b943e4dae75b301aae7c542..e19acf3a85e012100ab6a30deca340fc2bc8f1da 100644
--- a/chrome/browser/prerender/prerender_manager.h
+++ b/chrome/browser/prerender/prerender_manager.h
@@ -124,15 +124,11 @@ class PrerenderManager : public base::SupportsWeakPtr<PrerenderManager>,
// Cancels all active prerenders with the ORIGIN_OMNIBOX origin.
void CancelOmniboxPrerenders();
- // For a given WebContents that wants to navigate to the URL supplied,
- // determines whether a prerendered version of the URL can be used,
- // and substitutes the prerendered RVH into the WebContents. |opener_url| is
- // set to the window.opener url that the WebContents should have set and
- // will be empty if there is no opener set. Returns whether or not a
- // prerendered RVH could be used or not.
+ // If |url| matches a valid prerendered page, try to swap it into
+ // |web_contents| and merge browsing histories. Returns |true| if a
+ // prerendered page is swapped in, |false| otherwise.
bool MaybeUsePrerenderedPage(content::WebContents* web_contents,
- const GURL& url,
- const GURL& opener_url);
+ const GURL& url);
// Moves a PrerenderContents to the pending delete list from the list of
// active prerenders when prerendering should be cancelled.

Powered by Google App Engine
This is Rietveld 408576698