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

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: Merge with head 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
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel.cc
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc
index fbac24768e0280d31323e72bbc1f76986fb90cd8..66532411b29f5241c6b0f163d87c91d7ba9cbe2a 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);
@@ -1176,7 +1177,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
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698