OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 std::unique_ptr<BitrateController> bitrate_controller_; | 38 std::unique_ptr<BitrateController> bitrate_controller_; |
39 std::unique_ptr<RemoteBitrateEstimator> rbe_; | 39 std::unique_ptr<RemoteBitrateEstimator> rbe_; |
40 std::unique_ptr<RtcpBandwidthObserver> feedback_observer_; | 40 std::unique_ptr<RtcpBandwidthObserver> feedback_observer_; |
41 | 41 |
42 private: | 42 private: |
43 Clock* const clock_; | 43 Clock* const clock_; |
44 RTCPReportBlock report_block_; | 44 RTCPReportBlock report_block_; |
45 SendTimeHistory send_time_history_; | 45 SendTimeHistory send_time_history_; |
46 bool has_received_ack_; | 46 bool has_received_ack_; |
47 uint16_t last_acked_seq_num_; | 47 uint16_t last_acked_seq_num_; |
| 48 int64_t last_log_time_ms_; |
48 | 49 |
49 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FullBweSender); | 50 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FullBweSender); |
50 }; | 51 }; |
51 | 52 |
52 class SendSideBweReceiver : public BweReceiver { | 53 class SendSideBweReceiver : public BweReceiver { |
53 public: | 54 public: |
54 explicit SendSideBweReceiver(int flow_id); | 55 explicit SendSideBweReceiver(int flow_id); |
55 virtual ~SendSideBweReceiver(); | 56 virtual ~SendSideBweReceiver(); |
56 | 57 |
57 void ReceivePacket(int64_t arrival_time_ms, | 58 void ReceivePacket(int64_t arrival_time_ms, |
58 const MediaPacket& media_packet) override; | 59 const MediaPacket& media_packet) override; |
59 FeedbackPacket* GetFeedback(int64_t now_ms) override; | 60 FeedbackPacket* GetFeedback(int64_t now_ms) override; |
60 | 61 |
61 private: | 62 private: |
62 int64_t last_feedback_ms_; | 63 int64_t last_feedback_ms_; |
63 std::vector<PacketInfo> packet_feedback_vector_; | 64 std::vector<PacketInfo> packet_feedback_vector_; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace bwe | 67 } // namespace bwe |
67 } // namespace testing | 68 } // namespace testing |
68 } // namespace webrtc | 69 } // namespace webrtc |
69 | 70 |
70 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_SEND_SIDE_H_ | 71 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_SEND_SIDE_H_ |
OLD | NEW |