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

Unified Diff: webrtc/p2p/base/port.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/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index ce2855106caa8c9384271f3b1687c343061a5ce9..4af830c0bbe5b640c6ca0309e9f7ffdcfb05fdc9 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -312,6 +312,13 @@ void Port::OnReadPacket(
}
}
+void Port::OnPacketSent(const rtc::SocketAddress& addr,
+ const rtc::SentPacket& sent_packet) {
+ Connection* connection = GetConnection(addr);
+ if (connection != nullptr)
+ connection->OnPacketSent(sent_packet);
pthatcher1 2015/10/05 18:30:14 {}s please
pthatcher1 2015/10/05 18:30:14 Do we really need to know which connection it went
stefan-webrtc 2015/10/06 13:00:19 I think this is a good idea, now that I begin unde
pthatcher1 2015/10/06 20:23:55 Yes.
stefan-webrtc 2015/10/07 16:55:25 Done.
+}
+
void Port::OnReadyToSend() {
AddressMap::iterator iter = connections_.begin();
for (; iter != connections_.end(); ++iter) {
@@ -983,6 +990,10 @@ void Connection::OnReadPacket(
}
}
+void Connection::OnPacketSent(const rtc::SentPacket& sent_packet) {
+ SignalSentPacket(this, sent_packet);
+}
+
void Connection::OnReadyToSend() {
if (write_state_ == STATE_WRITABLE) {
SignalReadyToSend(this);

Powered by Google App Engine
This is Rietveld 408576698