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

Issue 1284113003: Move the concept of multiple route into Network (Closed)

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

Description

In the past, P2PPortAllocator.enable_multiple_routes is the indicator whether we should bind to the any address. It's easy to translate that into a port allocator flag in P2PPortAllocator's ctor. Going forward, we have to depend on an asynchronous permission check to determine whether gathering local address is allowed or not, hence the current way of passing it through constructor approach won't work any more. The asynchronous check will trigger SignalNetowrksChanged so we could only check that inside DoAllocate. Adapter enumeration disable should be a concept from Network. Network will be hooked up with media permission (mic/camera) to check whether gathering local address is allowed. BUG=crbug.com/520101 R=juberti@webrtc.org, pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/ba9ab4cd8d2e8fbc068dc36b5e6f6331d7deeccf Committed: https://chromium.googlesource.com/external/webrtc/+/47872ec90c99ce9c37fb37a8f623ce0e65a32f61 Committed: https://chromium.googlesource.com/external/webrtc/+/86cb923c20e8e50dbb9e3d7984ec1bd5d2455b6a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 12

Patch Set 5 : Merge from master and address Justin's comments. #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Total comments: 12

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : Fix build break in chromium.fyi #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M webrtc/base/network.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/base/network.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (4 generated)
guoweis_webrtc
Going forward, the decision of whether to enumerate adapters is going to not only base ...
5 years, 4 months ago (2015-08-13 15:28:14 UTC) #2
juberti1
https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 webrtc/base/network.h:80: virtual void GetNetworks(NetworkList* networks) const = 0; suggest that ...
5 years, 4 months ago (2015-08-13 20:45:58 UTC) #3
guoweis_webrtc
https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 webrtc/base/network.h:80: virtual void GetNetworks(NetworkList* networks) const = 0; On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 20:54:14 UTC) #4
juberti1
https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 webrtc/base/network.h:80: virtual void GetNetworks(NetworkList* networks) const = 0; On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 22:10:11 UTC) #5
guoweis_webrtc
https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 webrtc/base/network.h:80: virtual void GetNetworks(NetworkList* networks) const = 0; there are ...
5 years, 4 months ago (2015-08-13 22:49:36 UTC) #6
juberti1
https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 webrtc/base/network.h:80: virtual void GetNetworks(NetworkList* networks) const = 0; On 2015/08/13 ...
5 years, 4 months ago (2015-08-13 23:05:27 UTC) #7
guoweis_webrtc
On 2015/08/13 23:05:27, juberti1 wrote: > https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h > File webrtc/base/network.h (right): > > https://codereview.webrtc.org/1284113003/diff/60001/webrtc/base/network.h#newcode80 > ...
5 years, 4 months ago (2015-08-14 20:39:28 UTC) #8
juberti1
just a minor comment https://codereview.webrtc.org/1284113003/diff/80001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1284113003/diff/80001/webrtc/base/network.h#newcode115 webrtc/base/network.h:115: protected: Can this go down ...
5 years, 4 months ago (2015-08-14 20:58:40 UTC) #9
guoweis_webrtc
PTAL. Moved to the NetworkManagerBase.
5 years, 4 months ago (2015-08-14 21:05:03 UTC) #10
juberti1
code lgtm. unit test?
5 years, 4 months ago (2015-08-14 21:19:37 UTC) #11
guoweis_webrtc
On 2015/08/14 21:19:37, juberti1 wrote: > code lgtm. unit test? added in one existing test ...
5 years, 4 months ago (2015-08-14 21:29:08 UTC) #12
juberti1
https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc#newcode662 webrtc/base/network.cc:662: void BasicNetworkManager::StopUpdating() { Should this reset the permission state? ...
5 years, 4 months ago (2015-08-14 23:25:55 UTC) #13
guoweis_webrtc
On 2015/08/14 23:25:55, juberti1 wrote: > https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc > File webrtc/base/network.cc (right): > > https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc#newcode662 > ...
5 years, 4 months ago (2015-08-15 16:30:09 UTC) #16
guoweis_webrtc
On 2015/08/14 23:25:55, juberti1 wrote: > https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc > File webrtc/base/network.cc (right): > > https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc#newcode662 > ...
5 years, 4 months ago (2015-08-15 16:30:09 UTC) #17
guoweis_webrtc
On 2015/08/15 16:30:09, guoweis wrote: > On 2015/08/14 23:25:55, juberti1 wrote: > > https://codereview.webrtc.org/1284113003/diff/120001/webrtc/base/network.cc > ...
5 years, 4 months ago (2015-08-18 17:13:33 UTC) #18
pthatcher1
https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc#newcode317 webrtc/base/network.cc:317: network_permission_state_ = STATE_ALLOWED; I don't understand. Why is it ...
5 years, 4 months ago (2015-08-18 18:34:20 UTC) #19
pthatcher1
https://codereview.webrtc.org/1284113003/diff/190001/webrtc/p2p/client/basicportallocator.cc File webrtc/p2p/client/basicportallocator.cc (right): https://codereview.webrtc.org/1284113003/diff/190001/webrtc/p2p/client/basicportallocator.cc#newcode316 webrtc/p2p/client/basicportallocator.cc:316: } Can you add a unit test for this?
5 years, 4 months ago (2015-08-18 18:47:59 UTC) #20
guoweis_webrtc
On 2015/08/18 18:47:59, pthatcher1 wrote: > https://codereview.webrtc.org/1284113003/diff/190001/webrtc/p2p/client/basicportallocator.cc > File webrtc/p2p/client/basicportallocator.cc (right): > > https://codereview.webrtc.org/1284113003/diff/190001/webrtc/p2p/client/basicportallocator.cc#newcode316 > ...
5 years, 4 months ago (2015-08-18 21:21:27 UTC) #21
pthatcher1
Did you look at my suggestions for name changes?
5 years, 4 months ago (2015-08-18 21:35:41 UTC) #22
guoweis_webrtc
On 2015/08/18 21:35:41, pthatcher1 wrote: > Did you look at my suggestions for name changes? ...
5 years, 4 months ago (2015-08-18 21:55:32 UTC) #23
pthatcher1
On 2015/08/18 21:55:32, guoweis wrote: > On 2015/08/18 21:35:41, pthatcher1 wrote: > > Did you ...
5 years, 4 months ago (2015-08-18 22:03:54 UTC) #24
guoweis_webrtc
Committed patchset #12 (id:250001) manually as ba9ab4cd8d2e8fbc068dc36b5e6f6331d7deeccf (presubmit successful).
5 years, 4 months ago (2015-08-18 22:54:28 UTC) #25
guoweis_webrtc
Committed patchset #13 (id:270001) manually as 47872ec90c99ce9c37fb37a8f623ce0e65a32f61 (presubmit successful).
5 years, 4 months ago (2015-08-19 17:32:57 UTC) #26
guoweis_webrtc
Committed patchset #14 (id:310001) manually as 86cb923c20e8e50dbb9e3d7984ec1bd5d2455b6a (presubmit successful).
5 years, 4 months ago (2015-08-19 17:58:02 UTC) #28
juberti1
What happened with this CL? The design changed nontrivially and the unit test seems to ...
5 years, 4 months ago (2015-08-20 06:31:04 UTC) #29
pthatcher1
The only big change was that we removed the non-Chrome code from having an "unknown" ...
5 years, 4 months ago (2015-08-20 06:43:19 UTC) #30
pthatcher1
https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc#newcode317 webrtc/base/network.cc:317: network_permission_state_ = STATE_ALLOWED; On 2015/08/20 06:31:04, juberti1 wrote: > ...
5 years, 4 months ago (2015-08-20 06:43:37 UTC) #31
juberti1
On 2015/08/20 06:43:37, pthatcher1 wrote: > https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc > File webrtc/base/network.cc (right): > > https://codereview.webrtc.org/1284113003/diff/190001/webrtc/base/network.cc#newcode317 > ...
5 years, 4 months ago (2015-08-20 23:23:57 UTC) #32
juberti1
5 years, 4 months ago (2015-08-20 23:24:40 UTC) #33
Message was sent while issue was closed.
BTW, how will enumeration_permission be used?

Powered by Google App Engine
This is Rietveld 408576698