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

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

Issue 2721463003: Remove unused RemoteBitrateEstimator::IncomingPacketFeedbackVector() (Closed)
Patch Set: Rebased Created 3 years, 9 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 28 matching lines...) Expand all
39 virtual ~RemoteBitrateObserver() {} 39 virtual ~RemoteBitrateObserver() {}
40 }; 40 };
41 41
42 // TODO(holmer): Remove when all implementations have been updated. 42 // TODO(holmer): Remove when all implementations have been updated.
43 struct ReceiveBandwidthEstimatorStats {}; 43 struct ReceiveBandwidthEstimatorStats {};
44 44
45 class RemoteBitrateEstimator : public CallStatsObserver, public Module { 45 class RemoteBitrateEstimator : public CallStatsObserver, public Module {
46 public: 46 public:
47 virtual ~RemoteBitrateEstimator() {} 47 virtual ~RemoteBitrateEstimator() {}
48 48
49 virtual void IncomingPacketFeedbackVector(
50 const std::vector<PacketInfo>& packet_feedback_vector) {
51 assert(false);
52 }
53
54 // Called for each incoming packet. Updates the incoming payload bitrate 49 // Called for each incoming packet. Updates the incoming payload bitrate
55 // estimate and the over-use detector. If an over-use is detected the 50 // estimate and the over-use detector. If an over-use is detected the
56 // remote bitrate estimate will be updated. Note that |payload_size| is the 51 // remote bitrate estimate will be updated. Note that |payload_size| is the
57 // packet size excluding headers. 52 // packet size excluding headers.
58 // Note that |arrival_time_ms| can be of an arbitrary time base. 53 // Note that |arrival_time_ms| can be of an arbitrary time base.
59 virtual void IncomingPacket(int64_t arrival_time_ms, 54 virtual void IncomingPacket(int64_t arrival_time_ms,
60 size_t payload_size, 55 size_t payload_size,
61 const RTPHeader& header) = 0; 56 const RTPHeader& header) = 0;
62 57
63 // Removes all data for |ssrc|. 58 // Removes all data for |ssrc|.
(...skipping 13 matching lines...) Expand all
77 virtual void SetMinBitrate(int min_bitrate_bps) = 0; 72 virtual void SetMinBitrate(int min_bitrate_bps) = 0;
78 73
79 protected: 74 protected:
80 static const int64_t kProcessIntervalMs = 500; 75 static const int64_t kProcessIntervalMs = 500;
81 static const int64_t kStreamTimeOutMs = 2000; 76 static const int64_t kStreamTimeOutMs = 2000;
82 }; 77 };
83 78
84 } // namespace webrtc 79 } // namespace webrtc
85 80
86 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA TOR_H_ 81 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_REMOTE_BITRATE_ESTIMA TOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698