| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RTCP_RTCP_H_ | 5 #ifndef MEDIA_CAST_RTCP_RTCP_H_ |
| 6 #define MEDIA_CAST_RTCP_RTCP_H_ | 6 #define MEDIA_CAST_RTCP_RTCP_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // will append the log messages. | 91 // will append the log messages. |
| 92 void SendRtcpFromRtpReceiver( | 92 void SendRtcpFromRtpReceiver( |
| 93 const RtcpCastMessage* cast_message, | 93 const RtcpCastMessage* cast_message, |
| 94 const ReceiverRtcpEventSubscriber::RtcpEventMultiMap* rtcp_events); | 94 const ReceiverRtcpEventSubscriber::RtcpEventMultiMap* rtcp_events); |
| 95 | 95 |
| 96 void IncomingRtcpPacket(const uint8* rtcp_buffer, size_t length); | 96 void IncomingRtcpPacket(const uint8* rtcp_buffer, size_t length); |
| 97 bool Rtt(base::TimeDelta* rtt, | 97 bool Rtt(base::TimeDelta* rtt, |
| 98 base::TimeDelta* avg_rtt, | 98 base::TimeDelta* avg_rtt, |
| 99 base::TimeDelta* min_rtt, | 99 base::TimeDelta* min_rtt, |
| 100 base::TimeDelta* max_rtt) const; | 100 base::TimeDelta* max_rtt) const; |
| 101 bool is_rtt_available() const { return number_of_rtt_in_avg_ > 0; } |
| 101 bool RtpTimestampInSenderTime(int frequency, | 102 bool RtpTimestampInSenderTime(int frequency, |
| 102 uint32 rtp_timestamp, | 103 uint32 rtp_timestamp, |
| 103 base::TimeTicks* rtp_timestamp_in_ticks) const; | 104 base::TimeTicks* rtp_timestamp_in_ticks) const; |
| 104 | 105 |
| 105 // Set the history size to record Cast receiver events. The event history is | 106 // Set the history size to record Cast receiver events. The event history is |
| 106 // used to remove duplicates. The history will store at most |size| events. | 107 // used to remove duplicates. The history will store at most |size| events. |
| 107 void SetCastReceiverEventHistorySize(size_t size); | 108 void SetCastReceiverEventHistorySize(size_t size); |
| 108 | 109 |
| 109 // Update the target delay. Will be added to every sender report. | 110 // Update the target delay. Will be added to every sender report. |
| 110 void SetTargetDelay(base::TimeDelta target_delay); | 111 void SetTargetDelay(base::TimeDelta target_delay); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 uint16 target_delay_ms_; | 179 uint16 target_delay_ms_; |
| 179 bool is_audio_; | 180 bool is_audio_; |
| 180 | 181 |
| 181 DISALLOW_COPY_AND_ASSIGN(Rtcp); | 182 DISALLOW_COPY_AND_ASSIGN(Rtcp); |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace cast | 185 } // namespace cast |
| 185 } // namespace media | 186 } // namespace media |
| 186 | 187 |
| 187 #endif // MEDIA_CAST_RTCP_RTCP_H_ | 188 #endif // MEDIA_CAST_RTCP_RTCP_H_ |
| OLD | NEW |