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

Unified Diff: webrtc/api/peerconnection.cc

Issue 1987833002: Add a flag to filter out high-cost networks. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/api/peerconnectioninterface.h » ('j') | webrtc/base/network.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnection.cc
diff --git a/webrtc/api/peerconnection.cc b/webrtc/api/peerconnection.cc
index dda0eebb074ce5d03db6258c3388963027c3d2ca..7e7484e89e2715e40f1364c21866b3ae9af445c9 100644
--- a/webrtc/api/peerconnection.cc
+++ b/webrtc/api/peerconnection.cc
@@ -2115,6 +2115,11 @@ bool PeerConnection::InitializePortAllocator_w(
LOG(LS_INFO) << "TCP candidates are disabled.";
}
+ if (configuration.gather_low_cost_network_only) {
pthatcher1 2016/05/17 20:44:27 It seems like we should make this an enum policy l
honghaiz3 2016/05/18 05:55:02 Done.
+ portallocator_flags |= cricket::PORTALLOCATOR_GATHER_LOW_COST_NETWORK_ONLY;
+ LOG(LS_INFO) << "Only gather on lower-cost networks";
+ }
+
port_allocator_->set_flags(portallocator_flags);
// No step delay is used while allocating ports.
port_allocator_->set_step_delay(cricket::kMinimumStepDelay);
« no previous file with comments | « no previous file | webrtc/api/peerconnectioninterface.h » ('j') | webrtc/base/network.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698