Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Issue 2350693002: Remove device enumeration, caching and monitoring from MediaStreamManager. (Closed)

Created:
4 years, 3 months ago by Guido Urdaneta
Modified:
4 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, hta - Chromium, jochen (gone - plz use gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove device enumeration, caching and monitoring from MediaStreamManager. This CL introduces MediaDevicesManager, which is now responsible for low-level device enumerations, including using device monitoring to maintain updated caches. This CL also removes the enumeration functionality from the MediaStreamProvider interface, as MediaDevicesManager is the new class resnposible for providing enumeration results to be used to handle renderer-generated enumeration requests and device-change notifications. Due to this, relatively minor changes are made to AudioInputDeviceManager and VideoCaptureManager. BUG=647660 Committed: https://crrev.com/cc6d460ef322ee5b6eb57736cdf5bdfb8f5c73d2 Cr-Commit-Position: refs/heads/master@{#420735}

Patch Set 1 #

Total comments: 24

Patch Set 2 : Minor DCHECK fix #

Total comments: 20

Patch Set 3 : addressed comments by tommi and hta #

Patch Set 4 : latest hta@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1600 lines, -769 lines) Patch
M content/browser/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager.h View 5 chunks +1 line, -17 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager.cc View 9 chunks +4 lines, -80 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager_unittest.cc View 4 chunks +9 lines, -11 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 3 chunks +5 lines, -2 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_manager.h View 1 2 3 1 chunk +154 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_manager.cc View 1 2 3 1 chunk +521 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_devices_manager_unittest.cc View 1 2 3 1 chunk +418 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 7 chunks +32 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 13 chunks +56 lines, -67 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 34 chunks +265 lines, -412 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_provider.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 4 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 4 chunks +17 lines, -25 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 2 17 chunks +43 lines, -132 lines 0 comments Download
M content/common/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/common/media/media_devices.h View 1 chunk +39 lines, -0 lines 0 comments Download
A content/common/media/media_devices.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M content/public/common/media_stream_request.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
Guido Urdaneta
Hi, PTAL https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.h File content/browser/renderer_host/media/audio_input_device_manager.h (right): https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.h#newcode17 content/browser/renderer_host/media/audio_input_device_manager.h:17: #include <vector> This is a drive-by lint ...
4 years, 3 months ago (2016-09-19 13:12:25 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc File content/browser/renderer_host/media/media_devices_manager.cc (right): https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc#newcode43 content/browser/renderer_host/media/media_devices_manager.cc:43: base::StringPrintf("Getting devices for stream type %d:\n", device_type); nit: do ...
4 years, 3 months ago (2016-09-20 08:47:15 UTC) #9
hta - Chromium
Sending comments on the tests. Will return to comments on the code. https://codereview.chromium.org/2350693002/diff/20001/content/browser/renderer_host/media/media_devices_manager_unittest.cc File content/browser/renderer_host/media/media_devices_manager_unittest.cc ...
4 years, 3 months ago (2016-09-20 09:41:39 UTC) #12
hta - Chromium
Comments on the new implementation. Some thoughts. Still not reviewed the changed files. https://codereview.chromium.org/2350693002/diff/20001/content/browser/renderer_host/media/media_devices_manager.cc File ...
4 years, 3 months ago (2016-09-20 10:55:30 UTC) #13
Guido Urdaneta
https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc File content/browser/renderer_host/media/media_devices_manager.cc (right): https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc#newcode43 content/browser/renderer_host/media/media_devices_manager.cc:43: base::StringPrintf("Getting devices for stream type %d:\n", device_type); On 2016/09/20 ...
4 years, 3 months ago (2016-09-20 13:59:28 UTC) #14
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc File content/browser/renderer_host/media/media_devices_manager.cc (right): https://codereview.chromium.org/2350693002/diff/1/content/browser/renderer_host/media/media_devices_manager.cc#newcode43 content/browser/renderer_host/media/media_devices_manager.cc:43: base::StringPrintf("Getting devices for stream type %d:\n", device_type); On ...
4 years, 3 months ago (2016-09-20 14:51:09 UTC) #17
Guido Urdaneta
jochen@chromium.org: Please review content/public and the BUILD.gn files.
4 years, 3 months ago (2016-09-20 14:55:30 UTC) #18
Guido Urdaneta
jochen@chromium.org: Please review changes in content/public and the BUILD.gn files.
4 years, 3 months ago (2016-09-20 14:56:58 UTC) #20
hta - Chromium
lgtm
4 years, 3 months ago (2016-09-20 15:05:51 UTC) #21
Guido Urdaneta
avi@: Can you rs this?
4 years, 2 months ago (2016-09-23 17:07:49 UTC) #27
Avi (use Gerrit)
lgtm stampity stamp
4 years, 2 months ago (2016-09-23 17:40:32 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2350693002/60001
4 years, 2 months ago (2016-09-23 19:06:33 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-23 21:29:02 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 21:32:34 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cc6d460ef322ee5b6eb57736cdf5bdfb8f5c73d2
Cr-Commit-Position: refs/heads/master@{#420735}

Powered by Google App Engine
This is Rietveld 408576698