Index: content/browser/web_contents/web_contents_impl.h |
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h |
index 2fda9db2e0e02ae4a224db704aa8f206b00e0cf1..561893e6a6cda45185dfe71a3ca3b3b00c044110 100644 |
--- a/content/browser/web_contents/web_contents_impl.h |
+++ b/content/browser/web_contents/web_contents_impl.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
#include <map> |
+#include <set> |
#include <string> |
#include "base/compiler_specific.h" |
@@ -45,6 +46,7 @@ class JavaScriptDialogCreator; |
class RenderViewHost; |
class RenderViewHostDelegateView; |
class RenderViewHostImpl; |
+class RenderWidgetHostImpl; |
class SiteInstance; |
class TestWebContents; |
class WebContentsDelegate; |
@@ -415,6 +417,8 @@ class CONTENT_EXPORT WebContentsImpl |
// RenderWidgetHostDelegate -------------------------------------------------- |
+ virtual void RenderWidgetDeleted( |
+ content::RenderWidgetHostImpl* render_widget_host) OVERRIDE; |
virtual bool PreHandleKeyboardEvent( |
const content::NativeWebKeyboardEvent& event, |
bool* is_keyboard_shortcut) OVERRIDE; |
@@ -831,6 +835,10 @@ class CONTENT_EXPORT WebContentsImpl |
// to the RVH through which the message was received. |
content::RenderViewHost* message_source_; |
+ // All alive RenderWidgetHostImpls that are created by this object and may |
jam
2012/09/22 00:01:34
nit: "All live"
yzshen1
2012/09/22 00:28:08
Done. Thanks. :)
On 2012/09/22 00:01:34, John Abd-
|
+ // outlive it. |
+ std::set<content::RenderWidgetHostImpl*> created_widgets_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
}; |