| 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_STATS_H_ | 5 #ifndef MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
| 6 #define MEDIA_CAST_LOGGING_LOGGING_STATS_H_ | 6 #define MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "media/cast/logging/logging_defines.h" | 10 #include "media/cast/logging/logging_defines.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 CastLoggingEvent event, | 40 CastLoggingEvent event, |
| 41 uint32 rtp_timestamp, | 41 uint32 rtp_timestamp, |
| 42 uint32 frame_id, | 42 uint32 frame_id, |
| 43 uint16 packet_id, | 43 uint16 packet_id, |
| 44 uint16 max_packet_id, | 44 uint16 max_packet_id, |
| 45 size_t size); | 45 size_t size); |
| 46 | 46 |
| 47 void InsertGenericEvent(const base::TimeTicks& time_of_event, | 47 void InsertGenericEvent(const base::TimeTicks& time_of_event, |
| 48 CastLoggingEvent event, int value); | 48 CastLoggingEvent event, int value); |
| 49 | 49 |
| 50 FrameStatsMap GetFrameStatsData() const; | 50 FrameStatsMap GetFrameStatsData(EventMediaType media_type) const; |
| 51 | 51 |
| 52 PacketStatsMap GetPacketStatsData() const; | 52 PacketStatsMap GetPacketStatsData(EventMediaType media_type) const; |
| 53 | 53 |
| 54 GenericStatsMap GetGenericStatsData() const; | 54 GenericStatsMap GetGenericStatsData() const; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 void InsertBaseFrameEvent(const base::TimeTicks& time_of_event, | 57 void InsertBaseFrameEvent(const base::TimeTicks& time_of_event, |
| 58 CastLoggingEvent event, | 58 CastLoggingEvent event, |
| 59 uint32 frame_id, | 59 uint32 frame_id, |
| 60 uint32 rtp_timestamp); | 60 uint32 rtp_timestamp); |
| 61 | 61 |
| 62 FrameStatsMap frame_stats_; | 62 FrameStatsMap frame_stats_; |
| 63 PacketStatsMap packet_stats_; | 63 PacketStatsMap packet_stats_; |
| 64 GenericStatsMap generic_stats_; | 64 GenericStatsMap generic_stats_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(LoggingStats); | 66 DISALLOW_COPY_AND_ASSIGN(LoggingStats); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace cast | 69 } // namespace cast |
| 70 } // namespace media | 70 } // namespace media |
| 71 | 71 |
| 72 #endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_ | 72 #endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
| 73 | 73 |
| OLD | NEW |