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

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

Issue 7077009: Handle AddPreload/AddPendingPreload on UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.h
===================================================================
--- chrome/browser/prerender/prerender_manager.h (revision 86832)
+++ chrome/browser/prerender/prerender_manager.h (working copy)
@@ -47,8 +47,7 @@
int render_process_id,
int render_view_id,
const GURL& url,
- const GURL& referrer,
- bool make_pending);
+ const GURL& referrer);
void DestroyPreloadForRenderView(
const base::WeakPtr<PrerenderManager>& prerender_manager_weak_ptr,
@@ -81,15 +80,13 @@
// RenderViewHost that the prerender request came from and is used to
// set the initial window size of the RenderViewHost used for prerendering.
// Returns true if the URL was added, false if it was not.
+ // If |child_route_id_pair| itself is prerendering, adds the preloads as
+ // a pending preload.
bool AddPreload(
const std::pair<int, int>& child_route_id_pair,
const GURL& url,
const GURL& referrer);
- void AddPendingPreload(const std::pair<int, int>& child_route_id_pair,
- const GURL& url,
- const GURL& referrer);
-
// Destroy all preloads for the given child route id pair and assign a final
// status to them.
virtual void DestroyPreloadForChildRouteIdPair(
@@ -211,6 +208,13 @@
struct PrerenderContentsData;
struct NavigationRecord;
+ // Adds a pending preload issued by the prerendering RenderView identified by
+ // |child_route_id_pair|. If and when that prerendering RenderView is used,
+ // the specified prerender will start.
+ void AddPendingPreload(const std::pair<int, int>& child_route_id_pair,
+ const GURL& url,
+ const GURL& referrer);
+
// Starts scheduling periodic cleanups.
void StartSchedulingPeriodicCleanups();
// Stops scheduling periodic cleanups if they're no longer needed.
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698