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

Issue 8480028: support video device enumeration from renderer process. (Closed)

Created:
9 years, 1 month ago by wjia(left Chromium)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

support video device enumeration from renderer process. 1. renderer process sends EnumerateDevices message to browser process, and expect DevicesEnumerated or DeivcesEnumerationFailed message. 2. renderer process sends OpenDevice message to browser process, and expect DeviceOpened or DeviceOpenFailed message. 3. after renderer process gets DeviceOpened message, it can use |label| to get the session_id which is the identifier to Start/Stop video capture. 4. renderer process re-uses StopGeneratedStream for CloseOpenedDevice. 5. simplify interface between MediaStreamManager and MediaStreamDeviceSettings by removing GetDevices function call. The test example code is at http://codereview.chromium.org/8511074/ BUG=41777 TEST=trybots Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119139

Patch Set 1 #

Patch Set 2 : add missing files #

Patch Set 3 : simplify interface between MSManager and MSDevieSettings #

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : code review #

Total comments: 11

Patch Set 6 : code review #

Patch Set 7 : rebase #

Patch Set 8 : fix clang #

Patch Set 9 : update unittest #

Total comments: 6

Patch Set 10 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -79 lines) Patch
M content/browser/renderer_host/media/media_stream_device_settings.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_device_settings.cc View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 3 4 5 6 3 chunks +103 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 6 4 chunks +34 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 8 9 7 chunks +161 lines, -50 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_requester.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_settings_requester.h View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M content/common/media/media_stream_messages.h View 1 2 3 4 5 6 2 chunks +36 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.h View 1 2 3 4 5 6 3 chunks +27 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 2 3 4 5 6 3 chunks +113 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_eventhandler.h View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +111 lines, -5 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl_stub.cc View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wjia(left Chromium)
The patch is ready for review. The design doc (sent in another email thread) has ...
9 years, 1 month ago (2011-11-23 23:36:55 UTC) #1
mflodman_chromium_OOO
First look with a few comments, I'll dig deeper tomorrow. http://codereview.chromium.org/8480028/diff/17001/content/browser/renderer_host/media/media_stream_device_settings.cc File content/browser/renderer_host/media/media_stream_device_settings.cc (right): http://codereview.chromium.org/8480028/diff/17001/content/browser/renderer_host/media/media_stream_device_settings.cc#newcode68 ...
9 years ago (2011-11-29 02:30:56 UTC) #2
wjia(left Chromium)
Thanks, Magnus! http://codereview.chromium.org/8480028/diff/17001/content/browser/renderer_host/media/media_stream_device_settings.cc File content/browser/renderer_host/media/media_stream_device_settings.cc (right): http://codereview.chromium.org/8480028/diff/17001/content/browser/renderer_host/media/media_stream_device_settings.cc#newcode68 content/browser/renderer_host/media/media_stream_device_settings.cc:68: security_origin, On 2011/11/29 02:30:56, mflodman wrote: > ...
9 years ago (2011-11-30 00:14:22 UTC) #3
mflodman_chromium_OOO
Looks good, mainly some style nits. I didn't look at the media_stream_impl.* at this point ...
9 years ago (2011-12-02 18:44:02 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/8480028/diff/18019/content/browser/renderer_host/media/media_stream_manager.h File content/browser/renderer_host/media/media_stream_manager.h (right): http://codereview.chromium.org/8480028/diff/18019/content/browser/renderer_host/media/media_stream_manager.h#newcode77 content/browser/renderer_host/media/media_stream_manager.h:77: void EnumerateDevices(MediaStreamRequester* requester, I think I understand why GenerateStream() ...
9 years ago (2011-12-06 19:25:04 UTC) #5
wjia(left Chromium)
resume working on this patch. http://codereview.chromium.org/8480028/diff/18019/content/browser/renderer_host/media/media_stream_dispatcher_host.h File content/browser/renderer_host/media/media_stream_dispatcher_host.h (right): http://codereview.chromium.org/8480028/diff/18019/content/browser/renderer_host/media/media_stream_dispatcher_host.h#newcode40 content/browser/renderer_host/media/media_stream_dispatcher_host.h:40: On 2011/12/02 18:44:02, mflodman ...
8 years, 11 months ago (2012-01-24 00:59:46 UTC) #6
scherkus (not reviewing)
LGTM w/ some nits Also have a question about security origin but it's not a ...
8 years, 11 months ago (2012-01-25 03:19:42 UTC) #7
wjia(left Chromium)
Thanks, Andrew! http://codereview.chromium.org/8480028/diff/39031/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/8480028/diff/39031/content/browser/renderer_host/media/media_stream_manager.cc#newcode341 content/browser/renderer_host/media/media_stream_manager.cc:341: if (request->type == DeviceRequest::kOpenDevice) { On 2012/01/25 ...
8 years, 11 months ago (2012-01-25 22:50:43 UTC) #8
wjia(left Chromium)
+piman@ for owner stamp content/renderer.
8 years, 11 months ago (2012-01-25 22:52:13 UTC) #9
piman
8 years, 11 months ago (2012-01-25 23:01:09 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698