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

Unified Diff: webrtc/p2p/base/transport.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: webrtc/p2p/base/transport.cc
diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc
index f9b7fd4a04379db2f0a124ef591bee4e010772c0..12f19d534d3953a5143c635a33bd71916314f42b 100644
--- a/webrtc/p2p/base/transport.cc
+++ b/webrtc/p2p/base/transport.cc
@@ -174,6 +174,18 @@ bool Transport::GetRemoteCertificate_w(rtc::SSLCertificate** cert) {
return iter->second->GetRemoteCertificate(cert);
}
+void Transport::SetChannelReceivingTimeout(int timeout_ms) {
+ worker_thread_->Invoke<void>(Bind(
+ &Transport::SetChannelReceivingTimeout_w, this, timeout_ms));
+}
+
+void Transport::SetChannelReceivingTimeout_w(int timeout_ms) {
+ ASSERT(worker_thread()->IsCurrent());
+ for (const auto& kv : channels_) {
+ kv.second->SetReceivingTimeout(timeout_ms);
+ }
pthatcher1 2015/07/09 22:21:41 The Transport needs to remember the value and appl
honghaiz3 2015/08/05 23:57:39 Done.
+}
+
bool Transport::SetLocalTransportDescription(
const TransportDescription& description,
ContentAction action,

Powered by Google App Engine
This is Rietveld 408576698