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

Unified Diff: media/cast/logging/logging_defines.cc

Issue 136903003: cast: Wire upp logging to be sent over RTCP between receiver and sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT Created 6 years, 11 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/logging/logging_defines.h ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/logging_defines.cc
diff --git a/media/cast/logging/logging_defines.cc b/media/cast/logging/logging_defines.cc
index 4b00edc1e2944824a40159f9e4099dafd10fbfd6..8766680ac084c38ea547eb7cd9a827e427169017 100644
--- a/media/cast/logging/logging_defines.cc
+++ b/media/cast/logging/logging_defines.cc
@@ -9,16 +9,22 @@
namespace media {
namespace cast {
-CastLoggingConfig::CastLoggingConfig()
- : enable_raw_data_collection(false),
+CastLoggingConfig::CastLoggingConfig(bool sender)
+ : is_sender(sender),
+ enable_raw_data_collection(false),
enable_stats_data_collection(false),
enable_uma_stats(false),
enable_tracing(false) {}
CastLoggingConfig::~CastLoggingConfig() {}
-CastLoggingConfig GetDefaultCastLoggingConfig() {
- CastLoggingConfig config;
+CastLoggingConfig GetDefaultCastSenderLoggingConfig() {
+ CastLoggingConfig config(true);
+ return config;
+}
+
+CastLoggingConfig GetDefaultCastReceiverLoggingConfig() {
+ CastLoggingConfig config(false);
return config;
}
@@ -34,12 +40,14 @@ std::string CastLoggingToString(CastLoggingEvent event) {
return "PacketLoss";
case(kJitterMs):
return "JitterMs";
- case(kAckReceived):
- return "AckReceived";
+ case(kVideoAckReceived):
+ return "VideoAckReceived";
case(kRembBitrate):
return "RembBitrate";
- case(kAckSent):
- return "AckSent";
+ case(kAudioAckSent):
+ return "AudioAckSent";
+ case(kVideoAckSent):
+ return "VideoAckSent";
case(kAudioFrameReceived):
return "AudioFrameReceived";
case(kAudioFrameCaptured):
@@ -68,8 +76,10 @@ std::string CastLoggingToString(CastLoggingEvent event) {
return "PacketSentToNetwork";
case(kPacketRetransmitted):
return "PacketRetransmited";
- case(kPacketReceived):
- return "PacketReceived";
+ case(kAudioPacketReceived):
+ return "AudioPacketReceived";
+ case(kVideoPacketReceived):
+ return "VideoPacketReceived";
case(kDuplicatePacketReceived):
return "DuplicatePacketReceived";
default:
@@ -90,6 +100,9 @@ PacketEvent::~PacketEvent() {}
GenericEvent::GenericEvent() {}
GenericEvent::~GenericEvent() {}
+ReceiverRtcpEvent::ReceiverRtcpEvent() {}
+ReceiverRtcpEvent::~ReceiverRtcpEvent() {}
+
FrameLogStats::FrameLogStats()
: framerate_fps(0),
bitrate_kbps(0),
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698