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

Unified Diff: webrtc/pc/channel.cc

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 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
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/pc/channel.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channel.cc
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc
index 2920af53d03887e880fe542b09e8dfa76a67da06..d549eee2019771ddb7023baf9356a362ad963252 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -346,6 +346,8 @@ void BaseChannel::ConnectToTransportChannel(TransportChannel* tc) {
tc->SignalReadPacket.connect(this, &BaseChannel::OnChannelRead);
tc->SignalReadyToSend.connect(this, &BaseChannel::OnReadyToSend);
tc->SignalDtlsState.connect(this, &BaseChannel::OnDtlsState);
+ tc->SignalBestConnectionChanged.connect(
+ this, &BaseChannel::OnBestConnectionChanged);
}
void BaseChannel::DisconnectFromTransportChannel(TransportChannel* tc) {
@@ -504,6 +506,12 @@ void BaseChannel::OnDtlsState(TransportChannel* channel,
}
}
+void BaseChannel::OnBestConnectionChanged(TransportChannel* channel,
+ Connection* best_connection) {
+ ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_);
+ media_channel()->OnBestConnectionChanged(best_connection);
+}
+
void BaseChannel::SetReadyToSend(bool rtcp, bool ready) {
if (rtcp) {
rtcp_ready_to_send_ = ready;
« webrtc/p2p/base/p2ptransportchannel.cc ('K') | « webrtc/pc/channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698