Fix the issue that any tab/window closing hotkey will crash the Pepper Flash Fullscreen.

BUG=149821
TEST=None


Review URL: https://chromiumcodereview.appspot.com/10968037

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158408 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 2dcbfd2e..9429df3 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"
@@ -47,6 +48,7 @@
 class RenderViewHost;
 class RenderViewHostDelegateView;
 class RenderViewHostImpl;
+class RenderWidgetHostImpl;
 class SiteInstance;
 class TestWebContents;
 class WebContentsDelegate;
@@ -429,6 +431,8 @@
 
   // RenderWidgetHostDelegate --------------------------------------------------
 
+  virtual void RenderWidgetDeleted(
+      content::RenderWidgetHostImpl* render_widget_host) OVERRIDE;
   virtual bool PreHandleKeyboardEvent(
       const content::NativeWebKeyboardEvent& event,
       bool* is_keyboard_shortcut) OVERRIDE;
@@ -859,6 +863,10 @@
   // to the RVH through which the message was received.
   content::RenderViewHost* message_source_;
 
+  // All live RenderWidgetHostImpls that are created by this object and may
+  // outlive it.
+  std::set<content::RenderWidgetHostImpl*> created_widgets_;
+
   DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
 };