Chromium Code Reviews
DescriptionImplement lifetime observer on RenderWidgetHostViewBase.
It is important for RenderWidgetHostInputEventRouter to know about the
destruction of RenderWidgetHostViewBase objects it owns pointers to.
In the past we have encountered issues with stale pointers, and until
now dealt with this using WeakPtrs to the views. But this approach still
requires checking pointers before use to see if they are stale.
This CL makes RenderWidgetHostInputEventRouter an observer of the
RenderWidgetHostViewBase objects it holds pointers to in order to avoid
holding stale pointers.
BUG=583379
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/3912c64fb9b8e5ad166060a91ccb752914016029
Cr-Commit-Position: refs/heads/master@{#378133}
Patch Set 1 #Patch Set 2 : Restructure, and make RWHVB derived classes responsible for early notification. #
Total comments: 10
Patch Set 3 : Can RWHVA's host_ ever be null? #Patch Set 4 : Rebased to r378132. #Messages
Total messages: 44 (23 generated)
|