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 22 matching lines...) Expand all Loading... |
33 PACKET_SENT_TO_NETWORK, | 33 PACKET_SENT_TO_NETWORK, |
34 PACKET_RETRANSMITTED, | 34 PACKET_RETRANSMITTED, |
35 // Receiver side packet events. | 35 // Receiver side packet events. |
36 PACKET_RECEIVED, | 36 PACKET_RECEIVED, |
37 kNumOfLoggingEvents = PACKET_RECEIVED | 37 kNumOfLoggingEvents = PACKET_RECEIVED |
38 }; | 38 }; |
39 | 39 |
40 const char* CastLoggingToString(CastLoggingEvent event); | 40 const char* CastLoggingToString(CastLoggingEvent event); |
41 | 41 |
42 // CastLoggingEvent are classified into one of three following types. | 42 // CastLoggingEvent are classified into one of three following types. |
43 enum EventMediaType { AUDIO_EVENT, VIDEO_EVENT, UNKNOWN_EVENT }; | 43 enum EventMediaType { |
| 44 AUDIO_EVENT, |
| 45 VIDEO_EVENT, |
| 46 UNKNOWN_EVENT, |
| 47 EVENT_MEDIA_TYPE_LAST = UNKNOWN_EVENT |
| 48 }; |
44 | 49 |
45 struct FrameEvent { | 50 struct FrameEvent { |
46 FrameEvent(); | 51 FrameEvent(); |
47 ~FrameEvent(); | 52 ~FrameEvent(); |
48 | 53 |
49 RtpTimestamp rtp_timestamp; | 54 RtpTimestamp rtp_timestamp; |
50 uint32 frame_id; | 55 uint32 frame_id; |
51 | 56 |
52 // Size of encoded frame. Only set for FRAME_ENCODED event. | 57 // Size of encoded frame. Only set for FRAME_ENCODED event. |
53 size_t size; | 58 size_t size; |
(...skipping 29 matching lines...) Expand all Loading... |
83 // Time of event logged. | 88 // Time of event logged. |
84 base::TimeTicks timestamp; | 89 base::TimeTicks timestamp; |
85 CastLoggingEvent type; | 90 CastLoggingEvent type; |
86 EventMediaType media_type; | 91 EventMediaType media_type; |
87 }; | 92 }; |
88 | 93 |
89 } // namespace cast | 94 } // namespace cast |
90 } // namespace media | 95 } // namespace media |
91 | 96 |
92 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ | 97 #endif // MEDIA_CAST_LOGGING_LOGGING_DEFINES_H_ |
OLD | NEW |