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

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

Issue 1842093002: Add the last_sent_packet_id to the candidate pair change signal (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 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 8cb1ffe8bc25d7b0380eadb8ff9fe5c117f3393a..eafbb6d172ba4422b7574baa4af211109975eeab 100644
--- a/webrtc/p2p/base/p2ptransportchannel.cc
+++ b/webrtc/p2p/base/p2ptransportchannel.cc
@@ -983,6 +983,7 @@ int P2PTransportChannel::SendPacket(const char *data, size_t len,
return -1;
}
+ last_sent_packet_id_ = options.packet_id;
int sent = best_connection_->Send(data, len, options);
if (sent <= 0) {
ASSERT(sent < 0);
@@ -1168,7 +1169,8 @@ void P2PTransportChannel::SwitchBestConnectionTo(Connection* conn) {
}
// TODO(honghaiz): rename best_connection_ with selected_connection_ or
// selected_candidate pair_.
- SignalSelectedCandidatePairChanged(this, best_connection_);
+ SignalSelectedCandidatePairChanged(this, best_connection_,
+ last_sent_packet_id_);
}
// Warning: UpdateState should eventually be called whenever a connection

Powered by Google App Engine
This is Rietveld 408576698