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

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

Issue 1996693002: Fire a signal when the transport channel state changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Changed signal name to SignalStateChanged Created 4 years, 7 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') | no next file » | 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 968faee7bd1ba4b82a9ebb52cb5aee24f806b036..6aafa9e3dbd293477c4aa78aee5ba888841ee344 100644
--- a/webrtc/p2p/quic/quictransportchannel.cc
+++ b/webrtc/p2p/quic/quictransportchannel.cc
@@ -145,8 +145,8 @@ QuicTransportChannel::QuicTransportChannel(TransportChannelImpl* channel)
&QuicTransportChannel::OnRouteChange);
channel_->SignalSelectedCandidatePairChanged.connect(
this, &QuicTransportChannel::OnSelectedCandidatePairChanged);
- channel_->SignalConnectionRemoved.connect(
- this, &QuicTransportChannel::OnConnectionRemoved);
+ channel_->SignalStateChanged.connect(
+ this, &QuicTransportChannel::OnChannelStateChanged);
channel_->SignalReceivingState.connect(
this, &QuicTransportChannel::OnReceivingState);
@@ -401,9 +401,10 @@ void QuicTransportChannel::OnSelectedCandidatePairChanged(
last_sent_packet_id);
}
-void QuicTransportChannel::OnConnectionRemoved(TransportChannelImpl* channel) {
+void QuicTransportChannel::OnChannelStateChanged(
+ TransportChannelImpl* channel) {
ASSERT(channel == channel_.get());
- SignalConnectionRemoved(this);
+ SignalStateChanged(this);
}
bool QuicTransportChannel::MaybeStartQuic() {
« no previous file with comments | « webrtc/p2p/quic/quictransportchannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698