| 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(scoped_refptr<CastEnvironment> cast_environment, | 21 RtcpSender(scoped_refptr<CastEnvironment> cast_environment, |
| 22 PacedPacketSender* const paced_packet_sender, | 22 transport::PacedPacketSender* const paced_packet_sender, |
| 23 uint32 sending_ssrc, | 23 uint32 sending_ssrc, |
| 24 const std::string& c_name); | 24 const std::string& c_name); |
| 25 | 25 |
| 26 virtual ~RtcpSender(); | 26 virtual ~RtcpSender(); |
| 27 | 27 |
| 28 void SendRtcpFromRtpSender(uint32 packet_type_flags, | 28 void SendRtcpFromRtpSender(uint32 packet_type_flags, |
| 29 const RtcpSenderInfo* sender_info, | 29 const RtcpSenderInfo* sender_info, |
| 30 const RtcpDlrrReportBlock* dlrr, | 30 const RtcpDlrrReportBlock* dlrr, |
| 31 RtcpSenderLogMessage* sender_log); | 31 RtcpSenderLogMessage* sender_log); |
| 32 | 32 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 break; | 106 break; |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 *mantissa = (bitrate >> *exponent); | 109 *mantissa = (bitrate >> *exponent); |
| 110 } | 110 } |
| 111 | 111 |
| 112 const uint32 ssrc_; | 112 const uint32 ssrc_; |
| 113 const std::string c_name_; | 113 const std::string c_name_; |
| 114 | 114 |
| 115 // Not owned by this class. | 115 // Not owned by this class. |
| 116 PacedPacketSender* transport_; | 116 transport::PacedPacketSender* transport_; |
| 117 scoped_refptr<CastEnvironment> cast_environment_; | 117 scoped_refptr<CastEnvironment> cast_environment_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(RtcpSender); | 119 DISALLOW_COPY_AND_ASSIGN(RtcpSender); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace cast | 122 } // namespace cast |
| 123 } // namespace media | 123 } // namespace media |
| 124 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ | 124 #endif // MEDIA_CAST_RTCP_RTCP_SENDER_H_ |
| OLD | NEW |