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

Unified Diff: media/cast/net/rtp/receiver_stats.h

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 5 years 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 | « media/cast/net/rtp/frame_buffer_unittest.cc ('k') | media/cast/net/rtp/receiver_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtp/receiver_stats.h
diff --git a/media/cast/net/rtp/receiver_stats.h b/media/cast/net/rtp/receiver_stats.h
index 817c2dab9a86d00a164807b5103e8ffb95d17968..534147c08bd893b5f0bbe7afbf85e735261c645f 100644
--- a/media/cast/net/rtp/receiver_stats.h
+++ b/media/cast/net/rtp/receiver_stats.h
@@ -10,18 +10,20 @@
#include "base/macros.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
+#include "media/cast/common/rtp_time.h"
#include "media/cast/net/rtcp/rtcp.h"
#include "media/cast/net/rtp/rtp_defines.h"
namespace media {
namespace cast {
+// TODO(miu): Document this class.
class ReceiverStats {
public:
explicit ReceiverStats(base::TickClock* clock);
RtpReceiverStatistics GetStatistics();
- void UpdateStatistics(const RtpCastHeader& header);
+ void UpdateStatistics(const RtpCastHeader& header, int rtp_timebase);
private:
base::TickClock* const clock_; // Not owned by this class.
@@ -31,7 +33,7 @@ class ReceiverStats {
uint16_t max_sequence_number_;
uint32_t total_number_packets_;
uint16_t sequence_number_cycles_;
- base::TimeDelta last_received_timestamp_;
+ RtpTimeTicks last_received_rtp_timestamp_;
base::TimeTicks last_received_packet_time_;
base::TimeDelta jitter_;
« no previous file with comments | « media/cast/net/rtp/frame_buffer_unittest.cc ('k') | media/cast/net/rtp/receiver_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698