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

Issue 2377883003: First step in providing a UdpTransportChannel. (Closed)

Created:
4 years, 2 months ago by johan
Modified:
4 years, 1 month ago
CC:
Andrei, webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

First step in providing a UdpTransportChannel. Some applications explicitly require RFC3550 style RTP without ICE. Port number requirement of RFC3550 section 11 will be addressed in a follow-up CL. BUG=webrtc:6436 Committed: https://crrev.com/6bedebfb7a7688698dc5c26a4361791b7b1b206c Cr-Commit-Position: refs/heads/master@{#15005}

Patch Set 1 #

Patch Set 2 : Fix signed / unsigned comparison in test code. #

Total comments: 26

Patch Set 3 : Add empty override for SetMetricsObserver. #

Patch Set 4 : Code style. #

Patch Set 5 : Add ThreadChecker, remove Thread member, actually use pointer to SocketServer. #

Patch Set 6 : Remove SetRemoteAddrAndPort() method. #

Total comments: 74

Patch Set 7 : Remove several RTC_NOTREACHED() and not-implemented declarations. #

Patch Set 8 : Initialiaze in header, where possible and shorten state var names. #

Patch Set 9 : Move simple getters into header file. #

Patch Set 10 : Remove remote_addr_ member and make some methods private. #

Patch Set 11 : Rename candidate_ => parameters_. #

Patch Set 12 : Use rtc::Optional for local and remote parameters. #

Patch Set 13 : Rename classes RawUdpTransoirt => UdpTransport and move files. #

Patch Set 14 : Use only one socket inside UdpTransportChannel. #

Total comments: 1

Patch Set 15 : Remove rtc::UdpTransport. #

Patch Set 16 : Rebase. #

Patch Set 17 : Fix regression in webrtc/p2p/p2p.gyp. #

Patch Set 18 : Comment on origin of overriden public methods. #

Patch Set 19 : Rebase UdpTransportChannel on rtc::PacketTransportInterface. #

Patch Set 20 : Use rtc::PacketSocketFactory. #

Patch Set 21 : Rebase: receiving(). #

Total comments: 50

Patch Set 22 : Resolve TransportChannel dependency, address review comments. #

Patch Set 23 : Revert "Remove component_ and debug_name_, just use transport_name_." #

Total comments: 16

Patch Set 24 : Unit test: VirtualSocketServer, constructor and nits. #

Total comments: 3

Patch Set 25 : Revert accidental patch of virtualsocketserver.cc. #

Patch Set 26 : Format, remove comments. #

Patch Set 27 : Fix gyp build file. #

Patch Set 28 : Fix gyp build file, part 2. #

Total comments: 38

Patch Set 29 : Incorporate review feedback. #

Patch Set 30 : Fix typo. #

Total comments: 1

Patch Set 31 : Fix typo. #

Patch Set 32 : Rename CreateSocket() to Start(). #

Patch Set 33 : Fix signed / unsigned assignment in unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+430 lines, -0 lines) Patch
M webrtc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/p2p/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/p2p/base/udptransportchannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +96 lines, -0 lines 0 comments Download
A webrtc/p2p/base/udptransportchannel.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +144 lines, -0 lines 0 comments Download
A webrtc/p2p/base/udptransportchannel_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +185 lines, -0 lines 0 comments Download
M webrtc/p2p/p2p.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 80 (44 generated)
johan
@sprang would be good to have a first review before going to owners.
4 years, 2 months ago (2016-09-28 16:16:30 UTC) #4
sprang_webrtc
https://codereview.webrtc.org/2377883003/diff/20001/webrtc/p2p/rawudp/rawudptransportchannel.cc File webrtc/p2p/rawudp/rawudptransportchannel.cc (right): https://codereview.webrtc.org/2377883003/diff/20001/webrtc/p2p/rawudp/rawudptransportchannel.cc#newcode41 webrtc/p2p/rawudp/rawudptransportchannel.cc:41: remote_candidate_() { We usually omit default constructors in the ...
4 years, 2 months ago (2016-10-07 09:56:22 UTC) #11
johan
https://codereview.webrtc.org/2377883003/diff/20001/webrtc/p2p/rawudp/rawudptransportchannel.cc File webrtc/p2p/rawudp/rawudptransportchannel.cc (right): https://codereview.webrtc.org/2377883003/diff/20001/webrtc/p2p/rawudp/rawudptransportchannel.cc#newcode41 webrtc/p2p/rawudp/rawudptransportchannel.cc:41: remote_candidate_() { On 2016/10/07 09:56:21, språng wrote: > We ...
4 years, 2 months ago (2016-10-07 12:24:26 UTC) #12
johan
pthatcher, feedback on this not yet complete udp transport channel would be welcome.
4 years, 2 months ago (2016-10-07 13:23:01 UTC) #15
pthatcher1
Tayor, can you review this once it's gone through another pass, especially the unit tests ...
4 years, 2 months ago (2016-10-07 17:36:37 UTC) #17
Taylor Brandstetter
I think Peter, you and I need to get on the same page about the ...
4 years, 2 months ago (2016-10-07 18:24:03 UTC) #20
pthatcher1
We're going to do the PacketTransportInterface very soon anyway. Either Johan does it or Andrei ...
4 years, 2 months ago (2016-10-07 21:15:39 UTC) #21
johan
Peter, Taylor, my next steps would be the following: 1) resolve all the "small" issues ...
4 years, 2 months ago (2016-10-11 13:36:10 UTC) #22
johan
Most of the "smaller" issues should be resolved. Remaining issues: * Use rtc::PacketSocketFactory in a ...
4 years, 2 months ago (2016-10-13 19:01:04 UTC) #23
pthatcher1
Let's land the PacketTransport CL, rebase this one on it, and then take another look. ...
4 years, 2 months ago (2016-10-13 22:37:01 UTC) #24
johan
Peter, Taylor, I would like to bring up a design discussion again, now that the ...
4 years, 1 month ago (2016-10-25 22:39:22 UTC) #25
pthatcher1
On 2016/10/25 22:39:22, johan wrote: > Peter, Taylor, I would like to bring up a ...
4 years, 1 month ago (2016-10-26 22:41:28 UTC) #26
johan
On 2016/10/26 22:41:28, pthatcher1 wrote: > OK. Would it make sense to start by rebasing ...
4 years, 1 month ago (2016-10-28 07:47:08 UTC) #27
johan
PTAL, rebase done. We can revert it, if necessary. I think the basic question/decision is: ...
4 years, 1 month ago (2016-10-28 13:15:04 UTC) #28
Taylor Brandstetter
As I mentioned in email, I prefer a) out of the two options, unless we ...
4 years, 1 month ago (2016-11-01 21:32:49 UTC) #30
pthatcher1
https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.cc File webrtc/p2p/base/udptransportchannel.cc (right): https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.cc#newcode62 webrtc/p2p/base/udptransportchannel.cc:62: debug_name_ = transport_name_ + " " + std::to_string(component_); Just ...
4 years, 1 month ago (2016-11-02 06:19:38 UTC) #31
johan
I should have addressed all review comments. Apologies, if I missed one. https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.cc File webrtc/p2p/base/udptransportchannel.cc ...
4 years, 1 month ago (2016-11-02 15:14:04 UTC) #32
Taylor Brandstetter
https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.h File webrtc/p2p/base/udptransportchannel.h (right): https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.h#newcode30 webrtc/p2p/base/udptransportchannel.h:30: On 2016/11/02 06:19:37, pthatcher1 wrote: > On 2016/11/01 21:32:49, ...
4 years, 1 month ago (2016-11-02 19:15:20 UTC) #33
johan
Ok, as far as I can tell, this CL is only blocked by a missing ...
4 years, 1 month ago (2016-11-03 13:55:33 UTC) #34
johan
4 years, 1 month ago (2016-11-03 13:57:36 UTC) #36
Taylor Brandstetter
I'm ok with landing this CL and working out the RTP/RTCP details later. I just ...
4 years, 1 month ago (2016-11-04 00:17:42 UTC) #37
johan
Thanks! Great! VirtualSocketServer is in place. Test fixture and nits should be cleaned up. https://codereview.webrtc.org/2377883003/diff/440001/webrtc/p2p/base/udptransportchannel_unittest.cc ...
4 years, 1 month ago (2016-11-04 17:39:30 UTC) #38
Taylor Brandstetter
lgtm, just some things I think can be cleaned up now. https://codereview.webrtc.org/2377883003/diff/460001/webrtc/base/virtualsocketserver.cc File webrtc/base/virtualsocketserver.cc (right): ...
4 years, 1 month ago (2016-11-04 17:51:07 UTC) #43
johan
On 2016/11/04 17:51:07, Taylor Brandstetter wrote: > lgtm, just some things I think can be ...
4 years, 1 month ago (2016-11-04 18:00:14 UTC) #46
pthatcher1
On 2016/11/02 19:15:20, Taylor Brandstetter wrote: > https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.h > File webrtc/p2p/base/udptransportchannel.h (right): > > https://codereview.webrtc.org/2377883003/diff/400001/webrtc/p2p/base/udptransportchannel.h#newcode30 ...
4 years, 1 month ago (2016-11-04 22:33:58 UTC) #53
pthatcher1
https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.cc File webrtc/p2p/base/udptransportchannel.cc (right): https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.cc#newcode39 webrtc/p2p/base/udptransportchannel.cc:39: UpdateDebugName(); Might as well just inline this. https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.cc#newcode58 webrtc/p2p/base/udptransportchannel.cc:58: ...
4 years, 1 month ago (2016-11-04 22:58:58 UTC) #54
Taylor Brandstetter
On 2016/11/04 22:33:58, pthatcher1 wrote: > On 2016/11/02 19:15:20, Taylor Brandstetter wrote: > > > ...
4 years, 1 month ago (2016-11-05 00:52:37 UTC) #55
johan
https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.cc File webrtc/p2p/base/udptransportchannel.cc (right): https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.cc#newcode39 webrtc/p2p/base/udptransportchannel.cc:39: UpdateDebugName(); On 2016/11/04 22:58:58, pthatcher1 wrote: > Might as ...
4 years, 1 month ago (2016-11-07 17:51:53 UTC) #56
johan
ptal
4 years, 1 month ago (2016-11-08 14:59:42 UTC) #57
Taylor Brandstetter
Still lgtm https://codereview.webrtc.org/2377883003/diff/580001/webrtc/p2p/base/udptransportchannel.h File webrtc/p2p/base/udptransportchannel.h (right): https://codereview.webrtc.org/2377883003/diff/580001/webrtc/p2p/base/udptransportchannel.h#newcode67 webrtc/p2p/base/udptransportchannel.h:67: // Returned optional does not hav a ...
4 years, 1 month ago (2016-11-09 00:53:42 UTC) #58
pthatcher1
lgtm, assuming you make the method name "Start", with the appropriate comment. https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.h File webrtc/p2p/base/udptransportchannel.h ...
4 years, 1 month ago (2016-11-09 16:35:00 UTC) #59
johan
https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.h File webrtc/p2p/base/udptransportchannel.h (right): https://codereview.webrtc.org/2377883003/diff/540001/webrtc/p2p/base/udptransportchannel.h#newcode69 webrtc/p2p/base/udptransportchannel.h:69: // Check GetState() for resulting state. On 2016/11/09 16:34:59, ...
4 years, 1 month ago (2016-11-09 17:22:03 UTC) #60
johan
4 years, 1 month ago (2016-11-09 17:51:19 UTC) #67
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/2377883003/640001
4 years, 1 month ago (2016-11-09 21:42:34 UTC) #76
commit-bot: I haz the power
Committed patchset #33 (id:640001)
4 years, 1 month ago (2016-11-09 21:44:13 UTC) #78
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 21:44:18 UTC) #80
Message was sent while issue was closed.
Patchset 33 (id:??) landed as
https://crrev.com/6bedebfb7a7688698dc5c26a4361791b7b1b206c
Cr-Commit-Position: refs/heads/master@{#15005}

Powered by Google App Engine
This is Rietveld 408576698