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

Unified Diff: content/renderer/p2p/ipc_socket_factory.cc

Issue 1345583004: Wire up transport sequence number and send time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address change in libjingle 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: content/renderer/p2p/ipc_socket_factory.cc
diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc
index d61f3143ec70bed11b8c1d23c7e37ab886beda11..97de7d71a52b88b219c019132c7a34abd795119e 100644
--- a/content/renderer/p2p/ipc_socket_factory.cc
+++ b/content/renderer/p2p/ipc_socket_factory.cc
@@ -609,6 +609,14 @@ void IpcPacketSocket::OnSendComplete(const P2PSendPacketMetrics& send_metrics) {
in_flight_packet_records_.pop_front();
TraceSendThrottlingState();
+ int64_t send_time_ms = -1;
+ if (send_metrics.rtc_packet_id >= 0) {
+ send_time_ms = (send_metrics.send_time - base::TimeTicks::UnixEpoch())
+ .InMilliseconds();
+ }
+ SignalSentPacket(this, rtc::SentPacket(send_metrics.rtc_packet_id,
+ send_time_ms));
+
if (writable_signal_expected_ && send_bytes_available_ > 0) {
WebRtcLogMessage(base::StringPrintf(
"IpcPacketSocket: sending is unblocked. %d packets in flight.",
« content/browser/renderer_host/p2p/socket_host_udp.cc ('K') | « content/common/p2p_socket_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698