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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 536063002: Clean up RenderWidgetHostView destruction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Safer scheme Created 6 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/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 7dba4d20e4799730fd11d2933a1dd2a5e28b3a4c..733bfd68aef8a2d58ff7c82a04ec36fd64e6ee86 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -225,8 +225,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// Noifies the RenderWidget of the current mouse cursor visibility state.
void SendCursorVisibilityState(bool is_visible);
- // Notifies the RenderWidgetHost that the View was destroyed.
- void ViewDestroyed();
+ // Notifies the RenderWidgetHost that a given View was destroyed and the
+ // RenderWidgetHost should not access it. It may be that the RenderWidgetHost
+ // had already severed all references to this view.
+ void ViewDestroyed(RenderWidgetHostViewBase* view);
#if defined(OS_MACOSX)
// Pause for a moment to wait for pending repaint or resize messages sent to
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698