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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_sender.h

Issue 1373903003: Unify newapi::RtcpMode and RTCPMethod. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }; 72 };
73 73
74 RTCPSender(bool audio, 74 RTCPSender(bool audio,
75 Clock* clock, 75 Clock* clock,
76 ReceiveStatistics* receive_statistics, 76 ReceiveStatistics* receive_statistics,
77 RtcpPacketTypeCounterObserver* packet_type_counter_observer); 77 RtcpPacketTypeCounterObserver* packet_type_counter_observer);
78 virtual ~RTCPSender(); 78 virtual ~RTCPSender();
79 79
80 int32_t RegisterSendTransport(Transport* outgoingTransport); 80 int32_t RegisterSendTransport(Transport* outgoingTransport);
81 81
82 RTCPMethod Status() const; 82 RtcpMode Status() const;
83 void SetRTCPStatus(RTCPMethod method); 83 void SetRTCPStatus(RtcpMode method);
84 84
85 bool Sending() const; 85 bool Sending() const;
86 int32_t SetSendingStatus(const FeedbackState& feedback_state, 86 int32_t SetSendingStatus(const FeedbackState& feedback_state,
87 bool enabled); // combine the functions 87 bool enabled); // combine the functions
88 88
89 int32_t SetNackStatus(bool enable); 89 int32_t SetNackStatus(bool enable);
90 90
91 void SetStartTimestamp(uint32_t start_timestamp); 91 void SetStartTimestamp(uint32_t start_timestamp);
92 92
93 void SetLastRtpTime(uint32_t rtp_timestamp, int64_t capture_time_ms); 93 void SetLastRtpTime(uint32_t rtp_timestamp, int64_t capture_time_ms);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 BuildResult BuildNACK(RtcpContext* context) 219 BuildResult BuildNACK(RtcpContext* context)
220 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_); 220 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
221 BuildResult BuildReceiverReferenceTime(RtcpContext* context) 221 BuildResult BuildReceiverReferenceTime(RtcpContext* context)
222 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_); 222 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
223 BuildResult BuildDlrr(RtcpContext* context) 223 BuildResult BuildDlrr(RtcpContext* context)
224 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_); 224 EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
225 225
226 private: 226 private:
227 const bool audio_; 227 const bool audio_;
228 Clock* const clock_; 228 Clock* const clock_;
229 RTCPMethod method_ GUARDED_BY(critical_section_rtcp_sender_); 229 RtcpMode method_ GUARDED_BY(critical_section_rtcp_sender_);
230 230
231 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_transport_; 231 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_transport_;
232 Transport* cbTransport_ GUARDED_BY(critical_section_transport_); 232 Transport* cbTransport_ GUARDED_BY(critical_section_transport_);
233 233
234 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtcp_sender_; 234 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtcp_sender_;
235 bool using_nack_ GUARDED_BY(critical_section_rtcp_sender_); 235 bool using_nack_ GUARDED_BY(critical_section_rtcp_sender_);
236 bool sending_ GUARDED_BY(critical_section_rtcp_sender_); 236 bool sending_ GUARDED_BY(critical_section_rtcp_sender_);
237 bool remb_enabled_ GUARDED_BY(critical_section_rtcp_sender_); 237 bool remb_enabled_ GUARDED_BY(critical_section_rtcp_sender_);
238 238
239 int64_t next_time_to_send_rtcp_ GUARDED_BY(critical_section_rtcp_sender_); 239 int64_t next_time_to_send_rtcp_ GUARDED_BY(critical_section_rtcp_sender_);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 std::set<ReportFlag> report_flags_ GUARDED_BY(critical_section_rtcp_sender_); 319 std::set<ReportFlag> report_flags_ GUARDED_BY(critical_section_rtcp_sender_);
320 320
321 typedef BuildResult (RTCPSender::*Builder)(RtcpContext*); 321 typedef BuildResult (RTCPSender::*Builder)(RtcpContext*);
322 std::map<RTCPPacketType, Builder> builders_; 322 std::map<RTCPPacketType, Builder> builders_;
323 323
324 class PacketBuiltCallback; 324 class PacketBuiltCallback;
325 }; 325 };
326 } // namespace webrtc 326 } // namespace webrtc
327 327
328 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 328 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698