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

Unified Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 8539027: Add SwappedOut to TabContentsDelegate to allow us to correctly delete TabContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux compile Created 9 years, 1 month 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: content/browser/tab_contents/tab_contents_delegate.h
diff --git a/content/browser/tab_contents/tab_contents_delegate.h b/content/browser/tab_contents/tab_contents_delegate.h
index 8b095fe4987548db0f34abf422950607ac8fcdcc..f37b6404d614f129b3ada7a01312c86341424fad 100644
--- a/content/browser/tab_contents/tab_contents_delegate.h
+++ b/content/browser/tab_contents/tab_contents_delegate.h
@@ -119,6 +119,10 @@ class CONTENT_EXPORT TabContentsDelegate {
// it needs to do.
virtual void CloseContents(TabContents* source);
+ // Informs the delegate that the underlying RenderViewHost has been swapped
+ // out so it can perform any cleanup necessary.
+ virtual void SwappedOut(TabContents* source);
+
// Request the delegate to move this tab contents to the specified position
// in screen coordinates.
virtual void MoveContents(TabContents* source, const gfx::Rect& pos);

Powered by Google App Engine
This is Rietveld 408576698