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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/estimators/remb.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 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) 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 int64_t TimeUntilNextProcess() override; 37 int64_t TimeUntilNextProcess() override;
38 int Process() override; 38 int Process() override;
39 39
40 protected: 40 protected:
41 rtc::scoped_ptr<BitrateController> bitrate_controller_; 41 rtc::scoped_ptr<BitrateController> bitrate_controller_;
42 rtc::scoped_ptr<RtcpBandwidthObserver> feedback_observer_; 42 rtc::scoped_ptr<RtcpBandwidthObserver> feedback_observer_;
43 43
44 private: 44 private:
45 Clock* clock_; 45 Clock* clock_;
46 46
47 DISALLOW_IMPLICIT_CONSTRUCTORS(RembBweSender); 47 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembBweSender);
48 }; 48 };
49 49
50 class RembReceiver : public BweReceiver, public RemoteBitrateObserver { 50 class RembReceiver : public BweReceiver, public RemoteBitrateObserver {
51 public: 51 public:
52 static const uint32_t kRemoteBitrateEstimatorMinBitrateBps = 30000; 52 static const uint32_t kRemoteBitrateEstimatorMinBitrateBps = 30000;
53 53
54 RembReceiver(int flow_id, bool plot); 54 RembReceiver(int flow_id, bool plot);
55 virtual ~RembReceiver(); 55 virtual ~RembReceiver();
56 56
57 void ReceivePacket(int64_t arrival_time_ms, 57 void ReceivePacket(int64_t arrival_time_ms,
58 const MediaPacket& media_packet) override; 58 const MediaPacket& media_packet) override;
59 FeedbackPacket* GetFeedback(int64_t now_ms) override; 59 FeedbackPacket* GetFeedback(int64_t now_ms) override;
60 // Implements RemoteBitrateObserver. 60 // Implements RemoteBitrateObserver.
61 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, 61 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs,
62 unsigned int bitrate) override; 62 unsigned int bitrate) override;
63 63
64 private: 64 private:
65 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician); 65 static RTCPReportBlock BuildReportBlock(StreamStatistician* statistician);
66 bool LatestEstimate(uint32_t* estimate_bps); 66 bool LatestEstimate(uint32_t* estimate_bps);
67 67
68 std::string estimate_log_prefix_; 68 std::string estimate_log_prefix_;
69 bool plot_estimate_; 69 bool plot_estimate_;
70 SimulatedClock clock_; 70 SimulatedClock clock_;
71 rtc::scoped_ptr<ReceiveStatistics> recv_stats_; 71 rtc::scoped_ptr<ReceiveStatistics> recv_stats_;
72 int64_t latest_estimate_bps_; 72 int64_t latest_estimate_bps_;
73 int64_t last_feedback_ms_; 73 int64_t last_feedback_ms_;
74 rtc::scoped_ptr<RemoteBitrateEstimator> estimator_; 74 rtc::scoped_ptr<RemoteBitrateEstimator> estimator_;
75 75
76 DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver); 76 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RembReceiver);
77 }; 77 };
78 78
79 } // namespace bwe 79 } // namespace bwe
80 } // namespace testing 80 } // namespace testing
81 } // namespace webrtc 81 } // namespace webrtc
82 82
83 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_ 83 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_REMB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698