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

Side by Side Diff: webrtc/modules/pacing/packet_router.h

Issue 2628563003: Propagate packet pacing information to SenTimeHistory (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « webrtc/modules/pacing/paced_sender_unittest.cc ('k') | webrtc/modules/pacing/packet_router.cc » ('j') | 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) 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 26 matching lines...) Expand all
37 virtual ~PacketRouter(); 37 virtual ~PacketRouter();
38 38
39 void AddRtpModule(RtpRtcp* rtp_module); 39 void AddRtpModule(RtpRtcp* rtp_module);
40 void RemoveRtpModule(RtpRtcp* rtp_module); 40 void RemoveRtpModule(RtpRtcp* rtp_module);
41 41
42 // Implements PacedSender::Callback. 42 // Implements PacedSender::Callback.
43 bool TimeToSendPacket(uint32_t ssrc, 43 bool TimeToSendPacket(uint32_t ssrc,
44 uint16_t sequence_number, 44 uint16_t sequence_number,
45 int64_t capture_timestamp, 45 int64_t capture_timestamp,
46 bool retransmission, 46 bool retransmission,
47 int probe_cluster_id) override; 47 const PacedPacketInfo& packet_info) override;
48 48
49 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) override; 49 size_t TimeToSendPadding(size_t bytes,
50 const PacedPacketInfo& packet_info) override;
50 51
51 void SetTransportWideSequenceNumber(uint16_t sequence_number); 52 void SetTransportWideSequenceNumber(uint16_t sequence_number);
52 uint16_t AllocateSequenceNumber() override; 53 uint16_t AllocateSequenceNumber() override;
53 54
54 // Send transport feedback packet to send-side. 55 // Send transport feedback packet to send-side.
55 virtual bool SendFeedback(rtcp::TransportFeedback* packet); 56 virtual bool SendFeedback(rtcp::TransportFeedback* packet);
56 57
57 private: 58 private:
58 rtc::ThreadChecker pacer_thread_checker_; 59 rtc::ThreadChecker pacer_thread_checker_;
59 rtc::CriticalSection modules_crit_; 60 rtc::CriticalSection modules_crit_;
60 std::list<RtpRtcp*> rtp_modules_ GUARDED_BY(modules_crit_); 61 std::list<RtpRtcp*> rtp_modules_ GUARDED_BY(modules_crit_);
61 62
62 volatile int transport_seq_; 63 volatile int transport_seq_;
63 64
64 RTC_DISALLOW_COPY_AND_ASSIGN(PacketRouter); 65 RTC_DISALLOW_COPY_AND_ASSIGN(PacketRouter);
65 }; 66 };
66 } // namespace webrtc 67 } // namespace webrtc
67 #endif // WEBRTC_MODULES_PACING_PACKET_ROUTER_H_ 68 #endif // WEBRTC_MODULES_PACING_PACKET_ROUTER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender_unittest.cc ('k') | webrtc/modules/pacing/packet_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698