Chromium Code Reviews| Index: webrtc/p2p/base/dtlstransportchannel.cc |
| diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc |
| index 33b5b6f268e6cbc298f170b8504ca422116939d2..8d405a95125488c88be590afbcf9f1e06e7f1d18 100644 |
| --- a/webrtc/p2p/base/dtlstransportchannel.cc |
| +++ b/webrtc/p2p/base/dtlstransportchannel.cc |
| @@ -119,6 +119,8 @@ DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( |
| &DtlsTransportChannelWrapper::OnRoleConflict); |
| channel_->SignalRouteChange.connect(this, |
| &DtlsTransportChannelWrapper::OnRouteChange); |
| + channel_->SignalBestConnectionChanged.connect( |
| + this, &DtlsTransportChannelWrapper::OnBestConnectionChanged); |
| channel_->SignalConnectionRemoved.connect(this, |
| &DtlsTransportChannelWrapper::OnConnectionRemoved); |
| channel_->SignalReceivingState.connect(this, |
| @@ -634,6 +636,13 @@ void DtlsTransportChannelWrapper::OnRouteChange( |
| SignalRouteChange(this, candidate); |
| } |
| +void DtlsTransportChannelWrapper::OnBestConnectionChanged( |
| + TransportChannel* channel, |
| + Connection* best_connection) { |
| + ASSERT(channel == channel_); |
|
pthatcher1
2016/03/24 18:46:37
Same with the signal: SignalSelectedConnectionChan
honghaiz3
2016/03/24 22:37:12
Done.
|
| + SignalBestConnectionChanged(this, best_connection); |
| +} |
| + |
| void DtlsTransportChannelWrapper::OnConnectionRemoved( |
| TransportChannelImpl* channel) { |
| ASSERT(channel == channel_); |