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

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

Issue 7017014: Fix issues when PrerenderContents::Destroy() is called during TabContents destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unnecessary function call 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 85626)
+++ chrome/browser/prerender/prerender_manager.h (working copy)
@@ -105,8 +105,10 @@
bool MaybeUsePreloadedPageOld(TabContents* tab_contents, const GURL& url);
// Moves a PrerenderContents to the pending delete list from the list of
- // active prerenders when prerendering should be cancelled.
- void MoveEntryToPendingDelete(PrerenderContents* entry);
+ // active prerenders when prerendering should be cancelled. Returns true
+ // on success. If |entry| was not an active prerender, returns false and
+ // does not move |entry| to the pending delete list.
+ bool MoveEntryToPendingDelete(PrerenderContents* entry);
// Checks if the PrerenderContents has been added to the pending delete list.
bool IsPendingDelete(PrerenderContents* entry) const;

Powered by Google App Engine
This is Rietveld 408576698