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

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: Matching changes in .h file. Created 5 years, 3 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
« content/common/p2p_socket_type.h ('K') | « content/common/p2p_socket_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..85f41deac0b8ca746835508cf93b7345f669dfab 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.transport_sequence_number >= 0) {
+ send_time_ms = (send_metrics.send_time - base::TimeTicks::UnixEpoch())
+ .InMilliseconds();
+ }
+ SignalPacketSent(this, rtc::SentPacket(send_metrics.transport_sequence_number,
+ send_time_ms));
+
if (writable_signal_expected_ && send_bytes_available_ > 0) {
WebRtcLogMessage(base::StringPrintf(
"IpcPacketSocket: sending is unblocked. %d packets in flight.",
« content/common/p2p_socket_type.h ('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