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

Side by Side Diff: media/cast/net/rtcp/rtcp.h

Issue 445933002: Cast: Move retransmission to the transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test compile Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « media/cast/net/cast_transport_sender_impl_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bi-directional RTCP connection with a remote 5 // This class maintains a bi-directional RTCP connection with a remote
6 // peer. 6 // peer.
7 7
8 #ifndef MEDIA_CAST_RTCP_RTCP_H_ 8 #ifndef MEDIA_CAST_RTCP_RTCP_H_
9 #define MEDIA_CAST_RTCP_RTCP_H_ 9 #define MEDIA_CAST_RTCP_RTCP_H_
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // If available, returns true and sets the output arguments to the latest 100 // If available, returns true and sets the output arguments to the latest
101 // lip-sync timestamps gleaned from the sender reports. While the sender 101 // lip-sync timestamps gleaned from the sender reports. While the sender
102 // provides reference NTP times relative to its own wall clock, the 102 // provides reference NTP times relative to its own wall clock, the
103 // |reference_time| returned here has been translated to the local 103 // |reference_time| returned here has been translated to the local
104 // CastEnvironment clock. 104 // CastEnvironment clock.
105 bool GetLatestLipSyncTimes(uint32* rtp_timestamp, 105 bool GetLatestLipSyncTimes(uint32* rtp_timestamp,
106 base::TimeTicks* reference_time) const; 106 base::TimeTicks* reference_time) const;
107 107
108 void OnReceivedReceiverLog(const RtcpReceiverLogMessage& receiver_log); 108 void OnReceivedReceiverLog(const RtcpReceiverLogMessage& receiver_log);
109 109
110 const base::TimeDelta& rtt() const { return rtt_; }
111
110 protected: 112 protected:
111 void OnReceivedNtp(uint32 ntp_seconds, uint32 ntp_fraction); 113 void OnReceivedNtp(uint32 ntp_seconds, uint32 ntp_fraction);
112 void OnReceivedLipSyncInfo(uint32 rtp_timestamp, 114 void OnReceivedLipSyncInfo(uint32 rtp_timestamp,
113 uint32 ntp_seconds, 115 uint32 ntp_seconds,
114 uint32 ntp_fraction); 116 uint32 ntp_fraction);
115 117
116 private: 118 private:
117 class RtcpMessageHandlerImpl; 119 class RtcpMessageHandlerImpl;
118 120
119 void OnReceivedDelaySinceLastReport(uint32 last_report, 121 void OnReceivedDelaySinceLastReport(uint32 last_report,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 int number_of_rtt_in_avg_; 169 int number_of_rtt_in_avg_;
168 base::TimeDelta avg_rtt_; 170 base::TimeDelta avg_rtt_;
169 171
170 DISALLOW_COPY_AND_ASSIGN(Rtcp); 172 DISALLOW_COPY_AND_ASSIGN(Rtcp);
171 }; 173 };
172 174
173 } // namespace cast 175 } // namespace cast
174 } // namespace media 176 } // namespace media
175 177
176 #endif // MEDIA_CAST_RTCP_RTCP_H_ 178 #endif // MEDIA_CAST_RTCP_RTCP_H_
OLDNEW
« no previous file with comments | « media/cast/net/cast_transport_sender_impl_unittest.cc ('k') | media/cast/net/rtp/rtp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698