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

Unified Diff: webrtc/p2p/base/stunport.cc

Issue 2063823008: Adding IceConfig option to assume TURN/TURN candidate pairs will work. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Responding to comments. Doing "presumed writable" determination in Connection. Created 4 years, 6 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
Index: webrtc/p2p/base/stunport.cc
diff --git a/webrtc/p2p/base/stunport.cc b/webrtc/p2p/base/stunport.cc
index e56d454b80139f22dd9fb2672e101d90c3cfb10b..c1b902e5fe076e1e06d30567c90f59137297a60b 100644
--- a/webrtc/p2p/base/stunport.cc
+++ b/webrtc/p2p/base/stunport.cc
@@ -253,7 +253,8 @@ void UDPPort::MaybePrepareStunCandidate() {
}
Connection* UDPPort::CreateConnection(const Candidate& address,
- CandidateOrigin origin) {
+ CandidateOrigin origin,
+ const IceConfig& config) {
if (!SupportsProtocol(address.protocol())) {
return NULL;
}
@@ -267,7 +268,7 @@ Connection* UDPPort::CreateConnection(const Candidate& address,
return NULL;
}
- Connection* conn = new ProxyConnection(this, 0, address);
+ Connection* conn = new ProxyConnection(this, 0, address, config);
AddOrReplaceConnection(conn);
return conn;
}

Powered by Google App Engine
This is Rietveld 408576698