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

Unified Diff: webrtc/p2p/base/p2ptransportchannel.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: No changes to const parameters. Created 5 years, 2 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
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);

Powered by Google App Engine
This is Rietveld 408576698