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

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: Speculative workaround fix for win8_chromium_ng compile error. Created 4 years, 11 months 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "media/cast/common/rtp_time.h"
15 #include "media/cast/net/cast_transport_config.h" 16 #include "media/cast/net/cast_transport_config.h"
16 #include "media/cast/net/rtp/rtp_defines.h" 17 #include "media/cast/net/rtp/rtp_defines.h"
17 18
18 namespace media { 19 namespace media {
19 namespace cast { 20 namespace cast {
20 21
21 typedef std::map<uint16_t, std::vector<uint8_t>> PacketMap; 22 typedef std::map<uint16_t, std::vector<uint8_t>> PacketMap;
22 23
23 class FrameBuffer { 24 class FrameBuffer {
24 public: 25 public:
(...skipping 20 matching lines...) Expand all
45 46
46 private: 47 private:
47 uint32_t frame_id_; 48 uint32_t frame_id_;
48 uint16_t max_packet_id_; 49 uint16_t max_packet_id_;
49 uint16_t num_packets_received_; 50 uint16_t num_packets_received_;
50 uint16_t max_seen_packet_id_; 51 uint16_t max_seen_packet_id_;
51 uint16_t new_playout_delay_ms_; 52 uint16_t new_playout_delay_ms_;
52 bool is_key_frame_; 53 bool is_key_frame_;
53 size_t total_data_size_; 54 size_t total_data_size_;
54 uint32_t last_referenced_frame_id_; 55 uint32_t last_referenced_frame_id_;
55 uint32_t rtp_timestamp_; 56 RtpTimeTicks rtp_timestamp_;
56 PacketMap packets_; 57 PacketMap packets_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(FrameBuffer); 59 DISALLOW_COPY_AND_ASSIGN(FrameBuffer);
59 }; 60 };
60 61
61 } // namespace cast 62 } // namespace cast
62 } // namespace media 63 } // namespace media
63 64
64 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_ 65 #endif // MEDIA_CAST_NET_RTP_FRAME_BUFFER_H_
OLDNEW
« no previous file with comments | « media/cast/net/rtcp/rtcp_utility_unittest.cc ('k') | media/cast/net/rtp/frame_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698