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

Side by Side Diff: media/cast/net/rtp/rtp_sender.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 // This file contains the interface to the cast RTP sender. 5 // This file contains the interface to the cast RTP sender.
6 6
7 #ifndef MEDIA_CAST_NET_RTP_RTP_SENDER_H_ 7 #ifndef MEDIA_CAST_NET_RTP_RTP_SENDER_H_
8 #define MEDIA_CAST_NET_RTP_RTP_SENDER_H_ 8 #define MEDIA_CAST_NET_RTP_RTP_SENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void SendFrame(const EncodedFrame& frame); 42 void SendFrame(const EncodedFrame& frame);
43 43
44 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets, 44 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets,
45 bool cancel_rtx_if_not_in_list, 45 bool cancel_rtx_if_not_in_list,
46 const DedupInfo& dedup_info); 46 const DedupInfo& dedup_info);
47 47
48 // Returns the total number of bytes sent to the socket when the specified 48 // Returns the total number of bytes sent to the socket when the specified
49 // frame was just sent. 49 // frame was just sent.
50 // Returns 0 if the frame cannot be found or the frame was only sent 50 // Returns 0 if the frame cannot be found or the frame was only sent
51 // partially. 51 // partially.
52 int64 GetLastByteSentForFrame(uint32 frame_id); 52 int64_t GetLastByteSentForFrame(uint32_t frame_id);
53 53
54 void CancelSendingFrames(const std::vector<uint32>& frame_ids); 54 void CancelSendingFrames(const std::vector<uint32_t>& frame_ids);
55 55
56 void ResendFrameForKickstart(uint32 frame_id, base::TimeDelta dedupe_window); 56 void ResendFrameForKickstart(uint32_t frame_id,
57 base::TimeDelta dedupe_window);
57 58
58 size_t send_packet_count() const { 59 size_t send_packet_count() const {
59 return packetizer_ ? packetizer_->send_packet_count() : 0; 60 return packetizer_ ? packetizer_->send_packet_count() : 0;
60 } 61 }
61 size_t send_octet_count() const { 62 size_t send_octet_count() const {
62 return packetizer_ ? packetizer_->send_octet_count() : 0; 63 return packetizer_ ? packetizer_->send_octet_count() : 0;
63 } 64 }
64 uint32 ssrc() const { return config_.ssrc; } 65 uint32_t ssrc() const { return config_.ssrc; }
65 66
66 private: 67 private:
67 void UpdateSequenceNumber(Packet* packet); 68 void UpdateSequenceNumber(Packet* packet);
68 69
69 RtpPacketizerConfig config_; 70 RtpPacketizerConfig config_;
70 PacketStorage storage_; 71 PacketStorage storage_;
71 scoped_ptr<RtpPacketizer> packetizer_; 72 scoped_ptr<RtpPacketizer> packetizer_;
72 PacedSender* const transport_; 73 PacedSender* const transport_;
73 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_; 74 scoped_refptr<base::SingleThreadTaskRunner> transport_task_runner_;
74 75
75 // NOTE: Weak pointers must be invalidated before all other member variables. 76 // NOTE: Weak pointers must be invalidated before all other member variables.
76 base::WeakPtrFactory<RtpSender> weak_factory_; 77 base::WeakPtrFactory<RtpSender> weak_factory_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(RtpSender); 79 DISALLOW_COPY_AND_ASSIGN(RtpSender);
79 }; 80 };
80 81
81 } // namespace cast 82 } // namespace cast
82 } // namespace media 83 } // namespace media
83 84
84 #endif // MEDIA_CAST_NET_RTP_SENDER_RTP_SENDER_H_ 85 #endif // MEDIA_CAST_NET_RTP_SENDER_RTP_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698