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

Side by Side Diff: media/cast/net/cast_transport_sender_impl.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 // This class maintains a send transport for audio and video in a Cast 5 // This class maintains a send transport for audio and video in a Cast
6 // Streaming session. 6 // Streaming session.
7 // Audio, video frames and RTCP messages are submitted to this object 7 // Audio, video frames and RTCP messages are submitted to this object
8 // and then packetized and paced to the underlying UDP socket. 8 // and then packetized and paced to the underlying UDP socket.
9 // 9 //
10 // The hierarchy of send transport in a Cast Streaming session: 10 // The hierarchy of send transport in a Cast Streaming session:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void InitializeAudio(const CastTransportRtpConfig& config, 96 void InitializeAudio(const CastTransportRtpConfig& config,
97 const RtcpCastMessageCallback& cast_message_cb, 97 const RtcpCastMessageCallback& cast_message_cb,
98 const RtcpRttCallback& rtt_cb) final; 98 const RtcpRttCallback& rtt_cb) final;
99 void InitializeVideo(const CastTransportRtpConfig& config, 99 void InitializeVideo(const CastTransportRtpConfig& config,
100 const RtcpCastMessageCallback& cast_message_cb, 100 const RtcpCastMessageCallback& cast_message_cb,
101 const RtcpRttCallback& rtt_cb) final; 101 const RtcpRttCallback& rtt_cb) final;
102 void InsertFrame(uint32 ssrc, const EncodedFrame& frame) final; 102 void InsertFrame(uint32 ssrc, const EncodedFrame& frame) final;
103 103
104 void SendSenderReport(uint32 ssrc, 104 void SendSenderReport(uint32 ssrc,
105 base::TimeTicks current_time, 105 base::TimeTicks current_time,
106 uint32 current_time_as_rtp_timestamp) final; 106 RtpTimeTicks current_time_as_rtp_timestamp) final;
107 107
108 void CancelSendingFrames(uint32 ssrc, 108 void CancelSendingFrames(uint32 ssrc,
109 const std::vector<uint32>& frame_ids) final; 109 const std::vector<uint32>& frame_ids) final;
110 110
111 void ResendFrameForKickstart(uint32 ssrc, uint32 frame_id) final; 111 void ResendFrameForKickstart(uint32 ssrc, uint32 frame_id) final;
112 112
113 PacketReceiverCallback PacketReceiverForTesting() final; 113 PacketReceiverCallback PacketReceiverForTesting() final;
114 114
115 // CastTransportReceiver implementation. 115 // CastTransportReceiver implementation.
116 void AddValidSsrc(uint32 ssrc) final; 116 void AddValidSsrc(uint32 ssrc) final;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; 206 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); 208 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl);
209 }; 209 };
210 210
211 } // namespace cast 211 } // namespace cast
212 } // namespace media 212 } // namespace media
213 213
214 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ 214 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698