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

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

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase to master Created 5 years, 3 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 | « webrtc/p2p/base/transport.h ('k') | webrtc/p2p/base/transportchannelimpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.cc
diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc
index b7aba7540a5699e165994a143bbae9c5852ec5a8..3e5f1b9f3a98ed1b953eb67a541d205a37965a4b 100644
--- a/webrtc/p2p/base/transport.cc
+++ b/webrtc/p2p/base/transport.cc
@@ -125,10 +125,10 @@ bool Transport::GetRemoteSSLCertificate(rtc::SSLCertificate** cert) {
return iter->second->GetRemoteSSLCertificate(cert);
}
-void Transport::SetChannelReceivingTimeout(int timeout_ms) {
- channel_receiving_timeout_ = timeout_ms;
+void Transport::SetIceConfig(const IceConfig& config) {
+ ice_config_ = config;
for (const auto& kv : channels_) {
- kv.second->SetReceivingTimeout(timeout_ms);
+ kv.second->SetIceConfig(ice_config_);
}
}
@@ -229,7 +229,7 @@ TransportChannelImpl* Transport::CreateChannel(int component) {
// Push down our transport state to the new channel.
impl->SetIceRole(ice_role_);
impl->SetIceTiebreaker(tiebreaker_);
- impl->SetReceivingTimeout(channel_receiving_timeout_);
+ impl->SetIceConfig(ice_config_);
// TODO(ronghuawu): Change CreateChannel to be able to return error since
// below Apply**Description calls can fail.
if (local_description_)
« no previous file with comments | « webrtc/p2p/base/transport.h ('k') | webrtc/p2p/base/transportchannelimpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698