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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 10968037: Fix the issue that any tab/window closing hotkey will crash the Pepper Flash Fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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/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..64a85e53cb1864af0439773bc3311572ea4a00d4 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 live RenderWidgetHostImpls that are created by this object and may
+ // outlive it.
+ std::set<content::RenderWidgetHostImpl*> created_widgets_;
+
DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
};
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698