This source file includes following definitions.
- GenerateCongestionFeedback
- RecordIncomingPacket
#include "net/quic/congestion_control/fix_rate_receiver.h"
#include "base/basictypes.h"
#include "net/quic/congestion_control/receive_algorithm_interface.h"
namespace {
static const int kInitialBitrate = 100000;
}
namespace net {
FixRateReceiver::FixRateReceiver()
: configured_rate_(QuicBandwidth::FromBytesPerSecond(kInitialBitrate)) {
}
bool FixRateReceiver::GenerateCongestionFeedback(
QuicCongestionFeedbackFrame* feedback) {
feedback->type = kFixRate;
feedback->fix_rate.bitrate = configured_rate_;
return true;
}
void FixRateReceiver::RecordIncomingPacket(
QuicByteCount ,
QuicPacketSequenceNumber ,
QuicTime ) {
}
}