Chromium Code Reviews| Index: webrtc/p2p/base/p2ptransportchannel.cc |
| diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc |
| index 1b7cb58756e0dc11bcc5abf63621c6787ef7380a..b0cfb6826f81a68b85af0e88034248218768e15a 100644 |
| --- a/webrtc/p2p/base/p2ptransportchannel.cc |
| +++ b/webrtc/p2p/base/p2ptransportchannel.cc |
| @@ -254,6 +254,8 @@ void P2PTransportChannel::AddConnection(Connection* connection) { |
| connection->set_receiving_timeout(receiving_timeout_); |
| connection->SignalReadPacket.connect( |
| this, &P2PTransportChannel::OnReadPacket); |
| + connection->SignalSentPacket.connect(this, |
| + &P2PTransportChannel::OnPacketSent); |
|
pthatcher1
2015/10/05 18:30:14
I think the OnX should have the same name as the S
stefan-webrtc
2015/10/07 16:55:25
Done. These should now all be aligned.
|
| connection->SignalReadyToSend.connect( |
| this, &P2PTransportChannel::OnReadyToSend); |
| connection->SignalStateChange.connect( |
| @@ -1356,6 +1358,13 @@ void P2PTransportChannel::OnReadPacket(Connection* connection, |
| } |
| } |
| +void P2PTransportChannel::OnPacketSent(Connection* connection, |
| + const rtc::SentPacket& sent_packet) { |
| + ASSERT(worker_thread_ == rtc::Thread::Current()); |
| + |
| + SignalSentPacket(this, sent_packet); |
| +} |
| + |
| void P2PTransportChannel::OnReadyToSend(Connection* connection) { |
| if (connection == best_connection_ && writable()) { |
| SignalReadyToSend(this); |