summaryrefslogtreecommitdiff
path: root/media/cast/logging/logging_defines.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/cast/logging/logging_defines.cc')
-rw-r--r--media/cast/logging/logging_defines.cc30
1 files changed, 26 insertions, 4 deletions
diff --git a/media/cast/logging/logging_defines.cc b/media/cast/logging/logging_defines.cc
index 3f502f9eaa..85abe7c5d4 100644
--- a/media/cast/logging/logging_defines.cc
+++ b/media/cast/logging/logging_defines.cc
@@ -9,20 +9,40 @@
namespace media {
namespace cast {
+CastLoggingConfig::CastLoggingConfig()
+ : enable_data_collection(false),
+ enable_uma_stats(false),
+ enable_tracing(false) {}
+
+CastLoggingConfig::~CastLoggingConfig() {}
+
+CastLoggingConfig GetDefaultCastLoggingConfig() {
+ CastLoggingConfig config;
+ return config;
+}
+
std::string CastLoggingToString(CastLoggingEvent event) {
switch (event) {
- case(kRtt):
- return "Rtt";
+ case(kUnknown):
+ // Can happen if the sender and receiver of RTCP log messages are not
+ // aligned.
+ return "Unknown";
+ case(kRttMs):
+ return "RttMs";
case(kPacketLoss):
return "PacketLoss";
- case(kJitter):
- return "Jitter";
+ case(kJitterMs):
+ return "JitterMs";
case(kAckReceived):
return "AckReceived";
+ case(kRembBitrate):
+ return "RembBitrate";
case(kAckSent):
return "AckSent";
case(kLastEvent):
return "LastEvent";
+ case(kAudioFrameReceived):
+ return "AudioFrameReceived";
case(kAudioFrameCaptured):
return "AudioFrameCaptured";
case(kAudioFrameEncoded):
@@ -33,6 +53,8 @@ std::string CastLoggingToString(CastLoggingEvent event) {
return "AudioFrameDecoded";
case(kVideoFrameCaptured):
return "VideoFrameCaptured";
+ case(kVideoFrameReceived):
+ return "VideoFrameReceived";
case(kVideoFrameSentToEncoder):
return "VideoFrameSentToEncoder";
case(kVideoFrameEncoded):