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

Unified Diff: talk/app/webrtc/webrtcsession.cc

Issue 1231913003: Add methods to set the ICE connection receiving_timeout values. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Set the timeout value Created 5 years, 5 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: talk/app/webrtc/webrtcsession.cc
diff --git a/talk/app/webrtc/webrtcsession.cc b/talk/app/webrtc/webrtcsession.cc
index a3ff934dbc00c244dd4453922fe73dad68c9a431..ce4aabfe30c703fd57f9a99e577fb27ff6afe348 100644
--- a/talk/app/webrtc/webrtcsession.cc
+++ b/talk/app/webrtc/webrtcsession.cc
@@ -1432,6 +1432,16 @@ void WebRtcSession::SetIceConnectionReceiving(bool receiving) {
}
}
+void WebRtcSession::SetIceConnectionReceivingTimeout(int timeout_ms) {
+ for (const auto& kv : transport_proxies()) {
+ cricket::Transport* transport = kv.second->impl();
+ if (transport && transport->HasChannels()) {
+ transport->SetChannelReceivingTimeout(timeout_ms);
pthatcher1 2015/07/09 22:21:41 We should pass down the value to each Transport ev
honghaiz3 2015/08/05 23:57:39 Done.
+ }
+ }
pthatcher1 2015/07/09 22:21:41 I think we need to store the value and then apply
honghaiz3 2015/08/05 23:57:39 Done.
+}
+
+
void WebRtcSession::OnTransportProxyCandidatesReady(
cricket::TransportProxy* proxy, const cricket::Candidates& candidates) {
ASSERT(signaling_thread()->IsCurrent());

Powered by Google App Engine
This is Rietveld 408576698