Chromium Code Reviews
DescriptionAdd support for default local address in IpcNetworkManager
One of the modes of ip handling policy is to allow the associated default local address to be exposed along with the public interface. This requires Connect() to a public server (using the same ones from WebRTC) and GetLocalAddress() from a UDP socket. (Similar to https://code.google.com/p/chromium/codesearch#chromium/src/net/dns/host_resolver_impl.cc&rcl=1446089237&l=195)
This mode will also be in effect when permission check on mic/camera fails or not involved (like a data channel).
Default local address is really a global property of a network configuration, instead of individual network. They are most likely changed when interface changes. (Yes, people with admin right could change the routing table which changes the default local interface without network configuration change but I consider it is rare and not a supported scenario)
This depends on the ongoing CL: https://codereview.webrtc.org/1411253008
BUG=webrtc:5061
Committed: https://crrev.com/a8c3d89c8fbbb8910665f194efe33747cd5b6d48
Cr-Commit-Position: refs/heads/master@{#359360}
Patch Set 1 #Patch Set 2 : clean up the code. #Patch Set 3 : update test cases. #
Total comments: 18
Patch Set 4 : address Sergey's comments #
Total comments: 1
Patch Set 5 : IPAddressNumberToIPAddress. #
Total comments: 4
Patch Set 6 : address comments. #
Total comments: 6
Patch Set 7 : remove redundancy. #Patch Set 8 : fix a sizeof #Messages
Total messages: 27 (11 generated)
|