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

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

Issue 2276833003: Change RtpSender::OnReceiveNACK name and signature (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: -one more <list> include Created 4 years, 3 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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
13 13
14 #include <list>
15 #include <map> 14 #include <map>
16 #include <memory> 15 #include <memory>
17 #include <utility> 16 #include <utility>
18 #include <vector> 17 #include <vector>
19 18
20 #include "webrtc/base/constructormagic.h" 19 #include "webrtc/base/constructormagic.h"
21 #include "webrtc/base/criticalsection.h" 20 #include "webrtc/base/criticalsection.h"
22 #include "webrtc/base/random.h" 21 #include "webrtc/base/random.h"
23 #include "webrtc/base/rate_statistics.h" 22 #include "webrtc/base/rate_statistics.h"
24 #include "webrtc/base/thread_annotations.h" 23 #include "webrtc/base/thread_annotations.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 175
177 bool TimeToSendPacket(uint16_t sequence_number, 176 bool TimeToSendPacket(uint16_t sequence_number,
178 int64_t capture_time_ms, 177 int64_t capture_time_ms,
179 bool retransmission, 178 bool retransmission,
180 int probe_cluster_id); 179 int probe_cluster_id);
181 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id); 180 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id);
182 181
183 // NACK. 182 // NACK.
184 int SelectiveRetransmissions() const; 183 int SelectiveRetransmissions() const;
185 int SetSelectiveRetransmissions(uint8_t settings); 184 int SetSelectiveRetransmissions(uint8_t settings);
186 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers, 185 void OnReceivedNack(const std::vector<uint16_t>& nack_sequence_numbers,
187 int64_t avg_rtt); 186 int64_t avg_rtt);
188 187
189 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); 188 void SetStorePacketsStatus(bool enable, uint16_t number_to_store);
190 189
191 bool StorePackets() const; 190 bool StorePackets() const;
192 191
193 int32_t ReSendPacket(uint16_t packet_id, int64_t min_resend_time = 0); 192 int32_t ReSendPacket(uint16_t packet_id, int64_t min_resend_time = 0);
194 193
195 // Feedback to decide when to stop sending playout delay. 194 // Feedback to decide when to stop sending playout delay.
196 void OnReceivedRtcpReportBlocks(const ReportBlockList& report_blocks); 195 void OnReceivedRtcpReportBlocks(const ReportBlockList& report_blocks);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_); 419 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_);
421 420
422 RateLimiter* const retransmission_rate_limiter_; 421 RateLimiter* const retransmission_rate_limiter_;
423 422
424 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); 423 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender);
425 }; 424 };
426 425
427 } // namespace webrtc 426 } // namespace webrtc
428 427
429 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 428 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698