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

Issue 7192007: Adding error signalling from device to VideocaptureManager to relay up to MediaStream and WebKit. (Closed)

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

Description

Adding error signalling from device to VideocaptureManager to relay up to MediaStream and WebKit. Moving struct out of media_stream_provider.h to media_stream_options.h. The struct will later be used in MediaStream IPC and MediaStreamManager. BUG=none TEST=try bots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89852

Patch Set 1 #

Total comments: 71

Patch Set 2 : Review changes based on feedback from jknotten, scherkus and leandrogracia. #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : Struct/enum change in media_stream_options.h. #

Patch Set 5 : Adding the gyp-files. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -140 lines) Patch
M content/browser/renderer_host/media/media_stream_provider.h View 1 2 3 chunks +11 lines, -34 lines 0 comments Download
D content/browser/renderer_host/media/media_stream_provider.cc View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 1 2 5 chunks +22 lines, -21 lines 2 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 1 2 15 chunks +42 lines, -45 lines 7 comments Download
M content/browser/renderer_host/media/video_capture_manager_unittest.cc View 1 2 5 chunks +11 lines, -10 lines 0 comments Download
A content/common/media/media_stream_options.h View 1 2 3 1 chunk +69 lines, -0 lines 2 comments Download
A content/common/media/media_stream_options.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mflodman1
Adding jknotten and perkj as reviewers.
9 years, 6 months ago (2011-06-16 12:23:01 UTC) #1
John Knottenbelt
A few nits and questions :) http://codereview.chromium.org/7192007/diff/1/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (left): http://codereview.chromium.org/7192007/diff/1/content/browser/renderer_host/media/video_capture_manager.cc#oldcode41 content/browser/renderer_host/media/video_capture_manager.cc:41: DCHECK(!listener_); Why is ...
9 years, 6 months ago (2011-06-16 15:20:42 UTC) #2
Leandro Graciá Gil
Here are some comments. I hope I'm not repeating John's. Also, I made a few ...
9 years, 6 months ago (2011-06-16 17:39:53 UTC) #3
scherkus (not reviewing)
driveby! http://codereview.chromium.org/7192007/diff/1/content/browser/renderer_host/media/media_stream_provider.h File content/browser/renderer_host/media/media_stream_provider.h (right): http://codereview.chromium.org/7192007/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode86 content/browser/renderer_host/media/media_stream_provider.h:86: nit: get rid of blank line http://codereview.chromium.org/7192007/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File ...
9 years, 6 months ago (2011-06-17 03:03:51 UTC) #4
mflodman1
Thanks for all the quick comments! And drivebys are very welcome. I'll work on this ...
9 years, 6 months ago (2011-06-17 15:08:27 UTC) #5
mflodman1
Thanks for your feedback! Most of that feedback is addressed. I tried to change media_stream_options.h ...
9 years, 6 months ago (2011-06-20 19:48:03 UTC) #6
scherkus (not reviewing)
nits but LGTM, you'll have to rebase to tip-of-tree as I think there may be ...
9 years, 6 months ago (2011-06-21 00:27:46 UTC) #7
mflodman1
Changes based on Andrew's feedbak and merged with LKGR, r89645. http://codereview.chromium.org/7192007/diff/8002/content/browser/renderer_host/media/video_capture_manager.cc File content/browser/renderer_host/media/video_capture_manager.cc (right): http://codereview.chromium.org/7192007/diff/8002/content/browser/renderer_host/media/video_capture_manager.cc#newcode35 ...
9 years, 6 months ago (2011-06-21 08:49:22 UTC) #8
mflodman1
Changed enum/typedef in media_stream_options.h.
9 years, 6 months ago (2011-06-21 11:28:59 UTC) #9
commit-bot: I haz the power
Change committed as 89852
9 years, 6 months ago (2011-06-21 17:48:25 UTC) #10
Leandro Graciá Gil
Looks like I got late by a few minutes. I'm sorry. I have only a ...
9 years, 6 months ago (2011-06-21 18:00:26 UTC) #11
scherkus (not reviewing)
thanks for the catches leandro! magnus: send out a follow up patch and we'll get ...
9 years, 6 months ago (2011-06-21 18:03:42 UTC) #12
mflodman1
9 years, 6 months ago (2011-06-21 19:23:50 UTC) #13
New patch created containing changes based on review by Leandro:
http://codereview.chromium.org/7217018/

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
File content/browser/renderer_host/media/video_capture_manager.cc (right):

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
content/browser/renderer_host/media/video_capture_manager.cc:260: if (listener_
== NULL) {
On 2011/06/21 18:03:42, scherkus wrote:
> On 2011/06/21 18:00:26, Leandro Graciá Gil wrote:
> > I've tried to find exactly where the style guidelines said that if
> (!listener_)
> > is preferred over this, but I couldn't. I'm sorry if I was wrong on this,
I'm
> > pretty sure some reviewer told me about this when I started working in
Chrome.
> > 
> > Andrew, do you know something about this little detail? It's not really
> > important.
> 
> there's no hard-and-fast rule about it... so it boils down to consistency
> 
> if a lot of the surrounding code prefers w/o == NULL -- then stick with that
> 
> I lean slightly towards (!listener_) since it's more compact

I agree. Done.

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
content/browser/renderer_host/media/video_capture_manager.cc:261: // Listener
has been removed
On 2011/06/21 18:00:26, Leandro Graciá Gil wrote:
> Style says comments should end with a period. Please check many others in the
> patch.

Done.

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
content/browser/renderer_host/media/video_capture_manager.cc:380: }  //
namespace media
On 2011/06/21 18:00:26, Leandro Graciá Gil wrote:
> The namespace is media_stream.

Done.

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
File content/browser/renderer_host/media/video_capture_manager.h (right):

http://codereview.chromium.org/7192007/diff/15011/content/browser/renderer_ho...
content/browser/renderer_host/media/video_capture_manager.h:55: void Stop(const
media::VideoCaptureSessionId capture_session_id,
On 2011/06/21 18:00:26, Leandro Graciá Gil wrote:
> Comparing to Error, I think you're missing a & here.

Done.

http://codereview.chromium.org/7192007/diff/15011/content/common/media/media_...
File content/common/media/media_stream_options.h (right):

http://codereview.chromium.org/7192007/diff/15011/content/common/media/media_...
content/common/media/media_stream_options.h:13: // StreamOptions is a Chromium
representation of WebKits
On 2011/06/21 18:00:26, Leandro Graciá Gil wrote:
> WebKit's

Done.

Powered by Google App Engine
This is Rietveld 408576698