| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/rtc_base/checks.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 namespace rtcp { | 16 namespace rtcp { |
| 17 | 17 |
| 18 CompoundPacket::CompoundPacket() = default; | 18 CompoundPacket::CompoundPacket() = default; |
| 19 | 19 |
| 20 CompoundPacket::~CompoundPacket() = default; | 20 CompoundPacket::~CompoundPacket() = default; |
| 21 | 21 |
| 22 void CompoundPacket::Append(RtcpPacket* packet) { | 22 void CompoundPacket::Append(RtcpPacket* packet) { |
| 23 RTC_CHECK(packet); | 23 RTC_CHECK(packet); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 size_t CompoundPacket::BlockLength() const { | 38 size_t CompoundPacket::BlockLength() const { |
| 39 size_t block_length = 0; | 39 size_t block_length = 0; |
| 40 for (RtcpPacket* appended : appended_packets_) { | 40 for (RtcpPacket* appended : appended_packets_) { |
| 41 block_length += appended->BlockLength(); | 41 block_length += appended->BlockLength(); |
| 42 } | 42 } |
| 43 return block_length; | 43 return block_length; |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace rtcp | 46 } // namespace rtcp |
| 47 } // namespace webrtc | 47 } // namespace webrtc |
| OLD | NEW |