Implement getMediaDevices.
commitab6151f8a51c3aece3706ad01ce0a90474bf7a66
authorgrunell@chromium.org <grunell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 3 Jun 2014 20:35:06 +0000 (3 20:35 +0000)
committergrunell@chromium.org <grunell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 3 Jun 2014 20:35:06 +0000 (3 20:35 +0000)
tree3f72ecf0d44c5050b657f6b6cae902b6303b5082
parent8157b7624d0d4fa668a072bb97b6145049148f52
Implement getMediaDevices.

* Hook up two new function in the blink interface WebUserMediaClient in MediaStreamImpl through MediaStreamDispatcher to MediaStreamManager to enumerate audio and video input devices.
* Produces the same result as the current getSources API.
* The blink interface will be landed after this CL and browser test after that.
* Add audio output devices and group ID support is done in another CL.

BUG=338511

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274608 0039d316-1c4b-4281-b951-d872f2087c98
18 files changed:
content/browser/renderer_host/media/device_request_message_filter.cc
content/browser/renderer_host/media/device_request_message_filter_unittest.cc
content/browser/renderer_host/media/media_stream_dispatcher_host.cc
content/browser/renderer_host/media/media_stream_dispatcher_host.h
content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
content/browser/renderer_host/media/media_stream_manager.cc
content/browser/renderer_host/media/media_stream_manager.h
content/browser/renderer_host/media/video_capture_host_unittest.cc
content/browser/renderer_host/render_process_host_impl.cc
content/renderer/media/media_stream_dispatcher.h
content/renderer/media/media_stream_impl.cc
content/renderer/media/media_stream_impl.h
content/renderer/media/media_stream_impl_unittest.cc
content/renderer/media/mock_media_stream_dispatcher.cc
content/renderer/media/mock_media_stream_dispatcher.h
content/renderer/media/webrtc_uma_histograms.h
content/renderer/media/webrtc_uma_histograms_unittest.cc
tools/metrics/histograms/histograms.xml