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

Issue 1520963002: Removing webrtc::PortAllocatorFactoryInterface. (Closed)

Created:
5 years ago by Taylor Brandstetter
Modified:
4 years, 11 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Removing webrtc::PortAllocatorFactoryInterface. ICE servers are now passed directly into PortAllocator, making PortAllocatorFactoryInterface redundant. This CL also moves SetNetworkIgnoreMask to PortAllocator. R=phoglund@webrtc.org, pthatcher@webrtc.org, tkchin@webrtc.org Committed: https://crrev.com/0c7e9f540b282d60b94081f601a1694054d8646e Cr-Commit-Position: refs/heads/master@{#11139}

Patch Set 1 #

Patch Set 2 : Fixing conflicts and presubmit warnings. #

Patch Set 3 : Using new CreatePeerConnection method in objc wrapper. #

Total comments: 6

Patch Set 4 : Adding comment as requested. #

Patch Set 5 : Moving the network ignore mask logic (and unit tests) to BasicPortAllocator. #

Total comments: 1

Patch Set 6 : Making code slightly more readable. #

Patch Set 7 : Fixing nat_unittest, and using std::remove_if for filtering. #

Patch Set 8 : Fixing typo. #

Patch Set 9 : Fixing patch conflicts #

Total comments: 1

Patch Set 10 : Trying to fix presubmit warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -829 lines) Patch
D talk/app/webrtc/fakeportallocatorfactory.h View 1 chunk +0 lines, -85 lines 0 comments Download
M talk/app/webrtc/objc/RTCPeerConnection.mm View 1 2 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M talk/app/webrtc/peerconnection.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -18 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 3 4 5 6 7 8 9 14 chunks +33 lines, -102 lines 0 comments Download
M talk/app/webrtc/peerconnection_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +80 lines, -83 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory.h View 2 chunks +0 lines, -12 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory.cc View 1 2 3 4 5 6 7 8 5 chunks +1 line, -40 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory_unittest.cc View 1 2 3 4 5 6 7 8 11 chunks +104 lines, -154 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactoryproxy.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -22 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -80 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +25 lines, -30 lines 0 comments Download
M talk/app/webrtc/portallocatorfactory.h View 1 1 chunk +2 lines, -41 lines 0 comments Download
M talk/app/webrtc/portallocatorfactory.cc View 1 2 chunks +3 lines, -65 lines 0 comments Download
M talk/app/webrtc/test/peerconnectiontestwrapper.h View 2 chunks +0 lines, -7 lines 0 comments Download
M talk/app/webrtc/test/peerconnectiontestwrapper.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -9 lines 0 comments Download
M talk/libjingle.gyp View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M webrtc/base/fakenetwork.h View 1 2 3 4 4 chunks +17 lines, -11 lines 0 comments Download
M webrtc/base/nat_unittest.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/base/network.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -13 lines 0 comments Download
M webrtc/base/network.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -35 lines 0 comments Download
M webrtc/examples/peerconnection/client/conductor.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -4 lines 0 comments Download
M webrtc/p2p/client/fakeportallocator.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/p2p/client/portallocator_unittest.cc View 1 2 3 4 4 chunks +52 lines, -1 line 0 comments Download

Messages

Total messages: 27 (11 generated)
Taylor Brandstetter
pthatcher: PTAL phoglund: Are you ok with what I did with SetNetworkIgnoreMask? It's going away ...
5 years ago (2015-12-14 20:54:34 UTC) #4
pthatcher1
This is a really nice cleanup. https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnection.cc File talk/app/webrtc/peerconnection.cc (right): https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnection.cc#newcode542 talk/app/webrtc/peerconnection.cc:542: } Can you ...
5 years ago (2015-12-15 07:58:45 UTC) #5
phoglund
https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnectionfactory.cc File talk/app/webrtc/peerconnectionfactory.cc (right): https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnectionfactory.cc#newcode267 talk/app/webrtc/peerconnectionfactory.cc:267: allocator->SetNetworkIgnoreMask(options_.network_ignore_mask); On 2015/12/15 07:58:44, pthatcher1 wrote: > So is ...
5 years ago (2015-12-15 12:41:31 UTC) #6
Taylor Brandstetter
On 2015/12/15 12:41:31, phoglund wrote: > https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnectionfactory.cc > File talk/app/webrtc/peerconnectionfactory.cc (right): > > https://codereview.webrtc.org/1520963002/diff/40001/talk/app/webrtc/peerconnectionfactory.cc#newcode267 > ...
5 years ago (2015-12-15 19:30:47 UTC) #7
Taylor Brandstetter
Ok, I moved the network ignore mask logic to BasicPortAllocator. One advantage of this approach ...
5 years ago (2015-12-15 21:31:54 UTC) #8
pthatcher1
lgtm I like it. https://codereview.webrtc.org/1520963002/diff/80001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1520963002/diff/80001/webrtc/p2p/client/basicportallocator.cc#newcode333 webrtc/p2p/client/basicportallocator.cc:333: if (!(allocator_->network_ignore_mask() & network->type())) { ...
5 years ago (2015-12-15 23:53:18 UTC) #9
phoglund
lgtm
5 years ago (2015-12-16 09:15:16 UTC) #10
pthatcher1
lgtm https://codereview.webrtc.org/1520963002/diff/160001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1520963002/diff/160001/webrtc/p2p/client/basicportallocator.cc#newcode337 webrtc/p2p/client/basicportallocator.cc:337: networks->end()); Could be slightly more readable as: auto ...
5 years ago (2015-12-17 22:02:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1520963002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1520963002/160001
5 years ago (2015-12-17 23:16:37 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/2486)
5 years ago (2015-12-17 23:21:28 UTC) #16
Taylor Brandstetter
Zeke: Could you take a look at conductor.cc?
5 years ago (2015-12-17 23:52:59 UTC) #18
tkchin_webrtc
On 2015/12/17 23:52:59, Taylor Brandstetter wrote: > Zeke: Could you take a look at conductor.cc? ...
5 years ago (2015-12-21 12:41:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1520963002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1520963002/160001
4 years, 11 months ago (2015-12-29 18:46:16 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/2647)
4 years, 11 months ago (2015-12-29 18:52:54 UTC) #23
Taylor Brandstetter
Committed patchset #10 (id:180001) manually as 0c7e9f540b282d60b94081f601a1694054d8646e (presubmit successful).
4 years, 11 months ago (2015-12-29 22:15:11 UTC) #25
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 22:15:20 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0c7e9f540b282d60b94081f601a1694054d8646e
Cr-Commit-Position: refs/heads/master@{#11139}

Powered by Google App Engine
This is Rietveld 408576698