| OLD | NEW |
| 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 #ifndef MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
| 6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 6 #define MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 bool enable_data_collection; | 22 bool enable_data_collection; |
| 23 bool enable_uma_stats; | 23 bool enable_uma_stats; |
| 24 bool enable_tracing; | 24 bool enable_tracing; |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 // By default, enable raw and stats data collection. Disable tracing and UMA. | 27 // By default, enable raw and stats data collection. Disable tracing and UMA. |
| 28 CastLoggingConfig GetDefaultCastLoggingConfig(); | 28 CastLoggingConfig GetDefaultCastLoggingConfig(); |
| 29 | 29 |
| 30 enum CastLoggingEvent { | 30 enum CastLoggingEvent { |
| 31 // Generic events. | 31 // Generic events. |
| 32 kUnknown, |
| 32 kRttMs, | 33 kRttMs, |
| 33 kPacketLoss, | 34 kPacketLoss, |
| 34 kJitterMs, | 35 kJitterMs, |
| 35 kAckReceived, | 36 kAckReceived, |
| 36 kRembBitrate, | 37 kRembBitrate, |
| 37 kAckSent, | 38 kAckSent, |
| 38 kLastEvent, | 39 kLastEvent, |
| 39 // Audio sender. | 40 // Audio sender. |
| 40 kAudioFrameReceived, | 41 kAudioFrameReceived, |
| 41 kAudioFrameCaptured, | 42 kAudioFrameCaptured, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 typedef std::map<CastLoggingEvent, GenericEvent> GenericRawMap; | 119 typedef std::map<CastLoggingEvent, GenericEvent> GenericRawMap; |
| 119 | 120 |
| 120 typedef std::map<CastLoggingEvent, linked_ptr<FrameLogStats > > FrameStatsMap; | 121 typedef std::map<CastLoggingEvent, linked_ptr<FrameLogStats > > FrameStatsMap; |
| 121 typedef std::map<CastLoggingEvent, double> PacketStatsMap; | 122 typedef std::map<CastLoggingEvent, double> PacketStatsMap; |
| 122 typedef std::map<CastLoggingEvent, double> GenericStatsMap; | 123 typedef std::map<CastLoggingEvent, double> GenericStatsMap; |
| 123 | 124 |
| 124 } // namespace cast | 125 } // namespace cast |
| 125 } // namespace media | 126 } // namespace media |
| 126 | 127 |
| 127 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 128 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
| OLD | NEW |