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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/packet_sender.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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 BandwidthEstimatorType estimator); 107 BandwidthEstimatorType estimator);
108 virtual ~PacedVideoSender(); 108 virtual ~PacedVideoSender();
109 109
110 void RunFor(int64_t time_ms, Packets* in_out) override; 110 void RunFor(int64_t time_ms, Packets* in_out) override;
111 111
112 // Implements PacedSender::Callback. 112 // Implements PacedSender::Callback.
113 bool TimeToSendPacket(uint32_t ssrc, 113 bool TimeToSendPacket(uint32_t ssrc,
114 uint16_t sequence_number, 114 uint16_t sequence_number,
115 int64_t capture_time_ms, 115 int64_t capture_time_ms,
116 bool retransmission, 116 bool retransmission,
117 int probe_cluster_id) override; 117 const PacedPacketInfo& pacing_info) override;
118 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id) override; 118 size_t TimeToSendPadding(size_t bytes,
119 const PacedPacketInfo& pacing_info) override;
119 120
120 // Implements BitrateObserver. 121 // Implements BitrateObserver.
121 void OnNetworkChanged(uint32_t target_bitrate_bps, 122 void OnNetworkChanged(uint32_t target_bitrate_bps,
122 uint8_t fraction_lost, 123 uint8_t fraction_lost,
123 int64_t rtt) override; 124 int64_t rtt) override;
124 125
125 private: 126 private:
126 int64_t TimeUntilNextProcess(const std::list<Module*>& modules); 127 int64_t TimeUntilNextProcess(const std::list<Module*>& modules);
127 void CallProcess(const std::list<Module*>& modules); 128 void CallProcess(const std::list<Module*>& modules);
128 void QueuePackets(Packets* batch, int64_t end_of_batch_time_us); 129 void QueuePackets(Packets* batch, int64_t end_of_batch_time_us);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 int total_sent_bytes_; 188 int total_sent_bytes_;
188 int send_limit_bytes_; // Initialized by default as kNoLimit. 189 int send_limit_bytes_; // Initialized by default as kNoLimit.
189 int64_t last_generated_packets_ms_; 190 int64_t last_generated_packets_ms_;
190 size_t num_recent_sent_packets_; 191 size_t num_recent_sent_packets_;
191 uint32_t bitrate_kbps_; 192 uint32_t bitrate_kbps_;
192 }; 193 };
193 } // namespace bwe 194 } // namespace bwe
194 } // namespace testing 195 } // namespace testing
195 } // namespace webrtc 196 } // namespace webrtc
196 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_ 197 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_PACKET_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698