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

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/quic/quictransportchannel.h ('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..0529c59fe17a7f7e2a2011b27ba133b0353afa4d 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -346,6 +346,7 @@ void BaseChannel::ConnectToTransportChannel(TransportChannel* tc) {
tc->SignalReadPacket.connect(this, &BaseChannel::OnChannelRead);
tc->SignalReadyToSend.connect(this, &BaseChannel::OnReadyToSend);
tc->SignalDtlsState.connect(this, &BaseChannel::OnDtlsState);
+ tc->SignalNetworkChanged.connect(this, &BaseChannel::OnNetworkChanged);
}
void BaseChannel::DisconnectFromTransportChannel(TransportChannel* tc) {
@@ -504,6 +505,13 @@ void BaseChannel::OnDtlsState(TransportChannel* channel,
}
}
+void BaseChannel::OnNetworkChanged(TransportChannel* channel,
+ int local_network_id,
+ int remote_network_id) {
+ ASSERT(channel == transport_channel_ || channel == rtcp_transport_channel_);
+ media_channel()->OnNetworkChanged(local_network_id, remote_network_id);
+}
+
void BaseChannel::SetReadyToSend(bool rtcp, bool ready) {
if (rtcp) {
rtcp_ready_to_send_ = ready;
« webrtc/p2p/quic/quictransportchannel.h ('K') | « webrtc/pc/channel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698