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

Unified Diff: webrtc/p2p/quic/quictransportchannel.cc

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Removed changes in call dir and leave that in a separate CL. 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
« no previous file with comments | « webrtc/p2p/quic/quictransportchannel.h ('k') | webrtc/pc/channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/quic/quictransportchannel.cc
diff --git a/webrtc/p2p/quic/quictransportchannel.cc b/webrtc/p2p/quic/quictransportchannel.cc
index eae936ba53fa7fe3587a1f43a0251d2106158bcf..d0d6796cab4fb8fa96d4dbe310af171ddad52152 100644
--- a/webrtc/p2p/quic/quictransportchannel.cc
+++ b/webrtc/p2p/quic/quictransportchannel.cc
@@ -139,6 +139,8 @@ QuicTransportChannel::QuicTransportChannel(TransportChannelImpl* channel)
&QuicTransportChannel::OnRoleConflict);
channel_->SignalRouteChange.connect(this,
&QuicTransportChannel::OnRouteChange);
+ channel_->SignalSelectedCandidatePairChanged.connect(
+ this, &QuicTransportChannel::OnSelectedCandidatePairChanged);
channel_->SignalConnectionRemoved.connect(
this, &QuicTransportChannel::OnConnectionRemoved);
channel_->SignalReceivingState.connect(
@@ -382,6 +384,13 @@ void QuicTransportChannel::OnRouteChange(TransportChannel* channel,
SignalRouteChange(this, candidate);
}
+void QuicTransportChannel::OnSelectedCandidatePairChanged(
+ TransportChannel* channel,
+ CandidatePairInterface* selected_candidate_pair) {
+ ASSERT(channel == channel_);
+ SignalSelectedCandidatePairChanged(this, selected_candidate_pair);
+}
+
void QuicTransportChannel::OnConnectionRemoved(TransportChannelImpl* channel) {
ASSERT(channel == channel_);
SignalConnectionRemoved(this);
« no previous file with comments | « webrtc/p2p/quic/quictransportchannel.h ('k') | webrtc/pc/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698