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/net/cast_net_defines.h" | |
9 #include "media/cast/rtcp/rtcp.h" | 8 #include "media/cast/rtcp/rtcp.h" |
10 #include "media/cast/rtcp/rtcp_defines.h" | 9 #include "media/cast/rtcp/rtcp_defines.h" |
11 #include "media/cast/rtcp/rtcp_utility.h" | 10 #include "media/cast/rtcp/rtcp_utility.h" |
| 11 #include "media/cast/transport/cast_transport_defines.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 namespace cast { | 14 namespace cast { |
15 | 15 |
16 class RtcpReceiverFeedback { | 16 class RtcpReceiverFeedback { |
17 public: | 17 public: |
18 virtual void OnReceivedSenderReport( | 18 virtual void OnReceivedSenderReport( |
19 const RtcpSenderInfo& remote_sender_info) = 0; | 19 const transport::RtcpSenderInfo& remote_sender_info) = 0; |
20 | 20 |
21 virtual void OnReceiverReferenceTimeReport( | 21 virtual void OnReceiverReferenceTimeReport( |
22 const RtcpReceiverReferenceTimeReport& remote_time_report) = 0; | 22 const RtcpReceiverReferenceTimeReport& remote_time_report) = 0; |
23 | 23 |
24 virtual void OnReceivedSendReportRequest() = 0; | 24 virtual void OnReceivedSendReportRequest() = 0; |
25 | 25 |
26 virtual void OnReceivedReceiverLog( | 26 virtual void OnReceivedReceiverLog( |
27 const RtcpReceiverLogMessage& receiver_log) = 0; | 27 const RtcpReceiverLogMessage& receiver_log) = 0; |
28 | 28 |
29 virtual void OnReceivedSenderLog( | 29 virtual void OnReceivedSenderLog( |
30 const RtcpSenderLogMessage& sender_log) = 0; | 30 const transport::RtcpSenderLogMessage& sender_log) = 0; |
31 | 31 |
32 virtual ~RtcpReceiverFeedback() {} | 32 virtual ~RtcpReceiverFeedback() {} |
33 }; | 33 }; |
34 | 34 |
35 class RtcpRttFeedback { | 35 class RtcpRttFeedback { |
36 public: | 36 public: |
37 virtual void OnReceivedDelaySinceLastReport( | 37 virtual void OnReceivedDelaySinceLastReport( |
38 uint32 receivers_ssrc, | 38 uint32 receivers_ssrc, |
39 uint32 last_report, | 39 uint32 last_report, |
40 uint32 delay_since_last_report) = 0; | 40 uint32 delay_since_last_report) = 0; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 const uint32 ssrc_; | 106 const uint32 ssrc_; |
107 uint32 remote_ssrc_; | 107 uint32 remote_ssrc_; |
108 | 108 |
109 // Not owned by this class. | 109 // Not owned by this class. |
110 RtcpSenderFeedback* const sender_feedback_; | 110 RtcpSenderFeedback* const sender_feedback_; |
111 RtcpReceiverFeedback* const receiver_feedback_; | 111 RtcpReceiverFeedback* const receiver_feedback_; |
112 RtcpRttFeedback* const rtt_feedback_; | 112 RtcpRttFeedback* const rtt_feedback_; |
113 scoped_refptr<CastEnvironment> cast_environment_; | 113 scoped_refptr<CastEnvironment> cast_environment_; |
114 | 114 |
115 FrameIdWrapHelper ack_frame_id_wrap_helper_; | 115 transport::FrameIdWrapHelper ack_frame_id_wrap_helper_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); | 117 DISALLOW_COPY_AND_ASSIGN(RtcpReceiver); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace cast | 120 } // namespace cast |
121 } // namespace media | 121 } // namespace media |
122 | 122 |
123 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ | 123 #endif // MEDIA_CAST_RTCP_RTCP_RECEIVER_H_ |
OLD | NEW |