| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RTCP_RECEIVER_RTCP_SESSION_H_ | 5 #ifndef MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ |
| 6 #define MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ | 6 #define MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ |
| 7 | 7 |
| 8 #include "base/time/tick_clock.h" | 8 #include "base/time/tick_clock.h" |
| 9 #include "media/cast/common/clock_drift_smoother.h" | 9 #include "media/cast/common/clock_drift_smoother.h" |
| 10 #include "media/cast/net/pacing/paced_sender.h" | 10 #include "media/cast/net/pacing/paced_sender.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 uint32_t remote_ssrc() const { return remote_ssrc_; } | 36 uint32_t remote_ssrc() const { return remote_ssrc_; } |
| 37 | 37 |
| 38 // |cast_message|, |rtcp_events| and |rtp_receiver_statistics| are optional; | 38 // |cast_message|, |rtcp_events| and |rtp_receiver_statistics| are optional; |
| 39 // if |cast_message| is provided the RTCP receiver report will append a Cast | 39 // if |cast_message| is provided the RTCP receiver report will append a Cast |
| 40 // message containing Acks and Nacks; |target_delay| is sent together with | 40 // message containing Acks and Nacks; |target_delay| is sent together with |
| 41 // |cast_message|. If |rtcp_events| is provided the RTCP receiver report will | 41 // |cast_message|. If |rtcp_events| is provided the RTCP receiver report will |
| 42 // append the log messages. | 42 // append the log messages. |
| 43 void SendRtcpReport( | 43 void SendRtcpReport( |
| 44 RtcpTimeData time_data, | 44 RtcpTimeData time_data, |
| 45 const RtcpCastMessage* cast_message, | 45 const RtcpCastMessage* cast_message, |
| 46 const RtcpPliMessage* pli_message, |
| 46 base::TimeDelta target_delay, | 47 base::TimeDelta target_delay, |
| 47 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, | 48 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, |
| 48 const RtpReceiverStatistics* rtp_receiver_statistics) const; | 49 const RtpReceiverStatistics* rtp_receiver_statistics) const; |
| 49 | 50 |
| 50 // Handle incoming RTCP packet. | 51 // Handle incoming RTCP packet. |
| 51 // Returns false if it is not a RTCP packet or it is not directed to | 52 // Returns false if it is not a RTCP packet or it is not directed to |
| 52 // this session, e.g. SSRC doesn't match. | 53 // this session, e.g. SSRC doesn't match. |
| 53 bool IncomingRtcpPacket(const uint8_t* data, size_t length) override; | 54 bool IncomingRtcpPacket(const uint8_t* data, size_t length) override; |
| 54 | 55 |
| 55 // If available, returns true and sets the output arguments to the latest | 56 // If available, returns true and sets the output arguments to the latest |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // re-construct "expanded" values. | 100 // re-construct "expanded" values. |
| 100 RtcpParser parser_; | 101 RtcpParser parser_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(ReceiverRtcpSession); | 103 DISALLOW_COPY_AND_ASSIGN(ReceiverRtcpSession); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace cast | 106 } // namespace cast |
| 106 } // namespace media | 107 } // namespace media |
| 107 | 108 |
| 108 #endif // MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ | 109 #endif // MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ |
| OLD | NEW |