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

Issue 17846002: Refactor the VideoCaptureDevice::Name struct. (Closed)

Created:
7 years, 6 months ago by tommi (sloooow) - chröme
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Refactor the VideoCaptureDevice::Name struct. The main purpose of this change is to allow for future changes where platform specific properties can be stored with a device name. An example of this is when we enumerate capture devices from more than one API (DirectShow vs Media Foundation on Windows) since we have to use different APIs to get access to different capture devices. Additionally: * Change Name from being a struct to a class. * Only allow read-only access to the properties after construction. * Change the "Names" typedef to a class to make looking a name up by device ID easier. I'm make it harder to construct a 'Name' without going through the enumeration since the enumeration should be used to get the proper name, ID and other potential properties to go with them. This change is related to another one that mcasas is working on: https://codereview.chromium.org/17402002/ (I'm TBR-ing fischman although he has already approved this CL. There appears to be a problem with Rietveld) BUG=144465 TBR=fischman Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209662

Patch Set 1 #

Patch Set 2 : Fix MEDIA_SCREEN_VIDEO_CAPTURE handling #

Patch Set 3 : Fix TabCaptureApiTest tests. #

Total comments: 4

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -111 lines) Patch
M content/browser/renderer_host/media/screen_capture_device.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 3 6 chunks +44 lines, -38 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M media/video/capture/android/video_capture_device_android.cc View 2 chunks +7 lines, -8 lines 0 comments Download
M media/video/capture/fake_video_capture_device.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M media/video/capture/linux/video_capture_device_linux.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M media/video/capture/mac/video_capture_device_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_mac.mm View 3 chunks +14 lines, -18 lines 0 comments Download
M media/video/capture/video_capture_device.h View 1 2 3 4 1 chunk +41 lines, -4 lines 0 comments Download
A media/video/capture/video_capture_device.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M media/video/capture/win/video_capture_device_mf_win.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M media/video/capture/win/video_capture_device_win.cc View 5 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tommi (sloooow) - chröme
7 years, 6 months ago (2013-06-26 09:50:19 UTC) #1
tommi (sloooow) - chröme
Fix MEDIA_SCREEN_VIDEO_CAPTURE handling
7 years, 6 months ago (2013-06-26 13:53:05 UTC) #2
tommi (sloooow) - chröme
Fix TabCaptureApiTest tests.
7 years, 6 months ago (2013-06-26 14:20:15 UTC) #3
wjia(left Chromium)
https://codereview.chromium.org/17846002/diff/24001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/17846002/diff/24001/content/browser/renderer_host/media/video_capture_manager.cc#newcode183 content/browser/renderer_host/media/video_capture_manager.cc:183: } What's the reason to add this logic (of ...
7 years, 6 months ago (2013-06-26 18:16:44 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/17846002/diff/24001/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): https://codereview.chromium.org/17846002/diff/24001/content/browser/renderer_host/media/video_capture_manager.cc#newcode183 content/browser/renderer_host/media/video_capture_manager.cc:183: } On 2013/06/26 18:16:44, wjia wrote: > What's the ...
7 years, 5 months ago (2013-06-27 14:46:02 UTC) #5
tommi (sloooow) - chröme
Address comments
7 years, 5 months ago (2013-06-27 14:46:16 UTC) #6
mcasas
LGTM for what's worth; my comments are just expressions of happiness. Btw it would be ...
7 years, 5 months ago (2013-06-28 07:35:29 UTC) #7
wjia(left Chromium)
> https://codereview.chromium.org/17846002/diff/24001/media/video/capture/video_capture_device.h > File media/video/capture/video_capture_device.h (right): > > https://codereview.chromium.org/17846002/diff/24001/media/video/capture/video_capture_device.h#newcode64 > media/video/capture/video_capture_device.h:64: Name* FindById(const std::string& > ...
7 years, 5 months ago (2013-06-29 01:44:22 UTC) #8
tommi (sloooow) - chröme
Address comments
7 years, 5 months ago (2013-07-01 13:32:09 UTC) #9
tommi (sloooow) - chröme
https://codereview.chromium.org/17846002/diff/24001/media/video/capture/video_capture_device.h File media/video/capture/video_capture_device.h (right): https://codereview.chromium.org/17846002/diff/24001/media/video/capture/video_capture_device.h#newcode64 media/video/capture/video_capture_device.h:64: Name* FindById(const std::string& id) { On 2013/06/26 18:16:44, wjia ...
7 years, 5 months ago (2013-07-01 13:32:30 UTC) #10
wjia(left Chromium)
lgtm
7 years, 5 months ago (2013-07-01 14:26:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/17846002/66001
7 years, 5 months ago (2013-07-01 14:35:38 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13233
7 years, 5 months ago (2013-07-01 14:50:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/17846002/66001
7 years, 5 months ago (2013-07-01 16:10:22 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13251
7 years, 5 months ago (2013-07-01 16:21:25 UTC) #15
Ami GONE FROM CHROMIUM
OWNERS-stamp for media.gyp
7 years, 5 months ago (2013-07-01 16:52:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/17846002/66001
7 years, 5 months ago (2013-07-02 07:57:23 UTC) #17
tommi (sloooow) - chröme
On 2013/07/01 16:52:22, Ami Fischman wrote: > OWNERS-stamp for media.gyp Thanks!
7 years, 5 months ago (2013-07-02 07:57:28 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13402
7 years, 5 months ago (2013-07-02 08:09:17 UTC) #19
tommi (sloooow) - chröme
The presubmit step is still failing for media.gyp even though fischman@ is clearly in the ...
7 years, 5 months ago (2013-07-02 08:31:27 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/17846002/66001
7 years, 5 months ago (2013-07-02 08:40:06 UTC) #21
commit-bot: I haz the power
Change committed as 209662
7 years, 5 months ago (2013-07-02 10:40:45 UTC) #22
Ami GONE FROM CHROMIUM
lol apparently I forgot to say LGTM in my stamp email. Sorry. On Jul 2, ...
7 years, 5 months ago (2013-07-02 14:20:07 UTC) #23
tommi (sloooow) - chröme
7 years, 5 months ago (2013-07-02 14:26:46 UTC) #24
hah, I looked over it and couldn't figure out what was wrong. doh!


On Tue, Jul 2, 2013 at 4:20 PM, Ami Fischman <fischman@chromium.org> wrote:

> lol apparently I forgot to say LGTM in my stamp email.  Sorry.
> On Jul 2, 2013 1:31 AM, "Tommi" <tommi@chromium.org> wrote:
>
>> The presubmit step is still failing for media.gyp even though fischman@is
clearly in the owners file.  For some reason Rietveld isn't returning
>> Ami's user name when the presubmit script checks the list of reviewers.
>> I'll ping Maruel.
>>
>>
>> On Tue, Jul 2, 2013 at 10:09 AM, <commit-bot@chromium.org> wrote:
>>
>>> Retried try job too often on chromium_presubmit for step(s) presubmit
>>> http://build.chromium.org/p/**tryserver.chromium/**
>>>
buildstatus?builder=chromium_**presubmit&number=13402<http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=13402>
>>>
>>>
https://chromiumcodereview.**appspot.com/17846002/<https://chromiumcodereview...
>>>
>>
>>

Powered by Google App Engine
This is Rietveld 408576698