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

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

Issue 70713002: Cast: Restructure RTCP interface to better fit our usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing line lost in merge Created 7 years, 1 month 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/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtcp/rtcp_defines.h
diff --git a/media/cast/rtcp/rtcp_defines.h b/media/cast/rtcp/rtcp_defines.h
index c02b0997946313c82cff04e9ddb9731f5a385ac3..8a8ac74b52848c541fceafddd2f2a3117f7d97f8 100644
--- a/media/cast/rtcp/rtcp_defines.h
+++ b/media/cast/rtcp/rtcp_defines.h
@@ -11,10 +11,12 @@
#include "media/cast/cast_config.h"
#include "media/cast/cast_defines.h"
+#include "media/cast/logging/logging_defines.h"
namespace media {
namespace cast {
+// Handle the per frame ACK and NACK messages.
class RtcpCastMessage {
public:
explicit RtcpCastMessage(uint32 media_ssrc);
@@ -25,6 +27,40 @@ class RtcpCastMessage {
MissingFramesAndPacketsMap missing_frames_and_packets_;
};
+// Log messages form sender to receiver.
+enum RtcpSenderFrameStatus {
+ kRtcpSenderFrameStatusUnknown = 0,
+ kRtcpSenderFrameStatusDroppedByEncoder = 1,
+ kRtcpSenderFrameStatusDroppedByFlowControl = 2,
+ kRtcpSenderFrameStatusSentToNetwork = 3,
+};
+
+struct RtcpSenderFrameLogMessage {
+ RtcpSenderFrameStatus frame_status;
+ uint32 rtp_timestamp;
+};
+
+typedef std::list<RtcpSenderFrameLogMessage> RtcpSenderLogMessage;
+
+// Log messages from receiver to sender.
+struct RtcpReceiverEventLogMessage {
+ CastLoggingEvent type;
+ base::TimeTicks event_timestamp;
+ base::TimeDelta delay_delta;
+ uint16 packet_id;
+};
+
+class RtcpReceiverFrameLogMessage {
+ public:
+ RtcpReceiverFrameLogMessage();
+ ~RtcpReceiverFrameLogMessage();
+
+ uint32 rtp_timestamp;
+ std::list<RtcpReceiverEventLogMessage> event_log_messages;
+};
+
+typedef std::list<RtcpReceiverFrameLogMessage> RtcpReceiverLogMessage;
+
struct RtcpSenderInfo {
// First three members are used for lipsync.
// First two members are used for rtt.
« no previous file with comments | « media/cast/rtcp/rtcp.cc ('k') | media/cast/rtcp/rtcp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698