| Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h
|
| index f2f49a8ffbff21df0843c845e39664ad4166d07c..4fb92facc730fc66124314d767dec5395ff60631 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h
|
| @@ -12,6 +12,8 @@
|
| #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMPOUND_PACKET_H_
|
| #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_COMPOUND_PACKET_H_
|
|
|
| +#include <vector>
|
| +
|
| #include "webrtc/base/basictypes.h"
|
| #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
|
|
|
| @@ -20,17 +22,21 @@ namespace rtcp {
|
|
|
| class CompoundPacket : public RtcpPacket {
|
| public:
|
| - CompoundPacket() : RtcpPacket() {}
|
| + CompoundPacket() {}
|
| + ~CompoundPacket() override {}
|
|
|
| - virtual ~CompoundPacket() {}
|
| + void Append(RtcpPacket* packet);
|
|
|
| - protected:
|
| + // Size of this packet in bytes (i.e. total size of nested packets).
|
| + size_t BlockLength() const override;
|
| + // Returns true if all calls to Create succeeded.
|
| bool Create(uint8_t* packet,
|
| size_t* index,
|
| size_t max_length,
|
| RtcpPacket::PacketReadyCallback* callback) const override;
|
|
|
| - size_t BlockLength() const override;
|
| + protected:
|
| + std::vector<RtcpPacket*> appended_packets_;
|
|
|
| private:
|
| RTC_DISALLOW_COPY_AND_ASSIGN(CompoundPacket);
|
|
|