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

Unified Diff: content/browser/tab_contents/tab_contents.cc

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: 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
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 03c0fdd9c18c14403df5d371351297b9bfeca2c1..b25507a9910709cd1bf9488805d11aa98ac0cca6 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1645,6 +1645,11 @@ void TabContents::Close(RenderViewHost* rvh) {
delegate()->CloseContents(this);
}
+void TabContents::SwappedOut(RenderViewHost* rvh) {
+ if (delegate() && rvh == render_view_host())
Charlie Reis 2011/11/11 22:23:52 You're seeing the current RenderViewHost send a sw
+ delegate()->SwappedOut(this);
+}
+
void TabContents::RequestMove(const gfx::Rect& new_bounds) {
if (delegate() && delegate()->IsPopupOrPanel(this))
delegate()->MoveContents(this, new_bounds);
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698