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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/include/send_time_history.h

Issue 2918323002: Add functionality which limits the number of bytes on the network. (Closed)
Patch Set: Switch to max-rtt within a feedback message and fix race. Created 3 years, 4 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 20 matching lines...) Expand all
31 31
32 // Updates packet info identified by |sequence_number| with |send_time_ms|. 32 // Updates packet info identified by |sequence_number| with |send_time_ms|.
33 // Return false if not found. 33 // Return false if not found.
34 bool OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); 34 bool OnSentPacket(uint16_t sequence_number, int64_t send_time_ms);
35 35
36 // Look up PacketFeedback for a sent packet, based on the sequence number, and 36 // Look up PacketFeedback for a sent packet, based on the sequence number, and
37 // populate all fields except for arrival_time. The packet parameter must 37 // populate all fields except for arrival_time. The packet parameter must
38 // thus be non-null and have the sequence_number field set. 38 // thus be non-null and have the sequence_number field set.
39 bool GetFeedback(PacketFeedback* packet_feedback, bool remove); 39 bool GetFeedback(PacketFeedback* packet_feedback, bool remove);
40 40
41 size_t GetOutstandingBytes(uint16_t local_net_id,
42 uint16_t remote_net_id) const;
43
41 private: 44 private:
42 const Clock* const clock_; 45 const Clock* const clock_;
43 const int64_t packet_age_limit_ms_; 46 const int64_t packet_age_limit_ms_;
44 SequenceNumberUnwrapper seq_num_unwrapper_; 47 SequenceNumberUnwrapper seq_num_unwrapper_;
45 std::map<int64_t, PacketFeedback> history_; 48 std::map<int64_t, PacketFeedback> history_;
49 rtc::Optional<int64_t> latest_acked_seq_num_;
46 50
47 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendTimeHistory); 51 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(SendTimeHistory);
48 }; 52 };
49 53
50 } // namespace webrtc 54 } // namespace webrtc
51 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_SEND_TIME_HISTORY_H_ 55 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_SEND_TIME_HISTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698