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

Issue 2517883002: Refactoring that removes P2PTransport and DtlsTransport classes. (Closed)

Created:
4 years, 1 month ago by Taylor Brandstetter
Modified:
4 years ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Relanding: Refactoring that removes P2PTransport and DtlsTransport classes. Their base class, Transport, still exists, but it now has a more specific role: a helper class that applies TransportDescriptions. And is renamed to JsepTransport as a result. TransportController is now the entity primarily responsible for managing TransportChannels. It also starts storing pointers to the DTLS and ICE chanels separately, which will make it easier to remove TransportChannel/TransportChannelImpl in a subsequent CL. BUG=None Committed: https://crrev.com/49f34fdd237914f1ef3af8a28acb2db8bceecda6 Cr-Commit-Position: refs/heads/master@{#15453}

Patch Set 1 #

Patch Set 2 : Adding back folder that was accidentally removed. #

Patch Set 3 : Got all the rest of the unit tests working. #

Patch Set 4 : Leaving comments about what we'd need to do to support QUIC again. #

Total comments: 8

Patch Set 5 : Rename Transport to JsepTransport. #

Total comments: 15

Patch Set 6 : Responding to comments (minor renaming/adding comments) #

Patch Set 7 : Delete line instead of just commenting it out. #

Patch Set 8 : Stop requiring a pair of channels in JsepTransport. #

Patch Set 9 : Fixing typo. #

Patch Set 10 : Adding stub transport.h file for backwards compat. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+877 lines, -2674 lines) Patch
M webrtc/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/p2p/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
D webrtc/p2p/base/dtlstransport.h View 1 chunk +0 lines, -163 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 1 2 3 4 5 6 7 14 chunks +56 lines, -44 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 3 4 5 6 5 chunks +58 lines, -202 lines 0 comments Download
A + webrtc/p2p/base/jseptransport.h View 1 2 3 4 5 6 7 8 9 4 chunks +98 lines, -154 lines 0 comments Download
A + webrtc/p2p/base/jseptransport.cc View 1 2 3 4 5 6 7 8 chunks +192 lines, -225 lines 0 comments Download
A + webrtc/p2p/base/jseptransport_unittest.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -178 lines 0 comments Download
D webrtc/p2p/base/p2ptransport.h View 1 chunk +0 lines, -39 lines 0 comments Download
D webrtc/p2p/base/p2ptransport.cc View 1 chunk +0 lines, -38 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 2 chunks +0 lines, -7 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/portinterface.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -408 lines 0 comments Download
M webrtc/p2p/base/transport.cc View 1 2 3 4 1 chunk +0 lines, -472 lines 0 comments Download
M webrtc/p2p/base/transport_unittest.cc View 1 2 3 4 1 chunk +0 lines, -423 lines 0 comments Download
M webrtc/p2p/base/transportchannel.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/transportcontroller.h View 1 2 3 4 5 6 7 9 chunks +78 lines, -42 lines 0 comments Download
M webrtc/p2p/base/transportcontroller.cc View 1 2 3 4 5 6 7 8 18 chunks +241 lines, -139 lines 0 comments Download
M webrtc/p2p/base/transportcontroller_unittest.cc View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M webrtc/p2p/client/socketmonitor.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/quic/quictransport.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 2 3 4 5 6 7 8 26 chunks +63 lines, -91 lines 0 comments Download
M webrtc/pc/channelmanager_unittest.cc View 1 2 1 chunk +0 lines, -25 lines 0 comments Download
M webrtc/pc/mediasession.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (16 generated)
pthatcher1
https://codereview.webrtc.org/2517883002/diff/60001/webrtc/p2p/base/transport.h File webrtc/p2p/base/transport.h (right): https://codereview.webrtc.org/2517883002/diff/60001/webrtc/p2p/base/transport.h#newcode254 webrtc/p2p/base/transport.h:254: // JSEP. Each transport consists of DTLS and ICE ...
4 years ago (2016-11-30 01:34:36 UTC) #2
Taylor Brandstetter
I agree with most the refactoring you're suggesting, but I'd prefer to do it in ...
4 years ago (2016-11-30 20:31:39 UTC) #3
pthatcher1
I see your point about putting off some of the refactoring. This CL as-is is ...
4 years ago (2016-12-01 23:18:53 UTC) #5
Taylor Brandstetter
On 2016/12/01 23:18:53, pthatcher1 wrote: > I see your point about putting off some of ...
4 years ago (2016-12-02 01:12:36 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/2517883002/diff/80001/webrtc/p2p/base/dtlstransportchannel_unittest.cc File webrtc/p2p/base/dtlstransportchannel_unittest.cc (right): https://codereview.webrtc.org/2517883002/diff/80001/webrtc/p2p/base/dtlstransportchannel_unittest.cc#newcode86 webrtc/p2p/base/dtlstransportchannel_unittest.cc:86: new cricket::JsepTransport("dtls content name", certificate_)); On 2016/12/01 23:18:53, pthatcher1 ...
4 years ago (2016-12-02 01:17:28 UTC) #7
Taylor Brandstetter
Ok, JsepTransport now no longer takes a pair of channels, it just takes the DTLS ...
4 years ago (2016-12-03 21:07:14 UTC) #8
pthatcher1
lgtm https://codereview.webrtc.org/2517883002/diff/80001/webrtc/p2p/base/jseptransport.h File webrtc/p2p/base/jseptransport.h (right): https://codereview.webrtc.org/2517883002/diff/80001/webrtc/p2p/base/jseptransport.h#newcode255 webrtc/p2p/base/jseptransport.h:255: // (and possibly RTCP, if rtcp-mux isn't used). ...
4 years ago (2016-12-05 23:32:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2517883002/130001
4 years ago (2016-12-06 19:41:36 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_rel/builds/20971) linux_tsan2 on master.tryserver.webrtc (JOB_FAILED, ...
4 years ago (2016-12-06 19:50:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2517883002/150001
4 years ago (2016-12-06 22:13:39 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years ago (2016-12-06 22:56:21 UTC) #19
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bd28681d02dee8c185aeb39207e8154f0ad14a37 Cr-Commit-Position: refs/heads/master@{#15450}
4 years ago (2016-12-06 22:56:33 UTC) #21
Taylor Brandstetter
A revert of this CL (patchset #9 id:150001) has been created in https://codereview.webrtc.org/2553043004/ by deadbeef@webrtc.org. ...
4 years ago (2016-12-06 23:28:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2517883002/170001
4 years ago (2016-12-06 23:59:19 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:170001)
4 years ago (2016-12-07 00:22:10 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-07 00:22:15 UTC) #32
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/49f34fdd237914f1ef3af8a28acb2db8bceecda6
Cr-Commit-Position: refs/heads/master@{#15453}

Powered by Google App Engine
This is Rietveld 408576698