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

Issue 2416023002: Introduce rtc::PacketTransportInterface and let cricket::TransportChannel inherit. (Closed)

Created:
4 years, 2 months ago by johan
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, sprang_webrtc, Andrei
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Introduce rtc::PacketTransportInterface and let cricket::TransportChannel inherit. Introduce rtc::PacketTransportInterface. Refactor cricket::TransportChannel. Fix signal slots parameter types in all related code. BUG=webrtc:6531 Committed: https://crrev.com/d89ab145cd07c052664ed24873878335652a6e36 Cr-Commit-Position: refs/heads/master@{#14778}

Patch Set 1 #

Patch Set 2 : Resolve unused variable issue in release build. #

Total comments: 22

Patch Set 3 : Rename rtc::PacketTransport to rtc::PacketTransportInterface, #

Patch Set 4 : Let BaseChannel::PacketIsRtcp() use PacketTransportInterface. #

Total comments: 6

Patch Set 5 : Fix nits (names and todo text). #

Patch Set 6 : Remove static_casts for rtc::PacketTransportInterface or cricket::TransportChannel. #

Patch Set 7 : Rebase. #

Total comments: 20

Patch Set 8 : Style and comments. #

Patch Set 9 : #include and forward declaration for chromium integration. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -116 lines) Patch
M webrtc/p2p/base/dtlstransportchannel.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -5 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 2 3 4 5 6 5 chunks +14 lines, -8 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 1 2 4 chunks +14 lines, -9 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 2 3 4 5 6 7 8 chunks +24 lines, -19 lines 0 comments Download
M webrtc/p2p/base/packettransportinterface.h View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transportchannel.h View 1 2 4 chunks +6 lines, -28 lines 0 comments Download
M webrtc/p2p/base/transportcontroller.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/p2p/base/transportcontroller.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 4 5 6 7 6 chunks +20 lines, -14 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 chunks +30 lines, -26 lines 0 comments Download

Messages

Total messages: 51 (33 generated)
johan
Creating a PacketTransportInterface as discussed in https://codereview.webrtc.org/2377883003/ . Only creating the PacketTransportInterface and resolving follow ...
4 years, 2 months ago (2016-10-13 18:46:38 UTC) #8
pthatcher1
This is the right direction. Just needs a few modifications. https://codereview.webrtc.org/2416023002/diff/20001/webrtc/p2p/base/dtlstransportchannel.cc File webrtc/p2p/base/dtlstransportchannel.cc (right): https://codereview.webrtc.org/2416023002/diff/20001/webrtc/p2p/base/dtlstransportchannel.cc#newcode442 ...
4 years, 2 months ago (2016-10-13 20:26:38 UTC) #11
johan
PTAL https://codereview.webrtc.org/2416023002/diff/20001/webrtc/p2p/base/dtlstransportchannel.cc File webrtc/p2p/base/dtlstransportchannel.cc (right): https://codereview.webrtc.org/2416023002/diff/20001/webrtc/p2p/base/dtlstransportchannel.cc#newcode442 webrtc/p2p/base/dtlstransportchannel.cc:442: TransportChannel* channel = static_cast<TransportChannel*>(pt); On 2016/10/13 20:26:37, pthatcher1 ...
4 years, 2 months ago (2016-10-14 16:09:34 UTC) #17
pthatcher1
Just a few nits. I'd like to have Taylor take a look also. He might ...
4 years, 2 months ago (2016-10-14 17:59:17 UTC) #18
johan
PTAL I managed to remove the explicit static_casts. The remaining casts should be type safe ...
4 years, 2 months ago (2016-10-17 15:47:55 UTC) #26
pthatcher1
lgtm
4 years, 2 months ago (2016-10-17 16:12:25 UTC) #27
johan
Before I hit the commit button and probably break Chromium's build tree: - Chromium's cricket::ChannelSocketAdapter ...
4 years, 2 months ago (2016-10-17 21:11:15 UTC) #30
pthatcher1
On 2016/10/17 21:11:15, johan wrote: > Before I hit the commit button and probably break ...
4 years, 2 months ago (2016-10-17 22:46:03 UTC) #31
Taylor Brandstetter
Aside from style nits, the only real thing I'd ask for is more comments documenting ...
4 years, 2 months ago (2016-10-17 23:24:51 UTC) #32
johan
https://codereview.webrtc.org/2416023002/diff/120001/webrtc/p2p/base/dtlstransportchannel.h File webrtc/p2p/base/dtlstransportchannel.h (right): https://codereview.webrtc.org/2416023002/diff/120001/webrtc/p2p/base/dtlstransportchannel.h#newcode26 webrtc/p2p/base/dtlstransportchannel.h:26: struct PacketTransportInterface; On 2016/10/17 23:24:50, Taylor Brandstetter wrote: > ...
4 years, 2 months ago (2016-10-18 09:17:09 UTC) #33
johan
Typedef: https://codereview.webrtc.org/2429803002/
4 years, 2 months ago (2016-10-18 10:51:28 UTC) #34
Taylor Brandstetter
lgtm; thanks for responding to all my nits and adding TODOs.
4 years, 2 months ago (2016-10-18 17:54:44 UTC) #35
johan
Peter, what is your opinion on adding receiving() and SignalReceivingState to rtc::PacketTransportInterface ? Maybe we ...
4 years, 1 month ago (2016-10-25 15:55:38 UTC) #40
pthatcher1
Yes, please land this CL as-is and then we can address the receiving() parts in ...
4 years, 1 month ago (2016-10-25 16:28:43 UTC) #41
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/2416023002/180001
4 years, 1 month ago (2016-10-25 16:32:21 UTC) #44
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/2416023002/180001
4 years, 1 month ago (2016-10-25 17:18:59 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-10-25 17:50:37 UTC) #49
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 17:51:54 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d89ab145cd07c052664ed24873878335652a6e36
Cr-Commit-Position: refs/heads/master@{#14778}

Powered by Google App Engine
This is Rietveld 408576698