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

Issue 2538033003: Implement GetUserMedia device ID constraint processing in the renderer. (Closed)

Created:
4 years ago by Guido Urdaneta
Modified:
4 years ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement the processing of the deviceId constraint for getUserMedia in the renderer process. This is a first step in the context of implementing MediaStreamTrack.applyConstraints. In the original version, the renderer sends a structure containing zero or more candidate device IDs to the browser. The browser selected one candidate and tried to use that device if the requesting origin had authorization. In the new version the renderer does the initial selection and sends zero or one candidate ID to the browser. Note that in both cases the final decision about whether to use a candidate device ID requested by the renderer lies in the browser, which always checks that the requesting origin is authorized to use the corresponding device. BUG=338503 Committed: https://crrev.com/a12310b23b600d971816c01bb5cd7f6034db50fa Cr-Commit-Position: refs/heads/master@{#435896}

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 14

Patch Set 3 : hta's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -204 lines) Patch
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 4 chunks +10 lines, -72 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 4 chunks +15 lines, -29 lines 0 comments Download
M content/common/media/media_stream_messages.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/media/media_stream_options.h View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M content/renderer/media/user_media_client_impl.h View 1 chunk +14 lines, -0 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 2 4 chunks +208 lines, -93 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (22 generated)
Guido Urdaneta
Hi, PTAL palmer@chromium.org: please review IPC content/common/media/media_stream_messages.h
4 years ago (2016-11-30 17:17:54 UTC) #10
hta - Chromium
lgtm Mostly about clarity of comments. I do worry about the fact that we still ...
4 years ago (2016-11-30 18:51:43 UTC) #13
palmer
Neither the bug nor the CL description explains what's going on, and I don't see ...
4 years ago (2016-11-30 20:38:36 UTC) #14
chromium-reviews
Hm. That's a new requirement, if so. The renderer mediates the user's desire for devices. ...
4 years ago (2016-11-30 21:03:46 UTC) #15
Guido Urdaneta
On 2016/11/30 20:38:36, palmer wrote: > Neither the bug nor the CL description explains what's ...
4 years ago (2016-11-30 21:15:03 UTC) #16
tommi (sloooow) - chröme
I think the description can be improved. As is, it's easy to read it in ...
4 years ago (2016-12-01 09:31:11 UTC) #18
Guido Urdaneta
https://codereview.chromium.org/2538033003/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc File content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc (right): https://codereview.chromium.org/2538033003/diff/20001/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc#newcode635 content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc:635: // Test that we can generate streams where a ...
4 years ago (2016-12-01 10:28:53 UTC) #20
Guido Urdaneta
palmer@: The description has been updated to better reflect what this CL does. Can you ...
4 years ago (2016-12-01 17:06:29 UTC) #21
palmer
lgtm
4 years ago (2016-12-01 23:39:44 UTC) #26
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/2538033003/40001
4 years ago (2016-12-02 09:23:07 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-02 09:28:15 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-02 09:30:27 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a12310b23b600d971816c01bb5cd7f6034db50fa
Cr-Commit-Position: refs/heads/master@{#435896}

Powered by Google App Engine
This is Rietveld 408576698