| 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 14 matching lines...) Expand all Loading... |
| 25 FRAME_CAPTURE_END, | 25 FRAME_CAPTURE_END, |
| 26 FRAME_ENCODED, | 26 FRAME_ENCODED, |
| 27 FRAME_ACK_RECEIVED, | 27 FRAME_ACK_RECEIVED, |
| 28 // Receiver side frame events. | 28 // Receiver side frame events. |
| 29 FRAME_ACK_SENT, | 29 FRAME_ACK_SENT, |
| 30 FRAME_DECODED, | 30 FRAME_DECODED, |
| 31 FRAME_PLAYOUT, | 31 FRAME_PLAYOUT, |
| 32 // Sender side packet events. | 32 // Sender side packet events. |
| 33 PACKET_SENT_TO_NETWORK, | 33 PACKET_SENT_TO_NETWORK, |
| 34 PACKET_RETRANSMITTED, | 34 PACKET_RETRANSMITTED, |
| 35 PACKET_RTX_REJECTED, |
| 35 // Receiver side packet events. | 36 // Receiver side packet events. |
| 36 PACKET_RECEIVED, | 37 PACKET_RECEIVED, |
| 37 kNumOfLoggingEvents = PACKET_RECEIVED | 38 kNumOfLoggingEvents = PACKET_RECEIVED |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 const char* CastLoggingToString(CastLoggingEvent event); | 41 const char* CastLoggingToString(CastLoggingEvent event); |
| 41 | 42 |
| 42 // CastLoggingEvent are classified into one of three following types. | 43 // CastLoggingEvent are classified into one of three following types. |
| 43 enum EventMediaType { | 44 enum EventMediaType { |
| 44 AUDIO_EVENT, | 45 AUDIO_EVENT, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Time of event logged. | 89 // Time of event logged. |
| 89 base::TimeTicks timestamp; | 90 base::TimeTicks timestamp; |
| 90 CastLoggingEvent type; | 91 CastLoggingEvent type; |
| 91 EventMediaType media_type; | 92 EventMediaType media_type; |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace cast | 95 } // namespace cast |
| 95 } // namespace media | 96 } // namespace media |
| 96 | 97 |
| 97 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 98 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
| OLD | NEW |