| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 : observer_(observer), | 57 : observer_(observer), |
| 58 clock_(clock), | 58 clock_(clock), |
| 59 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), | 59 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), |
| 60 rbe_(new RemoteBitrateEstimatorSingleStream(observer_, clock_)), | 60 rbe_(new RemoteBitrateEstimatorSingleStream(observer_, clock_)), |
| 61 using_absolute_send_time_(false), | 61 using_absolute_send_time_(false), |
| 62 packets_since_absolute_send_time_(0), | 62 packets_since_absolute_send_time_(0), |
| 63 min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps) {} | 63 min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps) {} |
| 64 | 64 |
| 65 virtual ~WrappingBitrateEstimator() {} | 65 virtual ~WrappingBitrateEstimator() {} |
| 66 | 66 |
| 67 void IncomingPacketFeedbackVector( |
| 68 const std::vector<PacketInfo>& packet_feedback_vector) override { |
| 69 assert(false); |
| 70 } |
| 71 |
| 67 void IncomingPacket(int64_t arrival_time_ms, | 72 void IncomingPacket(int64_t arrival_time_ms, |
| 68 size_t payload_size, | 73 size_t payload_size, |
| 69 const RTPHeader& header) override { | 74 const RTPHeader& header) override { |
| 70 CriticalSectionScoped cs(crit_sect_.get()); | 75 CriticalSectionScoped cs(crit_sect_.get()); |
| 71 PickEstimatorFromHeader(header); | 76 PickEstimatorFromHeader(header); |
| 72 rbe_->IncomingPacket(arrival_time_ms, payload_size, header); | 77 rbe_->IncomingPacket(arrival_time_ms, payload_size, header); |
| 73 } | 78 } |
| 74 | 79 |
| 75 void Process() override { | 80 void Process() override { |
| 76 CriticalSectionScoped cs(crit_sect_.get()); | 81 CriticalSectionScoped cs(crit_sect_.get()); |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool CongestionController::IsSendQueueFull() const { | 377 bool CongestionController::IsSendQueueFull() const { |
| 373 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; | 378 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; |
| 374 } | 379 } |
| 375 | 380 |
| 376 bool CongestionController::IsNetworkDown() const { | 381 bool CongestionController::IsNetworkDown() const { |
| 377 rtc::CritScope cs(&critsect_); | 382 rtc::CritScope cs(&critsect_); |
| 378 return network_state_ == kNetworkDown; | 383 return network_state_ == kNetworkDown; |
| 379 } | 384 } |
| 380 | 385 |
| 381 } // namespace webrtc | 386 } // namespace webrtc |
| OLD | NEW |