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

Side by Side Diff: media/cast/net/rtp/receiver_stats.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NET_RTP_RECEIVER_STATS_H_ 5 #ifndef MEDIA_CAST_NET_RTP_RECEIVER_STATS_H_
6 #define MEDIA_CAST_NET_RTP_RECEIVER_STATS_H_ 6 #define MEDIA_CAST_NET_RTP_RECEIVER_STATS_H_
7 7
8 #include "base/time/tick_clock.h" 8 #include "base/time/tick_clock.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/cast/net/rtcp/rtcp.h" 10 #include "media/cast/net/rtcp/rtcp.h"
11 #include "media/cast/net/rtp/rtp_defines.h" 11 #include "media/cast/net/rtp/rtp_defines.h"
12 12
13 namespace media { 13 namespace media {
14 namespace cast { 14 namespace cast {
15 15
16 class ReceiverStats { 16 class ReceiverStats {
17 public: 17 public:
18 explicit ReceiverStats(base::TickClock* clock); 18 explicit ReceiverStats(base::TickClock* clock);
19 19
20 RtpReceiverStatistics GetStatistics(); 20 RtpReceiverStatistics GetStatistics();
21 void UpdateStatistics(const RtpCastHeader& header); 21 void UpdateStatistics(const RtpCastHeader& header);
22 22
23 private: 23 private:
24 base::TickClock* const clock_; // Not owned by this class. 24 base::TickClock* const clock_; // Not owned by this class.
25 25
26 // Global metrics. 26 // Global metrics.
27 uint16 min_sequence_number_; 27 uint16_t min_sequence_number_;
28 uint16 max_sequence_number_; 28 uint16_t max_sequence_number_;
29 uint32 total_number_packets_; 29 uint32_t total_number_packets_;
30 uint16 sequence_number_cycles_; 30 uint16_t sequence_number_cycles_;
31 base::TimeDelta last_received_timestamp_; 31 base::TimeDelta last_received_timestamp_;
32 base::TimeTicks last_received_packet_time_; 32 base::TimeTicks last_received_packet_time_;
33 base::TimeDelta jitter_; 33 base::TimeDelta jitter_;
34 34
35 // Intermediate metrics - between RTCP reports. 35 // Intermediate metrics - between RTCP reports.
36 int interval_min_sequence_number_; 36 int interval_min_sequence_number_;
37 int interval_number_packets_; 37 int interval_number_packets_;
38 int interval_wrap_count_; 38 int interval_wrap_count_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(ReceiverStats); 40 DISALLOW_COPY_AND_ASSIGN(ReceiverStats);
41 }; 41 };
42 42
43 } // namespace cast 43 } // namespace cast
44 } // namespace media 44 } // namespace media
45 45
46 #endif // MEDIA_CAST_NET_RTP_RECEIVER_STATS_H_ 46 #endif // MEDIA_CAST_NET_RTP_RECEIVER_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698