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

Issue 10383151: Refactor MediaStreamImpl and PeerConnection glue implementation after WebKit changes. (Closed)

Created:
8 years, 7 months ago by perkj_chrome
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Refactor MediaStreamImpl and PeerConnection glue implementation after WebKit changes. With this cl a WebKitMediaStreamDescriptor holds a scoped_refptr to the native implementation of MediaStreams. This simplifies the glue code and allows us to hook up events from MediaStreamCenter to the correct native MediaStream. BUG= TEST= unit tests and https://apprtc.appspot.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137110

Patch Set 1 #

Total comments: 10

Patch Set 2 : Adding forgotten file. #

Total comments: 22

Patch Set 3 : Fix code review comment. Remove unused file mock_media_stream_impl. #

Patch Set 4 : Fix clang build error and style issues. #

Patch Set 5 : Fix another clang build error. #

Total comments: 6

Patch Set 6 : Fix Tommy W's comments #

Total comments: 8

Patch Set 7 : Code review comments. #

Patch Set 8 : Rebase and added NON_EXPORTED_BASE to the base of MediaStreamExtradata. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -707 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_center.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_center.cc View 1 2 3 4 5 2 chunks +92 lines, -2 lines 0 comments Download
A content/renderer/media/media_stream_extra_data.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 6 chunks +26 lines, -33 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 13 chunks +86 lines, -142 lines 0 comments Download
M content/renderer/media/media_stream_impl_unittest.cc View 1 2 4 chunks +58 lines, -131 lines 0 comments Download
D content/renderer/media/mock_media_stream_impl.h View 1 2 1 chunk +0 lines, -55 lines 0 comments Download
D content/renderer/media/mock_media_stream_impl.cc View 1 2 1 chunk +0 lines, -75 lines 0 comments Download
M content/renderer/media/peer_connection_handler.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/renderer/media/peer_connection_handler.cc View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M content/renderer/media/peer_connection_handler_base.h View 1 2 4 chunks +0 lines, -24 lines 0 comments Download
M content/renderer/media/peer_connection_handler_base.cc View 1 2 3 4 chunks +22 lines, -58 lines 0 comments Download
M content/renderer/media/peer_connection_handler_jsep.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/peer_connection_handler_jsep.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/media/peer_connection_handler_jsep_unittest.cc View 8 chunks +45 lines, -72 lines 0 comments Download
M content/renderer/media/peer_connection_handler_unittest.cc View 1 2 3 chunks +136 lines, -93 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
perkj_chrome
Hi, Can you please help me review this refactoring of MediaStreams? Thanks Per http://codereview.chromium.org/10383151/diff/1/content/renderer/media/media_stream_impl.cc File ...
8 years, 7 months ago (2012-05-13 13:39:18 UTC) #1
tommi (sloooow) - chröme
http://codereview.chromium.org/10383151/diff/5002/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10383151/diff/5002/content/renderer/media/media_stream_center.cc#newcode40 content/renderer/media/media_stream_center.cc:40: static_cast<MediaStreamExtraData*>(stream.extraData()); indent http://codereview.chromium.org/10383151/diff/5002/content/renderer/media/media_stream_center.cc#newcode43 content/renderer/media/media_stream_center.cc:43: if (extra_data && extra_data->local_stream()) empty ...
8 years, 7 months ago (2012-05-13 20:08:45 UTC) #2
perkj_chrome
Thanks, and sorry for all style errors. Can you please take another look? /Per https://chromiumcodereview.appspot.com/10383151/diff/1/content/renderer/media/media_stream_impl.cc ...
8 years, 7 months ago (2012-05-14 11:50:24 UTC) #3
Tommy Widenflycht
Very nice patch! Some small comments to fix. http://codereview.chromium.org/10383151/diff/13018/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10383151/diff/13018/content/renderer/media/media_stream_center.cc#newcode40 content/renderer/media/media_stream_center.cc:40: static_cast<MediaStreamExtraData*>(stream.extraData()); ...
8 years, 7 months ago (2012-05-14 12:15:15 UTC) #4
perkj_chrome
Thanks, fixed. http://codereview.chromium.org/10383151/diff/13018/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10383151/diff/13018/content/renderer/media/media_stream_center.cc#newcode40 content/renderer/media/media_stream_center.cc:40: static_cast<MediaStreamExtraData*>(stream.extraData()); On 2012/05/14 12:15:16, tommy wrote: > ...
8 years, 7 months ago (2012-05-14 12:55:38 UTC) #5
Tommy Widenflycht
lgtm
8 years, 7 months ago (2012-05-14 12:57:47 UTC) #6
tommi (sloooow) - chröme
lgtm http://codereview.chromium.org/10383151/diff/6016/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10383151/diff/6016/content/renderer/media/media_stream_center.cc#newcode40 content/renderer/media/media_stream_center.cc:40: static_cast<MediaStreamExtraData*>(stream.extraData()); unless extraData returns a type that is ...
8 years, 7 months ago (2012-05-14 14:33:52 UTC) #7
Tommy Widenflycht
FYI reinterpret_cast is used for different kinds of types, e.g. casing from an int to ...
8 years, 7 months ago (2012-05-14 14:37:30 UTC) #8
tommi (sloooow) - chröme
On Mon, May 14, 2012 at 4:37 PM, <tommyw@chromium.org> wrote: > FYI reinterpret_cast is used ...
8 years, 7 months ago (2012-05-14 14:48:31 UTC) #9
Tommy Widenflycht
MediaStreamExtraData inherits from ExtraData
8 years, 7 months ago (2012-05-14 14:56:08 UTC) #10
tommi (sloooow) - chröme
ah, thanks. that answers my question :) On Mon, May 14, 2012 at 4:56 PM, ...
8 years, 7 months ago (2012-05-14 14:58:02 UTC) #11
perkj_chrome
Answered comments. http://codereview.chromium.org/10383151/diff/6016/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10383151/diff/6016/content/renderer/media/media_stream_center.cc#newcode40 content/renderer/media/media_stream_center.cc:40: static_cast<MediaStreamExtraData*>(stream.extraData()); On 2012/05/14 14:33:52, tommi wrote: > ...
8 years, 7 months ago (2012-05-14 15:14:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10383151/2022
8 years, 7 months ago (2012-05-14 15:19:37 UTC) #13
commit-bot: I haz the power
Presubmit check for 10383151-2022 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-14 15:19:59 UTC) #14
perkj_chrome
scherkus, do you mind looking at the gypi file change? Otherwise I am not able ...
8 years, 7 months ago (2012-05-14 15:56:58 UTC) #15
scherkus (not reviewing)
I don't think I'm an OWNER of src/content/ !
8 years, 7 months ago (2012-05-14 16:32:05 UTC) #16
perkj_chrome
jam, can you help me with content_unittests.gypi? Regards Per
8 years, 7 months ago (2012-05-14 19:28:22 UTC) #17
jam
lgtm
8 years, 7 months ago (2012-05-15 00:00:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10383151/2022
8 years, 7 months ago (2012-05-15 00:04:36 UTC) #19
commit-bot: I haz the power
Try job failure for 10383151-2022 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-15 01:09:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10383151/4009
8 years, 7 months ago (2012-05-15 07:09:55 UTC) #21
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 7 months ago (2012-05-15 08:13:01 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10383151/4009
8 years, 7 months ago (2012-05-15 10:59:44 UTC) #23
commit-bot: I haz the power
8 years, 7 months ago (2012-05-15 13:03:02 UTC) #24
Change committed as 137110

Powered by Google App Engine
This is Rietveld 408576698