| 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 SendRtcp(uint32 packet_type_flags, | 28 void SendRtcp(uint32 packet_type_flags, |
| 28 const RtcpSenderInfo* sender_info, | 29 const RtcpSenderInfo* sender_info, |
| 29 const RtcpReportBlock* report_block, | 30 const RtcpReportBlock* report_block, |
| 30 uint32 pli_remote_ssrc, | 31 uint32 pli_remote_ssrc, |
| 31 const RtcpDlrrReportBlock* dlrr, | 32 const RtcpDlrrReportBlock* dlrr, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 96 } |
| 96 } | 97 } |
| 97 *mantissa = (bitrate >> *exponent); | 98 *mantissa = (bitrate >> *exponent); |
| 98 } | 99 } |
| 99 | 100 |
| 100 const uint32 ssrc_; | 101 const uint32 ssrc_; |
| 101 const std::string c_name_; | 102 const std::string c_name_; |
| 102 | 103 |
| 103 // Not owned by this class. | 104 // Not owned by this class. |
| 104 PacedPacketSender* transport_; | 105 PacedPacketSender* transport_; |
| 106 scoped_refptr<CastEnvironment> cast_environment_; |
| 105 | 107 |
| 106 DISALLOW_COPY_AND_ASSIGN(RtcpSender); | 108 DISALLOW_COPY_AND_ASSIGN(RtcpSender); |
| 107 }; | 109 }; |
| 108 | 110 |
| 109 } // namespace cast | 111 } // namespace cast |
| 110 } // namespace media | 112 } // namespace media |
| 111 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ | 113 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ |
| OLD | NEW |