DescriptionUpdate the type and cost of existing networks
if the network monitor detects it after the native code does.
Also set the network cost for ethernet, wifi, unknown, cellular network type to be 0, 10, 50, 900,
so that unknown networks will have lower precedence than known networks with low cost (like Wifi) but higher precedence than known networks with high cost.
And third, infer network type based on limited name matching in Android if there is no network monitor or network monitor did not find the type.
BUG=webrtc:5890
R=pthatcher@chromium.org, pthatcher@webrtc.org
Committed: https://crrev.com/351d77b702d61eef28c4b6273e0c091ce177d1a0
Cr-Commit-Position: refs/heads/master@{#12833}
Patch Set 1 : #Patch Set 2 : Update stun lifetime when network cost changes and add network type for "v4-rmnet" #Patch Set 3 : Fix a test failure #Patch Set 4 : Get network type from name matching only on IOS or Android. #
Total comments: 24
Patch Set 5 : Address comments #Patch Set 6 : rebase and merge to head #Patch Set 7 : Minor changes #
Messages
Total messages: 50 (34 generated)
|