| 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_TRANSPORT_RTCP_RTCP_BUILDER_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ |
| 6 #define MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ | 6 #define MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 kRtcpDlrr = 0x0400, | 40 kRtcpDlrr = 0x0400, |
| 41 kRtcpRrtr = 0x0800, | 41 kRtcpRrtr = 0x0800, |
| 42 kRtcpRpsi = 0x8000, | 42 kRtcpRpsi = 0x8000, |
| 43 kRtcpRemb = 0x10000, | 43 kRtcpRemb = 0x10000, |
| 44 kRtcpCast = 0x20000, | 44 kRtcpCast = 0x20000, |
| 45 kRtcpSenderLog = 0x40000, | 45 kRtcpSenderLog = 0x40000, |
| 46 kRtcpReceiverLog = 0x80000, | 46 kRtcpReceiverLog = 0x80000, |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 void BuildSR(const RtcpSenderInfo& sender_info, | 50 bool BuildSR(const RtcpSenderInfo& sender_info, Packet* packet) const; |
| 51 Packet* packet) const; | 51 bool BuildSdec(Packet* packet) const; |
| 52 | 52 bool BuildBye(Packet* packet) const; |
| 53 void BuildSdec(Packet* packet) const; | 53 bool BuildDlrrRb(const RtcpDlrrReportBlock& dlrr, |
| 54 | |
| 55 void BuildBye(Packet* packet) const; | |
| 56 | |
| 57 void BuildDlrrRb(const RtcpDlrrReportBlock& dlrr, | |
| 58 Packet* packet) const; | 54 Packet* packet) const; |
| 59 void BuildSenderLog(const RtcpSenderLogMessage& sender_log_message, | 55 bool BuildSenderLog(const RtcpSenderLogMessage& sender_log_message, |
| 60 Packet* packet) const; | 56 Packet* packet) const; |
| 61 | 57 |
| 62 PacedSender* const transport_; // Not owned by this class. | 58 PacedSender* const transport_; // Not owned by this class. |
| 63 uint32 ssrc_; | 59 uint32 ssrc_; |
| 64 std::string c_name_; | 60 std::string c_name_; |
| 65 | 61 |
| 66 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); | 62 DISALLOW_COPY_AND_ASSIGN(RtcpBuilder); |
| 67 }; | 63 }; |
| 68 | 64 |
| 69 } // namespace transport | 65 } // namespace transport |
| 70 } // namespace cast | 66 } // namespace cast |
| 71 } // namespace media | 67 } // namespace media |
| 72 | 68 |
| 73 #endif // MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ | 69 #endif // MEDIA_CAST_TRANSPORT_RTCP_RTCP_BUILDER_H_ |
| OLD | NEW |