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

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

Issue 7038012: Safely cancel prerenders on threads other than the UI thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix linux 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
Index: chrome/browser/prerender/prerender_manager.h
===================================================================
--- chrome/browser/prerender/prerender_manager.h (revision 85771)
+++ chrome/browser/prerender/prerender_manager.h (working copy)
@@ -48,15 +48,6 @@
const GURL& referrer,
bool make_pending);
-// Given a renderer process id and view id, this will destroy any preloads and
-// pending preloads than are using or originated in the given render view.
-// Must be called on the UI thread.
-void DestroyPreloadForRenderView(
- const base::WeakPtr<PrerenderManager>& prerender_manager_weak_ptr,
- int render_process_id,
- int render_view_id,
- FinalStatus final_status);
-
// PrerenderManager is responsible for initiating and keeping prerendered
// views of webpages. All methods must be called on the UI thread unless
// indicated otherwise.
@@ -93,7 +84,7 @@
// Destroy all preloads for the given child route id pair and assign a final
// status to them.
- void DestroyPreloadForChildRouteIdPair(
+ virtual void DestroyPreloadForChildRouteIdPair(
const std::pair<int, int>& child_route_id_pair,
FinalStatus final_status);

Powered by Google App Engine
This is Rietveld 408576698