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

Unified Diff: webrtc/p2p/base/p2ptransportchannel.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/p2ptransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel.cc
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc
index 2a851f5c7259cf32c22d66b149b8e059249ed939..15ac006872e9087bf8af8cbe1fde783fd29f1160 100644
--- a/webrtc/p2p/base/p2ptransportchannel.cc
+++ b/webrtc/p2p/base/p2ptransportchannel.cc
@@ -355,19 +355,22 @@ void P2PTransportChannel::SetRemoteIceMode(IceMode mode) {
remote_ice_mode_ = mode;
}
-void P2PTransportChannel::SetReceivingTimeout(int receiving_timeout_ms) {
- if (receiving_timeout_ms < 0) {
+void P2PTransportChannel::SetIceConfig(const IceConfig& config) {
+ gather_continually_ = config.gather_continually;
+ LOG(LS_INFO) << "Set gather_continually to " << gather_continually_;
+
+ if (config.receiving_timeout_ms < 0) {
return;
}
- receiving_timeout_ = receiving_timeout_ms;
+ receiving_timeout_ = config.receiving_timeout_ms;
check_receiving_delay_ =
std::max(MIN_CHECK_RECEIVING_DELAY, receiving_timeout_ / 10);
for (Connection* connection : connections_) {
connection->set_receiving_timeout(receiving_timeout_);
}
- LOG(LS_VERBOSE) << "Set ICE receiving timeout to " << receiving_timeout_
- << " milliseconds";
+ LOG(LS_INFO) << "Set ICE receiving timeout to " << receiving_timeout_
+ << " milliseconds";
}
// Go into the state of processing candidates, and running in general
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698