DescriptionMediaStreamManager needs to outlive its clients like MediaStreamDispatcherHost, which is deleted when the IPC channels goes away. So MediaStreamManager needs to outlive IO thread. But its components like device thread, AudioInputDeviceManager and VideoCaptureManager should be deleted before IO thread gets deleted. We achieve this by having a destructor observer on the IO thread, and delete the components before IO thread goes away.
BUG=137476
TEST=content_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147240
Patch Set 1 #Patch Set 2 : updated unittests #
Total comments: 14
Patch Set 3 : addressed Tommi's comments. #Patch Set 4 : fixed the pyauto test #
Total comments: 2
Patch Set 5 : revert media_stream_device_settings.cc #Patch Set 6 : we need to call thread_->Stop() explicitly on windows before calling reset() #Patch Set 7 : put Stop() in the dtor. #Messages
Total messages: 14 (0 generated)
|