Chromium Code Reviews

Issue 1350523003: TransportController refactoring. (Closed)

Created:
5 years, 3 months ago by Taylor Brandstetter
Modified:
5 years, 3 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

TransportController refactoring. Getting rid of TransportProxy, and in its place adding a TransportController class which will facilitate access to and manage the lifetimes of Transports. These Transports will now be accessed solely from the worker thread, simplifying their implementation. This refactoring also pulls Transport-related code out of BaseSession. Which means that BaseChannels will now rely on the TransportController interface to create channels, rather than BaseSession. Committed: https://crrev.com/47ee2f3b9f33e8938948c482c921d4e13a3acd83 Cr-Commit-Position: refs/heads/master@{#10022}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Adding "MaybeStartGathering", so PeerConnection can explicitly control timing of gathering. #

Total comments: 3

Patch Set 3 : Getting rid of need_to_gather_candidates_ #

Patch Set 4 : Adding comment #

Patch Set 5 : Merging with master (for CL that removes transport readable state) #

Patch Set 6 : Fixing Mac test. #

Unified diffs Side-by-side diffs Stats (+3383 lines, -3732 lines)
M talk/app/webrtc/objctests/RTCPeerConnectionSyncObserver.m View 2 chunks +8 lines, -2 lines 0 comments
M talk/app/webrtc/objctests/RTCPeerConnectionTest.mm View 1 chunk +4 lines, -1 line 0 comments
M talk/app/webrtc/peerconnection.cc View 2 chunks +9 lines, -0 lines 0 comments
M talk/app/webrtc/statscollector.cc View 3 chunks +5 lines, -12 lines 0 comments
M talk/app/webrtc/statscollector_unittest.cc View 21 chunks +99 lines, -73 lines 0 comments
M talk/app/webrtc/webrtcsession.h View 9 chunks +34 lines, -24 lines 0 comments
M talk/app/webrtc/webrtcsession.cc View 34 chunks +270 lines, -191 lines 0 comments
M talk/app/webrtc/webrtcsession_unittest.cc View 36 chunks +206 lines, -107 lines 0 comments
M talk/app/webrtc/webrtcsessiondescriptionfactory.h View 1 chunk +6 lines, -7 lines 0 comments
M talk/app/webrtc/webrtcsessiondescriptionfactory.cc View 3 chunks +12 lines, -8 lines 0 comments
M talk/media/webrtc/webrtcvoiceengine_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M talk/session/media/channel.h View 12 chunks +41 lines, -28 lines 0 comments
M talk/session/media/channel.cc View 19 chunks +135 lines, -79 lines 0 comments
M talk/session/media/channel_unittest.cc View 36 chunks +105 lines, -60 lines 0 comments
M talk/session/media/channelmanager.h View 3 chunks +12 lines, -11 lines 0 comments
M talk/session/media/channelmanager.cc View 6 chunks +25 lines, -32 lines 0 comments
M talk/session/media/channelmanager_unittest.cc View 8 chunks +42 lines, -31 lines 0 comments
M webrtc/base/fakenetwork.h View 4 chunks +13 lines, -20 lines 0 comments
M webrtc/p2p/base/dtlstransport.h View 7 chunks +21 lines, -30 lines 0 comments
M webrtc/p2p/base/dtlstransportchannel.h View 8 chunks +25 lines, -28 lines 0 comments
M webrtc/p2p/base/dtlstransportchannel.cc View 4 chunks +14 lines, -21 lines 0 comments
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 14 chunks +44 lines, -50 lines 0 comments
D webrtc/p2p/base/fakesession.h View 1 chunk +0 lines, -506 lines 0 comments
A + webrtc/p2p/base/faketransportcontroller.h View 15 chunks +213 lines, -182 lines 0 comments
M webrtc/p2p/base/p2ptransport.h View 1 chunk +2 lines, -4 lines 0 comments
M webrtc/p2p/base/p2ptransport.cc View 1 chunk +3 lines, -9 lines 0 comments
M webrtc/p2p/base/p2ptransportchannel.h View 9 chunks +21 lines, -24 lines 0 comments
M webrtc/p2p/base/p2ptransportchannel.cc View 16 chunks +58 lines, -70 lines 0 comments
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 33 chunks +62 lines, -71 lines 0 comments
M webrtc/p2p/base/portallocator.h View 3 chunks +11 lines, -7 lines 0 comments
M webrtc/p2p/base/portallocator.cc View 2 chunks +5 lines, -2 lines 0 comments
M webrtc/p2p/base/session.h View 8 chunks +15 lines, -284 lines 0 comments
M webrtc/p2p/base/session.cc View 9 chunks +42 lines, -599 lines 0 comments
D webrtc/p2p/base/session_unittest.cc View 1 chunk +0 lines, -100 lines 0 comments
M webrtc/p2p/base/transport.h View 15 chunks +99 lines, -147 lines 0 comments
M webrtc/p2p/base/transport.cc View 17 chunks +239 lines, -493 lines 0 comments
M webrtc/p2p/base/transport_unittest.cc View 5 chunks +4 lines, -21 lines 0 comments
M webrtc/p2p/base/transportchannel.h View 3 chunks +10 lines, -6 lines 0 comments
M webrtc/p2p/base/transportchannel.cc View 1 chunk +1 line, -1 line 0 comments
M webrtc/p2p/base/transportchannelimpl.h View 4 chunks +13 lines, -13 lines 0 comments
D webrtc/p2p/base/transportchannelproxy.h View 1 chunk +0 lines, -96 lines 0 comments
D webrtc/p2p/base/transportchannelproxy.cc View 1 chunk +0 lines, -276 lines 0 comments
A webrtc/p2p/base/transportcontroller.h View 1 chunk +196 lines, -0 lines 0 comments
A webrtc/p2p/base/transportcontroller.cc View 1 chunk +575 lines, -0 lines 0 comments
A webrtc/p2p/base/transportcontroller_unittest.cc View 1 chunk +679 lines, -0 lines 0 comments
M webrtc/p2p/base/transportdescriptionfactory.cc View 1 chunk +0 lines, -1 line 0 comments
M webrtc/p2p/p2p.gyp View 1 chunk +2 lines, -2 lines 0 comments
M webrtc/p2p/p2p_tests.gypi View 2 chunks +2 lines, -2 lines 0 comments

Messages

Total messages: 19 (7 generated)
Taylor Brandstetter
https://codereview.webrtc.org/1350523003/diff/1/webrtc/p2p/base/transport.cc File webrtc/p2p/base/transport.cc (right): https://codereview.webrtc.org/1350523003/diff/1/webrtc/p2p/base/transport.cc#newcode507 webrtc/p2p/base/transport.cc:507: } I got rid of this because it was ...
5 years, 3 months ago (2015-09-19 00:00:26 UTC) #2
pthatcher1
https://codereview.webrtc.org/1350523003/diff/20001/webrtc/p2p/base/faketransportcontroller.h File webrtc/p2p/base/faketransportcontroller.h (right): https://codereview.webrtc.org/1350523003/diff/20001/webrtc/p2p/base/faketransportcontroller.h#newcode527 webrtc/p2p/base/faketransportcontroller.h:527: transport->MaybeStartGathering(); Do we want the FakeTransportController to auto-gather, but ...
5 years, 3 months ago (2015-09-19 00:08:05 UTC) #3
pthatcher1
lgtm
5 years, 3 months ago (2015-09-19 00:56:20 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/1350523003/diff/20001/webrtc/p2p/base/faketransportcontroller.h File webrtc/p2p/base/faketransportcontroller.h (right): https://codereview.webrtc.org/1350523003/diff/20001/webrtc/p2p/base/faketransportcontroller.h#newcode527 webrtc/p2p/base/faketransportcontroller.h:527: transport->MaybeStartGathering(); On 2015/09/19 00:08:05, pthatcher1 wrote: > Do we ...
5 years, 3 months ago (2015-09-19 00:59:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1350523003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1350523003/100001
5 years, 3 months ago (2015-09-22 18:59:18 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_drmemory_light on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_drmemory_light/builds/6710)
5 years, 3 months ago (2015-09-22 19:40:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1350523003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1350523003/100001
5 years, 3 months ago (2015-09-22 19:45:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
5 years, 3 months ago (2015-09-22 19:53:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1350523003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1350523003/100001
5 years, 3 months ago (2015-09-22 21:48:32 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-22 22:08:29 UTC) #17
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/47ee2f3b9f33e8938948c482c921d4e13a3acd83 Cr-Commit-Position: refs/heads/master@{#10022}
5 years, 3 months ago (2015-09-22 22:08:47 UTC) #18
torbjorng (webrtc)
5 years, 3 months ago (2015-09-23 09:16:28 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.webrtc.org/1358413003/ by torbjorng@webrtc.org.

The reason for reverting is: This CL causes problems with the WebRTC-in-Chromium
FYI bots. Presumably it needs to be done in several steps, where removed files
are emptied instead of removed in the first step..

Powered by Google App Engine