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

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

Issue 2726843007: Make ExtendedReports::target_bitrate() accessor const (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 30 matching lines...) Expand all
41 void AddDlrrItem(const ReceiveTimeInfo& time_info); 41 void AddDlrrItem(const ReceiveTimeInfo& time_info);
42 void SetVoipMetric(const VoipMetric& voip_metric); 42 void SetVoipMetric(const VoipMetric& voip_metric);
43 void SetTargetBitrate(const TargetBitrate& target_bitrate); 43 void SetTargetBitrate(const TargetBitrate& target_bitrate);
44 44
45 uint32_t sender_ssrc() const { return sender_ssrc_; } 45 uint32_t sender_ssrc() const { return sender_ssrc_; }
46 const rtc::Optional<Rrtr>& rrtr() const { return rrtr_block_; } 46 const rtc::Optional<Rrtr>& rrtr() const { return rrtr_block_; }
47 const Dlrr& dlrr() const { return dlrr_block_; } 47 const Dlrr& dlrr() const { return dlrr_block_; }
48 const rtc::Optional<VoipMetric>& voip_metric() const { 48 const rtc::Optional<VoipMetric>& voip_metric() const {
49 return voip_metric_block_; 49 return voip_metric_block_;
50 } 50 }
51 const rtc::Optional<TargetBitrate>& target_bitrate() { 51 const rtc::Optional<TargetBitrate>& target_bitrate() const {
52 return target_bitrate_; 52 return target_bitrate_;
53 } 53 }
54 54
55 protected: 55 protected:
56 bool Create(uint8_t* packet, 56 bool Create(uint8_t* packet,
57 size_t* index, 57 size_t* index,
58 size_t max_length, 58 size_t max_length,
59 RtcpPacket::PacketReadyCallback* callback) const override; 59 RtcpPacket::PacketReadyCallback* callback) const override;
60 60
61 private: 61 private:
(...skipping 18 matching lines...) Expand all
80 80
81 uint32_t sender_ssrc_; 81 uint32_t sender_ssrc_;
82 rtc::Optional<Rrtr> rrtr_block_; 82 rtc::Optional<Rrtr> rrtr_block_;
83 Dlrr dlrr_block_; // Dlrr without items treated same as no dlrr block. 83 Dlrr dlrr_block_; // Dlrr without items treated same as no dlrr block.
84 rtc::Optional<VoipMetric> voip_metric_block_; 84 rtc::Optional<VoipMetric> voip_metric_block_;
85 rtc::Optional<TargetBitrate> target_bitrate_; 85 rtc::Optional<TargetBitrate> target_bitrate_;
86 }; 86 };
87 } // namespace rtcp 87 } // namespace rtcp
88 } // namespace webrtc 88 } // namespace webrtc
89 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_EXTENDED_REPORTS_H_ 89 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_EXTENDED_REPORTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698