summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_contents_view.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 21:52:10 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-25 21:52:10 +0000
commit7fe2c0b8630fabd9919dc61757392ea2aac9d72b (patch)
treee62d4ffdc74da800596e584def2ba3eef58f5f8d /chrome/browser/web_contents_view.h
parent1aba79c9137e3b44ab37b1d48f1575704331ed7e (diff)
downloadchromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.zip
chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.gz
chromium_src-7fe2c0b8630fabd9919dc61757392ea2aac9d72b.tar.bz2
Attempt at fixing crash in WebContents::ShowWidget. I suspect this is
happening because the RenderWidgetHost is getting destroyed between the time it is created but before it it shown (perhaps the renderer went away). BUG=4629 TEST=none Review URL: http://codereview.chromium.org/12439 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_contents_view.h')
-rw-r--r--chrome/browser/web_contents_view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/web_contents_view.h b/chrome/browser/web_contents_view.h
index c253a7d..c197c00 100644
--- a/chrome/browser/web_contents_view.h
+++ b/chrome/browser/web_contents_view.h
@@ -118,6 +118,10 @@ class WebContentsView : public RenderViewHostDelegate::View {
// TabContents without the special code.
virtual void SizeContents(const gfx::Size& size) = 0;
+ // Invoked from the platform dependent web contents view when a
+ // RenderWidgetHost is deleted. Removes |host| from internal maps.
+ void RenderWidgetHostDestroyed(RenderWidgetHost* host);
+
// Find in page --------------------------------------------------------------
// Opens the find in page window if it isn't already open. It will advance to