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

Unified Diff: media/cast/net/rtcp/rtcp_defines.h

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 | « media/cast/net/rtcp/rtcp.cc ('k') | media/cast/net/rtcp/rtcp_defines.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_defines.h
diff --git a/media/cast/net/rtcp/rtcp_defines.h b/media/cast/net/rtcp/rtcp_defines.h
index 28f69e18355b45349fa977a12362a1007c182ddd..0207edc7ddb029e585f5c5c840e802adb241a72e 100644
--- a/media/cast/net/rtcp/rtcp_defines.h
+++ b/media/cast/net/rtcp/rtcp_defines.h
@@ -21,19 +21,15 @@ static const size_t kRtcpReceiverFrameLogSize = 8;
static const size_t kRtcpReceiverEventLogSize = 4;
// Handle the per frame ACK and NACK messages.
-class RtcpCastMessage {
- public:
- explicit RtcpCastMessage(uint32 media_ssrc);
+struct RtcpCastMessage {
+ explicit RtcpCastMessage(uint32 ssrc);
+ RtcpCastMessage();
~RtcpCastMessage();
- void Copy(const RtcpCastMessage& cast_message);
-
- uint32 media_ssrc_;
- uint32 ack_frame_id_;
- uint16 target_delay_ms_;
- MissingFramesAndPacketsMap missing_frames_and_packets_;
-
- DISALLOW_COPY_AND_ASSIGN(RtcpCastMessage);
+ uint32 media_ssrc;
+ uint32 ack_frame_id;
+ uint16 target_delay_ms;
+ MissingFramesAndPacketsMap missing_frames_and_packets;
};
// Log messages from receiver to sender.
@@ -127,6 +123,24 @@ struct RtcpEvent {
uint16 packet_id;
};
+struct RtcpRttReport {
+ RtcpRttReport();
+ ~RtcpRttReport();
+
+ base::TimeDelta rtt;
+ base::TimeDelta avg_rtt;
+ base::TimeDelta min_rtt;
+ base::TimeDelta max_rtt;
+};
+
+typedef base::Callback<void(const RtcpCastMessage&)> RtcpCastMessageCallback;
+typedef base::Callback<void(base::TimeDelta,
+ base::TimeDelta,
+ base::TimeDelta,
+ base::TimeDelta)> RtcpRttCallback;
+typedef
+base::Callback<void(const RtcpReceiverLogMessage&)> RtcpLogMessageCallback;
+
} // namespace cast
} // namespace media
« no previous file with comments | « media/cast/net/rtcp/rtcp.cc ('k') | media/cast/net/rtcp/rtcp_defines.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698