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

Issue 7284037: Adding MediaStreamManager. (Closed)

Created:
9 years, 5 months ago by mflodman1
Modified:
9 years, 5 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, sjl, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Adding MediaStreamManager. MediaStreamManager will get requests to open capture devices, normally from WebKit. MediaStreamManager will ask for user permission and then call the proper device manager to open the user specified device. MediaStreamManager now owns VideoCaptureManager, which introduces changes to VideoCaptureManager and test related to VideoCaptureManager. This patch will be followed by a patch to remove the singleton property. The next MediaStream patch, MediaStreamDispatcherHost, will contain test including MediaStreamManager. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91696

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes based on review by wjia #

Total comments: 26

Patch Set 3 : Changes based on review by leandrogracia #

Patch Set 4 : Changed DeviceRequestList to map and changed random label according to new specification. #

Total comments: 16

Patch Set 5 : Changes based on review by wjia. #

Patch Set 6 : Added DeviceRequest dtor, needed for clang. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -87 lines) Patch
M content/browser/renderer_host/media/media_stream_device_settings.cc View 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 1 chunk +132 lines, -0 lines 2 comments Download
A content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 1 chunk +426 lines, -0 lines 3 comments Download
A content/browser/renderer_host/media/media_stream_requester.h View 1 chunk +39 lines, -0 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_settings_requester.h View 1 2 3 4 5 3 chunks +1 line, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 4 5 4 chunks +6 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 4 5 4 chunks +2 lines, -9 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 4 5 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 2 3 4 5 12 chunks +34 lines, -53 lines 0 comments Download
M content/common/media/media_stream_options.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mflodman1
9 years, 5 months ago (2011-06-30 15:34:20 UTC) #1
wjia(left Chromium)
took a quick look at design. did not look at code style. http://codereview.chromium.org/7284037/diff/1/content/browser/renderer_host/media/media_stream_device_settings.cc File content/browser/renderer_host/media/media_stream_device_settings.cc ...
9 years, 5 months ago (2011-07-01 03:58:33 UTC) #2
mflodman1
Uploaded new patch based on review by wjia. Thanks Wei! http://codereview.chromium.org/7284037/diff/1/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/7284037/diff/1/content/browser/renderer_host/media/media_stream_device_settings.cc#newcode50 ...
9 years, 5 months ago (2011-07-01 09:37:10 UTC) #3
Leandro Graciá Gil
A few things to fix and consider. By the way, I'll be out until next ...
9 years, 5 months ago (2011-07-01 11:31:35 UTC) #4
mflodman1
Uploaded new patch containing changes based on review by leandrogracia. I have not changed DeviceRequestList ...
9 years, 5 months ago (2011-07-01 14:07:22 UTC) #5
mflodman1
Updated DeviceRequestList to map and changes RandomLabel according to WhatWG spec. http://codereview.chromium.org/7284037/diff/7001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): ...
9 years, 5 months ago (2011-07-04 21:43:14 UTC) #6
Leandro Graciá Gil
LGTM.
9 years, 5 months ago (2011-07-05 14:57:25 UTC) #7
wjia(left Chromium)
http://codereview.chromium.org/7284037/diff/5002/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/7284037/diff/5002/content/browser/renderer_host/media/media_stream_manager.cc#newcode44 content/browser/renderer_host/media/media_stream_manager.cc:44: && (options.video_option != StreamOptions::kNoCamera)) { "&&" should be at ...
9 years, 5 months ago (2011-07-06 02:58:42 UTC) #8
mflodman1
Uploaded changes based on review by Wei. Good comments regarding the unusual cases, thanks! http://codereview.chromium.org/7284037/diff/5002/content/browser/renderer_host/media/media_stream_manager.cc ...
9 years, 5 months ago (2011-07-06 11:31:45 UTC) #9
wjia(left Chromium)
lgtm. Since content/content_browser.gypi is touched, you might need content owner's consent.
9 years, 5 months ago (2011-07-06 15:36:25 UTC) #10
commit-bot: I haz the power
Try job failure for 7284037-18001 (retry) on linux_clang for step "compile" (clobber build). It's a ...
9 years, 5 months ago (2011-07-06 19:51:07 UTC) #11
commit-bot: I haz the power
Change committed as 91696
9 years, 5 months ago (2011-07-07 13:05:23 UTC) #12
scherkus (not reviewing)
9 years, 5 months ago (2011-07-08 20:56:11 UTC) #13
few tiny drive-by stuff.. mostly wondering about the singleton and tests

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
File content/browser/renderer_host/media/media_stream_manager.cc (right):

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
content/browser/renderer_host/media/media_stream_manager.cc:21:
base::LazyInstance<MediaStreamManager> g_media_stream_manager(
drive by... can you address this soon?

this is one of those things that is easy to leave around (since it works) but
can be a source of startup/shutdown bugs

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
content/browser/renderer_host/media/media_stream_manager.cc:57: delete
device_settings_;
use scoped_ptr<> in .h

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
content/browser/renderer_host/media/media_stream_manager.cc:58: delete
video_capture_manager_;
use scoped_ptr<> in .h

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
File content/browser/renderer_host/media/media_stream_manager.h (right):

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
content/browser/renderer_host/media/media_stream_manager.h:41: class
MediaStreamManager : public MediaStreamProviderListener,
nit: should be initializer list style

http://codereview.chromium.org/7284037/diff/19014/content/browser/renderer_ho...
content/browser/renderer_host/media/media_stream_manager.h:45: static
MediaStreamManager* Get();
do we have existing tests that test this class or do they need to be written?

Powered by Google App Engine
This is Rietveld 408576698