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

Issue 2471543003: Add mojo-based support for media device-change notifications. (Closed)

Created:
4 years, 1 month ago by Guido Urdaneta
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, hta - Chromium, jam, mcasas+watch+vc_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add mojo-based support for media device-change notifications. Users of device-change notifications are not yet using this. An upcoming CL will include wiring of the Blink devicechange event and PepperMediaDeviceManager to this and removal of the corresponding code in MediaStreamDispatcher and MediaStreamDispatcherHost. BUG=648183 Committed: https://crrev.com/57409acb300fa06da3679b20d3474436fadb68c5 Cr-Commit-Position: refs/heads/master@{#430310}

Patch Set 1 #

Patch Set 2 : Fix memory leak in test #

Total comments: 10

Patch Set 3 : Address tommi's comments and rename routing_id to render_frame_id #

Patch Set 4 : Add DCHECK #

Patch Set 5 : Update Mojo renderer manifest #

Patch Set 6 : rebase #

Patch Set 7 : fix windows compile issue #

Total comments: 2

Patch Set 8 : remove unused #include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1019 lines, -31 lines) Patch
M content/browser/bad_message.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host.h View 1 2 3 4 5 6 7 4 chunks +36 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host.cc View 1 2 4 chunks +148 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_dispatcher_host_unittest.cc View 6 chunks +84 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_manager.h View 1 2 3 4 5 3 chunks +31 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_manager.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_devices_manager_unittest.cc View 2 chunks +125 lines, -0 lines 0 comments Download
M content/common/media/media_devices.mojom View 2 chunks +30 lines, -2 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A content/renderer/media/media_devices_event_dispatcher.h View 1 1 chunk +111 lines, -0 lines 0 comments Download
A content/renderer/media/media_devices_event_dispatcher.cc View 1 2 3 4 5 6 1 chunk +130 lines, -0 lines 0 comments Download
A content/renderer/media/media_devices_event_dispatcher_unittest.cc View 1 1 chunk +193 lines, -0 lines 0 comments Download
A content/renderer/media/media_devices_listener_impl.h View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A content/renderer/media/media_devices_listener_impl.cc View 1 chunk +43 lines, -0 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 49 (36 generated)
Guido Urdaneta
Hi, PTAL. In the meantime I'm resolving a leak in a unit test.
4 years, 1 month ago (2016-11-02 07:44:34 UTC) #14
Guido Urdaneta
mkwst@chromium.org: Please review IPC and histograms.xml
4 years, 1 month ago (2016-11-02 11:50:39 UTC) #24
Mike West
Looks reasonable; I'll hold off on stamping the IPC change until tommi@ is happy with ...
4 years, 1 month ago (2016-11-03 12:58:50 UTC) #26
tommi (sloooow) - chröme
lgtm. I'm assuming that the cases below are handled. If they're not, let me know ...
4 years, 1 month ago (2016-11-03 15:21:24 UTC) #27
Guido Urdaneta
tommi@: PTA(nother)L https://codereview.chromium.org/2471543003/diff/80001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc File content/browser/renderer_host/media/media_devices_dispatcher_host.cc (right): https://codereview.chromium.org/2471543003/diff/80001/content/browser/renderer_host/media/media_devices_dispatcher_host.cc#newcode51 content/browser/renderer_host/media/media_devices_dispatcher_host.cc:51: output->clear(); On 2016/11/03 15:21:24, tommi (chrömium) wrote: ...
4 years, 1 month ago (2016-11-03 16:25:24 UTC) #29
Guido Urdaneta
mkwst@: Please start security/IPC (and histograms) review. I discussed the latest changes with tommi@ offline ...
4 years, 1 month ago (2016-11-03 17:09:55 UTC) #30
Mike West
mojo LGTM. Thanks for adding the BAD_MESSAGE crash for origin mismatch.
4 years, 1 month ago (2016-11-07 09:14:32 UTC) #31
Guido Urdaneta
avi@chromium.org: Can you rs?
4 years, 1 month ago (2016-11-07 14:28:04 UTC) #38
Avi (use Gerrit)
LGTM with nit https://codereview.chromium.org/2471543003/diff/200001/content/browser/renderer_host/media/media_devices_dispatcher_host.h File content/browser/renderer_host/media/media_devices_dispatcher_host.h (right): https://codereview.chromium.org/2471543003/diff/200001/content/browser/renderer_host/media/media_devices_dispatcher_host.h#newcode8 content/browser/renderer_host/media/media_devices_dispatcher_host.h:8: #include <array> I don't see use ...
4 years, 1 month ago (2016-11-07 16:09:48 UTC) #41
Guido Urdaneta
https://codereview.chromium.org/2471543003/diff/200001/content/browser/renderer_host/media/media_devices_dispatcher_host.h File content/browser/renderer_host/media/media_devices_dispatcher_host.h (right): https://codereview.chromium.org/2471543003/diff/200001/content/browser/renderer_host/media/media_devices_dispatcher_host.h#newcode8 content/browser/renderer_host/media/media_devices_dispatcher_host.h:8: #include <array> On 2016/11/07 16:09:48, Avi wrote: > I ...
4 years, 1 month ago (2016-11-07 16:35:54 UTC) #42
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/2471543003/220001
4 years, 1 month ago (2016-11-07 16:36:28 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years, 1 month ago (2016-11-07 17:40:13 UTC) #47
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 18:14:27 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/57409acb300fa06da3679b20d3474436fadb68c5
Cr-Commit-Position: refs/heads/master@{#430310}

Powered by Google App Engine
This is Rietveld 408576698