Chromium Code Reviews| Index: media/cast/net/rtcp/rtcp.h |
| diff --git a/media/cast/net/rtcp/rtcp.h b/media/cast/net/rtcp/rtcp.h |
| index d1cfa48b2d834155a1487f3b987b01bf6cd67855..7a8baee8d0ad0b1f3f2f182fb87ea8aefa656f53 100644 |
| --- a/media/cast/net/rtcp/rtcp.h |
| +++ b/media/cast/net/rtcp/rtcp.h |
| @@ -38,14 +38,6 @@ typedef std::pair<uint32, base::TimeTicks> RtcpSendTimePair; |
| typedef std::map<uint32, base::TimeTicks> RtcpSendTimeMap; |
| typedef std::queue<RtcpSendTimePair> RtcpSendTimeQueue; |
| -struct RtpReceiverStatistics { |
| - RtpReceiverStatistics(); |
| - uint8 fraction_lost; |
| - uint32 cumulative_lost; // 24 bits valid. |
| - uint32 extended_high_sequence_number; |
| - uint32 jitter; |
| -}; |
| - |
| // TODO(hclam): This should be renamed to RtcpSession. |
| class Rtcp { |
| public: |
| @@ -70,16 +62,19 @@ class Rtcp { |
| uint32 send_packet_count, |
| size_t send_octet_count); |
| + RtcpTimeData ConvertToNTPAndSave(base::TimeTicks now); |
|
miu
2014/12/04 04:18:54
Please provide a short comment to explain how the
hubbe
2014/12/05 23:57:20
Done.
|
| + |
| // |cast_message| and |rtcp_events| is optional; if |cast_message| is |
|
miu
2014/12/04 04:18:54
and |rtp_receiver_statistics| is also optional.
hubbe
2014/12/05 23:57:20
Done.
|
| // provided the RTCP receiver report will append a Cast message containing |
| // Acks and Nacks; |target_delay| is sent together with |cast_message|. |
| // If |rtcp_events| is provided the RTCP receiver report will append the |
| // log messages. |
| void SendRtcpFromRtpReceiver( |
| + RtcpTimeData time_data, |
| const RtcpCastMessage* cast_message, |
| base::TimeDelta target_delay, |
| - const ReceiverRtcpEventSubscriber::RtcpEventMultiMap* rtcp_events, |
| - RtpReceiverStatistics* rtp_receiver_statistics); |
| + const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, |
| + const RtpReceiverStatistics* rtp_receiver_statistics) const; |
| // Submit a received packet to this object. The packet will be parsed |
| // and used to maintain a RTCP session. |
| @@ -105,6 +100,9 @@ class Rtcp { |
| static bool IsRtcpPacket(const uint8* packet, size_t length); |
| static uint32 GetSsrcOfSender(const uint8* rtcp_buffer, size_t length); |
| + uint32 GetLocalSsrc() const { return local_ssrc_; } |
| + uint32 GetRemoteSsrc() const { return remote_ssrc_; } |
| + |
| protected: |
| void OnReceivedNtp(uint32 ntp_seconds, uint32 ntp_fraction); |
| void OnReceivedLipSyncInfo(uint32 rtp_timestamp, |