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

Side by Side Diff: media/cast/logging/logging_defines.cc

Issue 83903002: Cast: Add capabity to parse receiver and sender log messages over RTCP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT 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 unified diff | Download patch
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/rtcp/rtcp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/logging/logging_defines.h" 5 #include "media/cast/logging/logging_defines.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace media { 9 namespace media {
10 namespace cast { 10 namespace cast {
11 11
12 CastLoggingConfig::CastLoggingConfig() 12 CastLoggingConfig::CastLoggingConfig()
13 : enable_data_collection(false), 13 : enable_data_collection(false),
14 enable_uma_stats(false), 14 enable_uma_stats(false),
15 enable_tracing(false) {} 15 enable_tracing(false) {}
16 16
17 CastLoggingConfig::~CastLoggingConfig() {} 17 CastLoggingConfig::~CastLoggingConfig() {}
18 18
19 CastLoggingConfig GetDefaultCastLoggingConfig() { 19 CastLoggingConfig GetDefaultCastLoggingConfig() {
20 CastLoggingConfig config; 20 CastLoggingConfig config;
21 return config; 21 return config;
22 } 22 }
23 23
24 std::string CastLoggingToString(CastLoggingEvent event) { 24 std::string CastLoggingToString(CastLoggingEvent event) {
25 switch (event) { 25 switch (event) {
26 case(kUnknown):
27 // Can happen if the sender and receiver of RTCP log messages are not
28 // aligned.
29 return "Unknown";
26 case(kRttMs): 30 case(kRttMs):
27 return "RttMs"; 31 return "RttMs";
28 case(kPacketLoss): 32 case(kPacketLoss):
29 return "PacketLoss"; 33 return "PacketLoss";
30 case(kJitterMs): 34 case(kJitterMs):
31 return "JitterMs"; 35 return "JitterMs";
32 case(kAckReceived): 36 case(kAckReceived):
33 return "AckReceived"; 37 return "AckReceived";
34 case(kRembBitrate): 38 case(kRembBitrate):
35 return "RembBitrate"; 39 return "RembBitrate";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 FrameLogStats::FrameLogStats() 92 FrameLogStats::FrameLogStats()
89 : framerate_fps(0), 93 : framerate_fps(0),
90 bitrate_kbps(0), 94 bitrate_kbps(0),
91 max_delay_ms(0), 95 max_delay_ms(0),
92 min_delay_ms(0), 96 min_delay_ms(0),
93 avg_delay_ms(0) {} 97 avg_delay_ms(0) {}
94 FrameLogStats::~FrameLogStats() {} 98 FrameLogStats::~FrameLogStats() {}
95 99
96 } // namespace cast 100 } // namespace cast
97 } // namespace media 101 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_defines.h ('k') | media/cast/rtcp/rtcp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698