Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h

Issue 1921653002: Enable -Winconsistent-missing-override flag. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 protected: 43 protected:
44 bool Create(uint8_t* packet, 44 bool Create(uint8_t* packet,
45 size_t* index, 45 size_t* index,
46 size_t max_length, 46 size_t max_length,
47 RtcpPacket::PacketReadyCallback* callback) const override; 47 RtcpPacket::PacketReadyCallback* callback) const override;
48 48
49 private: 49 private:
50 static const size_t kRrBaseLength = 4; 50 static const size_t kRrBaseLength = 4;
51 static const size_t kMaxNumberOfReportBlocks = 0x1F; 51 static const size_t kMaxNumberOfReportBlocks = 0x1F;
52 52
53 size_t BlockLength() const { 53 size_t BlockLength() const override {
54 return kHeaderLength + kRrBaseLength + 54 return kHeaderLength + kRrBaseLength +
55 report_blocks_.size() * ReportBlock::kLength; 55 report_blocks_.size() * ReportBlock::kLength;
56 } 56 }
57 57
58 uint32_t sender_ssrc_; 58 uint32_t sender_ssrc_;
59 std::vector<ReportBlock> report_blocks_; 59 std::vector<ReportBlock> report_blocks_;
60 60
61 RTC_DISALLOW_COPY_AND_ASSIGN(ReceiverReport); 61 RTC_DISALLOW_COPY_AND_ASSIGN(ReceiverReport);
62 }; 62 };
63 63
64 } // namespace rtcp 64 } // namespace rtcp
65 } // namespace webrtc 65 } // namespace webrtc
66 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_RECEIVER_REPORT_H_ 66 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_RECEIVER_REPORT_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/receive_statistics_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698