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_SENDER_H_ | 5 #ifndef MEDIA_CAST_RTCP_RTCP_SENDER_H_ |
6 #define MEDIA_CAST_RTCP_RTCP_SENDER_H_ | 6 #define MEDIA_CAST_RTCP_RTCP_SENDER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "media/cast/cast_config.h" | 11 #include "media/cast/cast_config.h" |
12 #include "media/cast/cast_defines.h" | 12 #include "media/cast/cast_defines.h" |
13 #include "media/cast/rtcp/rtcp.h" | 13 #include "media/cast/rtcp/rtcp.h" |
14 #include "media/cast/rtcp/rtcp_defines.h" | 14 #include "media/cast/rtcp/rtcp_defines.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 namespace cast { | 17 namespace cast { |
18 | 18 |
19 class RtcpSender { | 19 class RtcpSender { |
20 public: | 20 public: |
21 RtcpSender(PacedPacketSender* const paced_packet_sender, | 21 RtcpSender(scoped_refptr<CastEnvironment> cast_environment, |
| 22 PacedPacketSender* const paced_packet_sender, |
22 uint32 sending_ssrc, | 23 uint32 sending_ssrc, |
23 const std::string& c_name); | 24 const std::string& c_name); |
24 | 25 |
25 virtual ~RtcpSender(); | 26 virtual ~RtcpSender(); |
26 | 27 |
27 void SendRtcpFromRtpSender(uint32 packet_type_flags, | 28 void SendRtcpFromRtpSender(uint32 packet_type_flags, |
28 const RtcpSenderInfo* sender_info, | 29 const RtcpSenderInfo* sender_info, |
29 const RtcpDlrrReportBlock* dlrr, | 30 const RtcpDlrrReportBlock* dlrr, |
30 const RtcpSenderLogMessage* sender_log); | 31 const RtcpSenderLogMessage* sender_log); |
31 | 32 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 107 } |
107 } | 108 } |
108 *mantissa = (bitrate >> *exponent); | 109 *mantissa = (bitrate >> *exponent); |
109 } | 110 } |
110 | 111 |
111 const uint32 ssrc_; | 112 const uint32 ssrc_; |
112 const std::string c_name_; | 113 const std::string c_name_; |
113 | 114 |
114 // Not owned by this class. | 115 // Not owned by this class. |
115 PacedPacketSender* transport_; | 116 PacedPacketSender* transport_; |
| 117 scoped_refptr<CastEnvironment> cast_environment_; |
116 | 118 |
117 DISALLOW_COPY_AND_ASSIGN(RtcpSender); | 119 DISALLOW_COPY_AND_ASSIGN(RtcpSender); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace cast | 122 } // namespace cast |
121 } // namespace media | 123 } // namespace media |
122 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ | 124 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ |
OLD | NEW |