Index: webrtc/p2p/quic/quictransportchannel.cc |
diff --git a/webrtc/p2p/quic/quictransportchannel.cc b/webrtc/p2p/quic/quictransportchannel.cc |
index eae936ba53fa7fe3587a1f43a0251d2106158bcf..aa15fcb7b6aec146f322c4754b0572ed01f90bd9 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_->SignalBestConnectionChanged.connect( |
+ this, &QuicTransportChannel::OnBestConnectionChanged); |
channel_->SignalConnectionRemoved.connect( |
this, &QuicTransportChannel::OnConnectionRemoved); |
channel_->SignalReceivingState.connect( |
@@ -382,6 +384,13 @@ void QuicTransportChannel::OnRouteChange(TransportChannel* channel, |
SignalRouteChange(this, candidate); |
} |
+void QuicTransportChannel::OnBestConnectionChanged( |
+ TransportChannel* channel, |
+ Connection* best_connection) { |
+ ASSERT(channel == channel_); |
+ SignalBestConnectionChanged(this, best_connection); |
+} |
+ |
void QuicTransportChannel::OnConnectionRemoved(TransportChannelImpl* channel) { |
ASSERT(channel == channel_); |
SignalConnectionRemoved(this); |