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

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed)

Created:
9 years, 2 months ago by Henrik Grunell
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, dpranke+watch-content_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), Niklas Enbom
Base URL:
http://git.chromium.org/chromium/chromium.git@trunk
Visibility:
Public.

Description

Adding support for MediaStream and PeerConnection functionality. BUG= TEST=content_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117430

Patch Set 1 #

Patch Set 2 : Changed ID to object in WebKit interface. #

Total comments: 18

Patch Set 3 : Code review, adding dependency factory, adding unit test, misc updates #

Total comments: 22

Patch Set 4 : Code review, change to base::Bind, move render view files to separate CL #

Patch Set 5 : Adding render view files again, can't split CL #

Total comments: 79

Patch Set 6 : Code review, adding changed gyp files. It also includes all changes in patch 4 which didn't get in. #

Total comments: 2

Patch Set 7 : Changes for new WebKit interface. New PeerConnectionHandler class broken out from MediaStreamImpl. #

Total comments: 46

Patch Set 8 : Code revies fixes. #

Total comments: 23

Patch Set 9 : Code review fixes plus implementation of WebKit::WebUserMediaClient. #

Total comments: 4

Patch Set 10 : Code review, updates for WebKit interface changes, misc updates #

Patch Set 11 : Minor fixes. #

Total comments: 28

Patch Set 12 : Code review fixes. #

Total comments: 30

Patch Set 13 : Code review fixes. #

Patch Set 14 : Patch for commit. #

Patch Set 15 : Changed type of port allocator and moved ownership of it, fixed mem leaks in unit tests. #

Total comments: 12

Patch Set 16 : Code review fixes. #

Total comments: 9

Patch Set 17 : Code review fixes, exporting classes, one bug fix. #

Patch Set 18 : Merge #

Patch Set 19 : Updated license text to 2012. #

Patch Set 20 : Fixed export warning on Win. #

Patch Set 21 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1875 lines, -48 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +14 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +78 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +72 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +10 lines, -9 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +144 lines, -10 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +333 lines, -18 lines 0 comments Download
A content/renderer/media/media_stream_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +45 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_dependency_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +39 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +45 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +49 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +50 lines, -0 lines 0 comments Download
A content/renderer/media/mock_media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +60 lines, -0 lines 0 comments Download
A content/renderer/media/mock_peer_connection_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +62 lines, -0 lines 0 comments Download
A content/renderer/media/mock_peer_connection_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +91 lines, -0 lines 0 comments Download
A content/renderer/media/mock_web_peer_connection_handler_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +42 lines, -0 lines 0 comments Download
A content/renderer/media/mock_web_peer_connection_handler_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +38 lines, -0 lines 0 comments Download
A content/renderer/media/peer_connection_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +160 lines, -0 lines 0 comments Download
A content/renderer/media/peer_connection_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +274 lines, -0 lines 0 comments Download
A content/renderer/media/peer_connection_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +124 lines, -0 lines 0 comments Download
M content/renderer/p2p/socket_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +17 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 9 chunks +48 lines, -7 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 44 (0 generated)
Henrik Grunell
This obsoletes http://codereview.chromium.org/7990004/ See that issue for comments on the first round of review.
9 years, 2 months ago (2011-09-29 13:57:10 UTC) #1
scherkus (not reviewing)
could you link to any pending webkit patches? might make it a bit easier to ...
9 years, 2 months ago (2011-09-29 17:43:39 UTC) #2
Henrik Grunell
On 2011/09/29 17:43:39, scherkus wrote: > could you link to any pending webkit patches? might ...
9 years, 2 months ago (2011-10-03 11:53:03 UTC) #3
tommi (sloooow) - chröme
http://codereview.chromium.org/8060055/diff/4001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): http://codereview.chromium.org/8060055/diff/4001/content/renderer/media/media_stream_impl.cc#newcode61 content/renderer/media/media_stream_impl.cc:61: // chrome_worker_thread_.Start(); remove or unintentional? http://codereview.chromium.org/8060055/diff/4001/content/renderer/media/media_stream_impl.cc#newcode84 content/renderer/media/media_stream_impl.cc:84: no empty ...
9 years, 2 months ago (2011-10-03 12:14:14 UTC) #4
Henrik Grunell
On 2011/10/03 11:53:03, Henrik Grunell wrote: > On 2011/09/29 17:43:39, scherkus wrote: > > could ...
9 years, 2 months ago (2011-10-07 08:15:35 UTC) #5
Henrik Grunell
Fixes for code review are done plus I created a dependency factory to be able ...
9 years, 2 months ago (2011-10-18 19:04:05 UTC) #6
scherkus (not reviewing)
re: the dependency factory is it not possible to create the dependencies and inject them ...
9 years, 2 months ago (2011-10-19 18:28:27 UTC) #7
Henrik Grunell
On 2011/10/19 18:28:27, scherkus wrote: > re: the dependency factory > > is it not ...
9 years, 2 months ago (2011-10-20 05:58:53 UTC) #8
Henrik Grunell
On 2011/10/20 05:58:53, Henrik Grunell wrote: > Yes, this would absolutely be possible. I had ...
9 years, 2 months ago (2011-10-20 06:03:49 UTC) #9
tommi (sloooow) - chröme
http://codereview.chromium.org/8060055/diff/15001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): http://codereview.chromium.org/8060055/diff/15001/content/renderer/media/media_stream_dependency_factory.cc#newcode28 content/renderer/media/media_stream_dependency_factory.cc:28: pc_factory_.reset(new webrtc::PeerConnectionFactory( what if it is already valid? Would ...
9 years, 2 months ago (2011-10-25 09:58:34 UTC) #10
Henrik Grunell
http://codereview.chromium.org/8060055/diff/15001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): http://codereview.chromium.org/8060055/diff/15001/content/renderer/media/media_stream_dependency_factory.cc#newcode28 content/renderer/media/media_stream_dependency_factory.cc:28: pc_factory_.reset(new webrtc::PeerConnectionFactory( On 2011/10/25 09:58:34, tommi wrote: > what ...
9 years, 2 months ago (2011-10-25 12:14:32 UTC) #11
scherkus (not reviewing)
mostly sanity checking and nits http://codereview.chromium.org/8060055/diff/25002/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): http://codereview.chromium.org/8060055/diff/25002/content/renderer/media/media_stream_dependency_factory.cc#newcode25 content/renderer/media/media_stream_dependency_factory.cc:25: cricket::PortAllocator* port_allocator, these should ...
9 years, 1 month ago (2011-10-31 01:59:13 UTC) #12
Henrik Grunell
One or two longer comments, rest has been fixed. http://codereview.chromium.org/8060055/diff/25002/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): http://codereview.chromium.org/8060055/diff/25002/content/renderer/media/media_stream_dependency_factory.cc#newcode25 content/renderer/media/media_stream_dependency_factory.cc:25: ...
9 years, 1 month ago (2011-10-31 13:17:53 UTC) #13
scherkus (not reviewing)
LGTM w/ few nits are you planning on adding more tests? http://codereview.chromium.org/8060055/diff/25002/content/renderer/media/media_stream_impl.h File content/renderer/media/media_stream_impl.h (right): ...
9 years, 1 month ago (2011-11-01 00:25:50 UTC) #14
Henrik Grunell
http://codereview.chromium.org/8060055/diff/35003/content/renderer/media/mock_media_stream_dispatcher.h File content/renderer/media/mock_media_stream_dispatcher.h (right): http://codereview.chromium.org/8060055/diff/35003/content/renderer/media/mock_media_stream_dispatcher.h#newcode29 content/renderer/media/mock_media_stream_dispatcher.h:29: { On 2011/11/01 00:25:50, scherkus wrote: > { goes ...
9 years, 1 month ago (2011-11-07 14:18:54 UTC) #15
Henrik Grunell
WebKit interface change has now landed, I've refactored for this. A PeerConnectionHandler is added, which ...
9 years, 1 month ago (2011-11-07 14:30:43 UTC) #16
scherkus (not reviewing)
It wasn't clear to me.. did you want tommi and I to look over the ...
9 years, 1 month ago (2011-11-08 06:45:38 UTC) #17
tommi (sloooow) - chröme
sorry for the delay. There seems to be quite a bit of dead code (commented ...
9 years, 1 month ago (2011-11-08 12:27:24 UTC) #18
Henrik Grunell
On 2011/11/08 06:45:38, scherkus wrote: > It wasn't clear to me.. did you want tommi ...
9 years, 1 month ago (2011-11-08 15:06:50 UTC) #19
Henrik Grunell
Code review fixes. The commented out code has been removed. It will return when the ...
9 years, 1 month ago (2011-11-08 22:06:41 UTC) #20
scherkus (not reviewing)
http://codereview.chromium.org/8060055/diff/46004/content/content_renderer.gypi File content/content_renderer.gypi (right): http://codereview.chromium.org/8060055/diff/46004/content/content_renderer.gypi#newcode97 content/content_renderer.gypi:97: 'renderer/media/media_stream_dependency_factory.cc', d comes before i http://codereview.chromium.org/8060055/diff/46004/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): ...
9 years, 1 month ago (2011-11-09 02:29:10 UTC) #21
Henrik Grunell
On 2011/11/08 22:06:41, Henrik Grunell wrote: http://codereview.chromium.org/8060055/diff/42001/content/renderer/renderer_webkitplatformsupport_impl.cc > File content/renderer/renderer_webkitplatformsupport_impl.cc (right): > > http://codereview.chromium.org/8060055/diff/42001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode627 > ...
9 years, 1 month ago (2011-11-09 10:38:05 UTC) #22
tommi (sloooow) - chröme
Thanks for the updates Henrik http://codereview.chromium.org/8060055/diff/46004/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): http://codereview.chromium.org/8060055/diff/46004/content/renderer/media/media_stream_impl.cc#newcode78 content/renderer/media/media_stream_impl.cc:78: delete media_engine_; scoped_ptr? http://codereview.chromium.org/8060055/diff/46004/content/renderer/media/peer_connection_handler.cc ...
9 years, 1 month ago (2011-11-09 10:45:48 UTC) #23
Henrik Grunell
Thanks for your comments. Done fixes for them and added implementation of WebKit interface for ...
9 years, 1 month ago (2011-11-09 20:36:03 UTC) #24
Henrik Grunell
Darin, can you please review the render_view_impl.* files? WebKit patches are still pending, there *might* ...
9 years, 1 month ago (2011-11-17 11:33:04 UTC) #25
Henrik Grunell
On 2011/11/17 11:33:04, Henrik Grunell wrote: > Darin, can you please review the render_view_impl.* files? ...
9 years, 1 month ago (2011-11-17 11:34:18 UTC) #26
darin (slow to review)
http://codereview.chromium.org/8060055/diff/58004/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): http://codereview.chromium.org/8060055/diff/58004/content/renderer/render_view_impl.h#newcode211 content/renderer/render_view_impl.h:211: MediaStreamDispatcher* media_stream_dispatcher() { nit: can you move this down ...
9 years, 1 month ago (2011-11-17 18:04:01 UTC) #27
Henrik Grunell
I've uploaded a new patch with (two) code review fixes, updates for WebKit interface changes ...
9 years, 1 month ago (2011-11-18 16:05:21 UTC) #28
Henrik Grunell
The final WebKit patch https://bugs.webkit.org/show_bug.cgi?id=71678 is expected to land today. I'd like to land this ...
9 years, 1 month ago (2011-11-22 15:44:12 UTC) #29
tommi (sloooow) - chröme
I'm assuming most of the recent uploads have been just rebasing and this cl hasn't ...
9 years, 1 month ago (2011-11-22 16:11:38 UTC) #30
Henrik Grunell
Code review fixes. Andrew, can you please check Tommi's and my comments about the request ...
9 years, 1 month ago (2011-11-23 21:50:49 UTC) #31
darin (slow to review)
http://codereview.chromium.org/8060055/diff/82001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): http://codereview.chromium.org/8060055/diff/82001/content/renderer/render_view_impl.cc#newcode2897 content/renderer/render_view_impl.cc:2897: void RenderViewImpl::CreateMediaStreamImpl() { In chromium, we often use the ...
9 years, 1 month ago (2011-11-23 22:26:36 UTC) #32
darin (slow to review)
Other than that naming comment, render_view_impl.{h,cc} and renderer_webkitplatformsupport_impl.{h,cc} changes LGTM.
9 years, 1 month ago (2011-11-23 22:27:41 UTC) #33
scherkus (not reviewing)
nits but LGTM owners-wise, will defer to tommi for reviewing of specific implementation details http://codereview.chromium.org/8060055/diff/82001/content/renderer/media/media_stream_dependency_factory.h ...
9 years, 1 month ago (2011-11-23 22:52:04 UTC) #34
Henrik Grunell
Code review fixes uploaded. I have also verified that the request id handling is safe. ...
9 years, 1 month ago (2011-11-24 11:32:59 UTC) #35
tommi (sloooow) - chröme
lgtm
9 years, 1 month ago (2011-11-24 11:38:38 UTC) #36
Henrik Grunell
I have changed the type of port allocator, this removes a static initializer. The creation ...
9 years ago (2011-12-16 14:31:15 UTC) #37
tommi (sloooow) - chröme
it's a bit hard for me to figure out what changes are yours and what ...
9 years ago (2011-12-16 14:44:42 UTC) #38
tommi (sloooow) - chröme
suggest we check if we can inherit from NonThreadSafe in MediaStreamImpl. Then we can add ...
9 years ago (2011-12-19 10:30:10 UTC) #39
Henrik Grunell
I've done code review fixes. I'll try to better separate the merges from real changes; ...
9 years ago (2011-12-21 11:46:20 UTC) #40
tommi (sloooow) - chröme
Thanks for adding the DCHECKs. LGTM. http://codereview.chromium.org/8060055/diff/110001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): http://codereview.chromium.org/8060055/diff/110001/content/renderer/media/media_stream_impl.cc#newcode75 content/renderer/media/media_stream_impl.cc:75: LOG(ERROR) << "Leaking ...
9 years ago (2011-12-21 12:41:42 UTC) #41
Henrik Grunell
Adding sergeyu as reviewer for content/renderer/p2p/socket_dispatcher.h. Tommi, can you please check the other changed files? ...
8 years, 11 months ago (2012-01-05 09:23:49 UTC) #42
Sergey Ulanov
content/renderer/p2p/socket_dispatcher.h LGTM
8 years, 11 months ago (2012-01-05 21:17:52 UTC) #43
tommi (sloooow) - chröme
8 years, 11 months ago (2012-01-05 22:24:19 UTC) #44
lgtm

http://codereview.chromium.org/8060055/diff/110001/content/renderer/media/pee...
File content/renderer/media/peer_connection_handler.h (right):

http://codereview.chromium.org/8060055/diff/110001/content/renderer/media/pee...
content/renderer/media/peer_connection_handler.h:96: // class. Calls to it must
be done on
On 2012/01/05 09:23:49, Henrik Grunell wrote:
> On 2011/12/21 12:41:42, tommi wrote:
> > ... Mondays?  ...sacred ground?  what is it? don't leave me hangin! XD
> 
> :-) I wanted to give some tension before Christmas... It should be (drum roll)
> "the render thread". Fixed.

phew!

Powered by Google App Engine
This is Rietveld 408576698