DescriptionChannelMojo: Handle when ChannelMojo outlives ChannelMojoHost
In some case ChannelMojo outlives ChannelMojoHost because
two objects are living in diffent thread.
Instead of using lifecycle callbacks, this CL relies on
WeakPtr. See comment on ipc_channel_mojo_host.h for
more details.
This CL also fixes a crash on --single-process mode.
R=viettrungluu@chromium.org
TBR=jam@chromium.org
TEST=content_browsertests (with --enable-renderer-mojo-channel on)
BUG=377980
Committed: https://crrev.com/e9453ea69cbb3d52e67394e75c747b0b2d970621
Cr-Commit-Position: refs/heads/master@{#296871}
Patch Set 1 #
Total comments: 20
Patch Set 2 : Updated #
Total comments: 4
Patch Set 3 : Landing #Patch Set 4 : Landing #
Messages
Total messages: 12 (3 generated)
|