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

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

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_FRAME_BUFFER_H_ 5 #ifndef MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_
6 #define MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ 6 #define MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "media/cast/common/rtp_time.h"
11 #include "media/cast/net/cast_transport_config.h" 12 #include "media/cast/net/cast_transport_config.h"
12 #include "media/cast/net/rtp/rtp_defines.h" 13 #include "media/cast/net/rtp/rtp_defines.h"
13 14
14 namespace media { 15 namespace media {
15 namespace cast { 16 namespace cast {
16 17
17 typedef std::map<uint16, std::vector<uint8> > PacketMap; 18 typedef std::map<uint16, std::vector<uint8> > PacketMap;
18 19
19 class FrameBuffer { 20 class FrameBuffer {
20 public: 21 public:
(...skipping 18 matching lines...) Expand all
39 40
40 private: 41 private:
41 uint32 frame_id_; 42 uint32 frame_id_;
42 uint16 max_packet_id_; 43 uint16 max_packet_id_;
43 uint16 num_packets_received_; 44 uint16 num_packets_received_;
44 uint16 max_seen_packet_id_; 45 uint16 max_seen_packet_id_;
45 uint16 new_playout_delay_ms_; 46 uint16 new_playout_delay_ms_;
46 bool is_key_frame_; 47 bool is_key_frame_;
47 size_t total_data_size_; 48 size_t total_data_size_;
48 uint32 last_referenced_frame_id_; 49 uint32 last_referenced_frame_id_;
49 uint32 rtp_timestamp_; 50 RtpTimeTicks rtp_timestamp_;
50 PacketMap packets_; 51 PacketMap packets_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); 53 DISALLOW_COPY_AND_ASSIGN(FrameBuffer);
53 }; 54 };
54 55
55 } // namespace cast 56 } // namespace cast
56 } // namespace media 57 } // namespace media
57 58
58 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ 59 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698