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

Issue 1998813002: Fixing the behavior of the candidate filter with pooled candidates. (Closed)

Created:
4 years, 7 months ago by Taylor Brandstetter
Modified:
4 years, 7 months ago
Reviewers:
pthatcher1, honghaiz3
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

Fixing the behavior of the candidate filter with pooled candidates. According to JSEP, the candidate filter does not affect pooled candidates because they can be filtered once they're ready to be surfaced to the application. So, pooled port allocator sessions will use a filter of CF_ALL, with a new filter applied when the session is taken by a P2PTransportChannel. When the filter is applied: * Some candidates may no longer be returned by ReadyCandidates() * Some candidates may no longer have a "related address" (for privacy) * Some ports may no longer be returned by ReadyPorts() To simplify this, the candidate filtering logic is now moved up from the Ports to the BasicPortAllocator, with some helper methods to perform the filtering and stripping out of data. R=honghaiz@webrtc.org, pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/417eebe5dd5b7ee9e9e8da11a48fc8a19df4eca3

Patch Set 1 #

Total comments: 2

Patch Set 2 : Merge with master #

Patch Set 3 : Revising a comment and changing order of member variable declaration #

Total comments: 8

Patch Set 4 : Responding to comments and using cricket:: namespace in unit test file. #

Patch Set 5 : Merge with master (no more OnShake!) #

Patch Set 6 : Merge with master again #

Patch Set 7 : Updating unit tests. #

Patch Set 8 : Fixing another merge conflict (just change in timeout value in test) #

Patch Set 9 : Undoing unintentional "git cl format" of unrelated files. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+507 lines, -450 lines) Patch
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/p2p/base/fakeportallocator.h View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M webrtc/p2p/base/port.h View 1 2 3 4 3 chunks +0 lines, -11 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M webrtc/p2p/base/portallocator.cc View 2 chunks +6 lines, -1 line 0 comments Download
M webrtc/p2p/base/portallocator_unittest.cc View 4 chunks +42 lines, -0 lines 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.h View 1 2 3 4 4 chunks +23 lines, -13 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 8 chunks +80 lines, -42 lines 0 comments Download
M webrtc/p2p/client/basicportallocator_unittest.cc View 1 2 3 4 5 6 7 64 chunks +339 lines, -363 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Taylor Brandstetter
PTAL https://codereview.webrtc.org/1998813002/diff/1/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (left): https://codereview.webrtc.org/1998813002/diff/1/webrtc/p2p/base/portallocator.h#oldcode304 webrtc/p2p/base/portallocator.h:304: // TODO(mallinath) - Do transition check? Transition check ...
4 years, 7 months ago (2016-05-19 22:11:45 UTC) #2
honghaiz3
lgtm
4 years, 7 months ago (2016-05-20 00:11:11 UTC) #3
pthatcher1
https://codereview.webrtc.org/1998813002/diff/40001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/1998813002/diff/40001/webrtc/p2p/base/portallocator.h#newcode147 webrtc/p2p/base/portallocator.h:147: // by ReadyPorts(). Perhaps make it clear that it's ...
4 years, 7 months ago (2016-05-20 01:23:54 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/1998813002/diff/40001/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/1998813002/diff/40001/webrtc/p2p/base/portallocator.h#newcode147 webrtc/p2p/base/portallocator.h:147: // by ReadyPorts(). On 2016/05/20 01:23:54, pthatcher1 wrote: > ...
4 years, 7 months ago (2016-05-20 21:03:37 UTC) #5
pthatcher1
lgtm
4 years, 7 months ago (2016-05-20 21:46:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998813002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998813002/80001
4 years, 7 months ago (2016-05-23 17:14:23 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_dbg/builds/7708) ios64_sim_dbg on tryserver.webrtc (JOB_FAILED, ...
4 years, 7 months ago (2016-05-23 17:15:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998813002/100001
4 years, 7 months ago (2016-05-23 17:55:34 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/15242) linux_gn_rel on tryserver.webrtc (JOB_FAILED, ...
4 years, 7 months ago (2016-05-23 17:56:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998813002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998813002/120001
4 years, 7 months ago (2016-05-23 18:22:08 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_dbg/builds/15249)
4 years, 7 months ago (2016-05-23 18:36:03 UTC) #21
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/417eebe5dd5b7ee9e9e8da11a48fc8a19df4eca3 Cr-Commit-Position: refs/heads/master@{#12856}
4 years, 7 months ago (2016-05-23 23:02:34 UTC) #23
Taylor Brandstetter
4 years, 7 months ago (2016-05-23 23:02:35 UTC) #25
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
417eebe5dd5b7ee9e9e8da11a48fc8a19df4eca3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698