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

Unified Diff: media/cast/net/rtcp/rtcp_utility.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: 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
Index: media/cast/net/rtcp/rtcp_utility.h
diff --git a/media/cast/net/rtcp/rtcp_utility.h b/media/cast/net/rtcp/rtcp_utility.h
index a0a2abff9839672ec297927bccedf87d036a8bff..8850b94b0c8e37962ea6d3aeabb8ee89ec952817 100644
--- a/media/cast/net/rtcp/rtcp_utility.h
+++ b/media/cast/net/rtcp/rtcp_utility.h
@@ -84,8 +84,8 @@ class RtcpParser {
bool ParseExtendedReportDelaySinceLastReceiverReport(
base::BigEndianReader* reader);
- uint32 local_ssrc_;
- uint32 remote_ssrc_;
+ const uint32 local_ssrc_;
+ const uint32 remote_ssrc_;
bool has_sender_report_;
RtcpSenderInfo sender_report_;
@@ -103,6 +103,11 @@ class RtcpParser {
bool has_receiver_reference_time_report_;
RtcpReceiverReferenceTimeReport receiver_reference_time_report_;
+ // Tracks recently-parsed RTP timestamps so that the truncated values can be
+ // re-expanded into full-form.
+ RtpTimeTicks last_parsed_sr_rtp_timestamp_;
+ RtpTimeTicks last_parsed_frame_log_rtp_timestamp_;
+
DISALLOW_COPY_AND_ASSIGN(RtcpParser);
};

Powered by Google App Engine
This is Rietveld 408576698