| 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_RECEIVER_H_ | 5 #ifndef MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ |
| 6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ | 6 #define MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ |
| 7 | 7 |
| 8 #include "media/cast/rtcp/rtcp.h" | 8 #include "media/cast/rtcp/rtcp.h" |
| 9 #include "media/cast/rtcp/rtcp_defines.h" | 9 #include "media/cast/rtcp/rtcp_defines.h" |
| 10 #include "media/cast/rtcp/rtcp_utility.h" | 10 #include "media/cast/rtcp/rtcp_utility.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void OnReceivedDelaySinceLastReport( | 36 virtual void OnReceivedDelaySinceLastReport( |
| 37 uint32 receivers_ssrc, | 37 uint32 receivers_ssrc, |
| 38 uint32 last_report, | 38 uint32 last_report, |
| 39 uint32 delay_since_last_report) = 0; | 39 uint32 delay_since_last_report) = 0; |
| 40 | 40 |
| 41 virtual ~RtcpRttFeedback() {} | 41 virtual ~RtcpRttFeedback() {} |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class RtcpReceiver { | 44 class RtcpReceiver { |
| 45 public: | 45 public: |
| 46 explicit RtcpReceiver(RtcpSenderFeedback* sender_feedback, | 46 explicit RtcpReceiver(scoped_refptr<CastEnvironment> cast_environment, |
| 47 RtcpSenderFeedback* sender_feedback, |
| 47 RtcpReceiverFeedback* receiver_feedback, | 48 RtcpReceiverFeedback* receiver_feedback, |
| 48 RtcpRttFeedback* rtt_feedback, | 49 RtcpRttFeedback* rtt_feedback, |
| 49 uint32 local_ssrc); | 50 uint32 local_ssrc); |
| 50 virtual ~RtcpReceiver(); | 51 virtual ~RtcpReceiver(); |
| 51 | 52 |
| 52 void SetRemoteSSRC(uint32 ssrc); | 53 void SetRemoteSSRC(uint32 ssrc); |
| 53 | 54 |
| 54 void IncomingRtcpPacket(RtcpParser* rtcp_parser); | 55 void IncomingRtcpPacket(RtcpParser* rtcp_parser); |
| 55 | 56 |
| 56 private: | 57 private: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const RtcpField* rtcp_field, | 96 const RtcpField* rtcp_field, |
| 96 MissingFramesAndPacketsMap* missing_frames_and_packets); | 97 MissingFramesAndPacketsMap* missing_frames_and_packets); |
| 97 | 98 |
| 98 const uint32 ssrc_; | 99 const uint32 ssrc_; |
| 99 uint32 remote_ssrc_; | 100 uint32 remote_ssrc_; |
| 100 | 101 |
| 101 // Not owned by this class. | 102 // Not owned by this class. |
| 102 RtcpSenderFeedback* const sender_feedback_; | 103 RtcpSenderFeedback* const sender_feedback_; |
| 103 RtcpReceiverFeedback* const receiver_feedback_; | 104 RtcpReceiverFeedback* const receiver_feedback_; |
| 104 RtcpRttFeedback* const rtt_feedback_; | 105 RtcpRttFeedback* const rtt_feedback_; |
| 106 scoped_refptr<CastEnvironment> cast_environment_; |
| 105 | 107 |
| 106 FrameIdWrapHelper ack_frame_id_wrap_helper_; | 108 FrameIdWrapHelper ack_frame_id_wrap_helper_; |
| 107 | 109 |
| 108 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); | 110 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace cast | 113 } // namespace cast |
| 112 } // namespace media | 114 } // namespace media |
| 113 | 115 |
| 114 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ | 116 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ |
| OLD | NEW |