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

Issue 10919122: Move creation of PeerConnection from the RenderView to the RenderThreadImpl. (Closed)

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

Description

Move creation of PeerConnection from the RenderView to the RenderThreadImpl. This is a proposed solution for the problem with using WebFrame* web_frame = WebFrame::frameForCurrentContext() in renderer_webkitplatformsupport_impl.cc https://chromiumcodereview.appspot.com/10703095/diff/13017/content/renderer/renderer_webkitplatformsupport_impl.cc This should be seen as step 1 in refactoring how PeerConnections are created and used. If PeerConnections should be created in the RenderThreadImpl - so should all objects that it is dependent on such as the P2PSocketDispatcher that is currently created and owned by the RenderViewImpl. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156515

Patch Set 1 #

Patch Set 2 : Fixed UMA_HISTOGRAM_ENUMERATION and cleaned up. #

Total comments: 18

Patch Set 3 : Rebased ontop of http://codereview.chromium.org/10917167/ and refactored MediaStreamDependencyFacto… #

Patch Set 4 : Fixed existing unit tests and cleaned up. #

Patch Set 5 : Rebased to latest codec base. #

Total comments: 20

Patch Set 6 : Adding missing files content/renderer/media/webrtc_uma_histograms.h #

Total comments: 2

Patch Set 7 : Fix code review comments found by Tommi. #

Patch Set 8 : #if defined(ENABLE_WEBRTC) in RendererWebKitPlatformSupportImpl::createPeerConnection00Handler to b… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -511 lines) Patch
M content/content_tests.gypi View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_center.h View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_center.cc View 1 2 3 4 5 6 3 chunks +8 lines, -10 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 5 6 3 chunks +72 lines, -28 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 4 chunks +198 lines, -13 lines 0 comments Download
A content/renderer/media/media_stream_dependency_factory_unittest.cc View 1 2 3 4 5 1 chunk +110 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 3 chunks +4 lines, -63 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 9 chunks +7 lines, -242 lines 0 comments Download
M content/renderer/media/media_stream_impl_unittest.cc View 1 2 3 4 4 chunks +8 lines, -98 lines 0 comments Download
A content/renderer/media/media_stream_source_extra_data.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.h View 1 2 3 2 chunks +5 lines, -10 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 3 4 chunks +6 lines, -17 lines 0 comments Download
M content/renderer/media/peer_connection_handler_jsep_unittest.cc View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
A content/renderer/media/webrtc_uma_histograms.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 2 chunks +1 line, -12 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
perkj_chrome
Hi All. It make sence to me to move the creation of PeerConnection from the ...
8 years, 3 months ago (2012-09-06 15:27:25 UTC) #1
piman
I think it's great. Just a couple of nits, and we need to resolve the ...
8 years, 3 months ago (2012-09-06 17:04:45 UTC) #2
darin (slow to review)
I see, so the explicit dependency on RenderView can just be eliminated. That's great! LGTM ...
8 years, 3 months ago (2012-09-06 18:24:59 UTC) #3
tommi (sloooow) - chröme
lgtm as well with all comments addressed.
8 years, 3 months ago (2012-09-07 11:23:51 UTC) #4
perkj_chrome
Tommmi - can you help me review now? P2PSocketDispatcher is landed. http://codereview.chromium.org/10919122/diff/2001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): ...
8 years, 3 months ago (2012-09-12 11:53:14 UTC) #5
tommi (sloooow) - chröme
http://codereview.chromium.org/10919122/diff/12001/content/renderer/media/media_stream_center.cc File content/renderer/media/media_stream_center.cc (right): http://codereview.chromium.org/10919122/diff/12001/content/renderer/media/media_stream_center.cc#newcode87 content/renderer/media/media_stream_center.cc:87: MediaStreamCenter::MediaStreamCenter(WebKit::WebMediaStreamCenterClient*, missing variable name http://codereview.chromium.org/10919122/diff/12001/content/renderer/media/media_stream_center.h File content/renderer/media/media_stream_center.h (right): http://codereview.chromium.org/10919122/diff/12001/content/renderer/media/media_stream_center.h#newcode24 ...
8 years, 3 months ago (2012-09-12 13:10:24 UTC) #6
perkj_chrome
Fixed issues found by Tommi. Antoine - can you take another look? https://chromiumcodereview.appspot.com/10919122/diff/2001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc ...
8 years, 3 months ago (2012-09-12 13:54:38 UTC) #7
tommi (sloooow) - chröme
lgtm
8 years, 3 months ago (2012-09-12 14:13:06 UTC) #8
piman
lgtm
8 years, 3 months ago (2012-09-12 17:09:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10919122/9020
8 years, 3 months ago (2012-09-12 18:17:17 UTC) #10
commit-bot: I haz the power
Try job failure for 10919122-9020 (retry) on win_rel for step "runhooks". It's a second try, ...
8 years, 3 months ago (2012-09-12 18:32:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10919122/9020
8 years, 3 months ago (2012-09-12 20:59:01 UTC) #12
commit-bot: I haz the power
Try job failure for 10919122-9020 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-12 21:35:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10919122/9020
8 years, 3 months ago (2012-09-12 23:32:52 UTC) #14
commit-bot: I haz the power
Try job failure for 10919122-9020 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-13 00:20:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/10919122/9020
8 years, 3 months ago (2012-09-13 02:09:05 UTC) #16
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 02:43:24 UTC) #17
Try job failure for 10919122-9020 (retry) on android for steps "compile, build"
(clobber build).
It's a second try, previously, steps "compile, build" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android&nu...

Powered by Google App Engine
This is Rietveld 408576698