Refactor MediaStreamImpl::GetAuthorizedDeviceInfoForAudioRenderer.
commit4c2c348b8264abd903892550e55e8edfffcf66fa
authorperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 30 Sep 2013 11:41:47 +0000 (30 11:41 +0000)
committerperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 30 Sep 2013 11:41:47 +0000 (30 11:41 +0000)
tree16057c0fe00f15a52558e5a5b69ff929f684b797
parentb82e8840a0f483df8fb2f6d818972aa72e8177f9
Refactor MediaStreamImpl::GetAuthorizedDeviceInfoForAudioRenderer.

The new approach is to store the output parameters in the one and only WebRtcAudioCapturer if the constraint chromeRenderToAssociatedSink is set.
This is a temporary solution until the new output device enumeration is ready.
The reason for this refactoring is to be able to remove the use of UserMediaRequestInfo in MediaStreamImpl once a request has completed.

Functions needed for creating renderers for the media stream player will be refactored to a separate class. See https://codereview.chromium.org/24580002/.

BUG=293304

Review URL: https://codereview.chromium.org/24999003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225965 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/media/media_stream_dependency_factory.cc
content/renderer/media/media_stream_impl.cc
content/renderer/media/webrtc_audio_capturer.cc
content/renderer/media/webrtc_audio_capturer.h
content/renderer/media/webrtc_audio_device_unittest.cc