Add explicit |forceOnlineSignin| to user pod status
[chromium-blink-merge.git] / net / quic / congestion_control / fix_rate_receiver.cc
blob950b49c0d6ba166129f406a7801328b13ef80981
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/quic/congestion_control/fix_rate_receiver.h"
7 #include "base/basictypes.h"
8 #include "net/quic/congestion_control/receive_algorithm_interface.h"
10 namespace {
11 static const int kInitialBitrate = 100000; // In bytes per second.
14 namespace net {
16 FixRateReceiver::FixRateReceiver()
17 : configured_rate_(QuicBandwidth::FromBytesPerSecond(kInitialBitrate)) {
20 bool FixRateReceiver::GenerateCongestionFeedback(
21 QuicCongestionFeedbackFrame* feedback) {
22 feedback->type = kFixRate;
23 feedback->fix_rate.bitrate = configured_rate_;
24 return true;
27 void FixRateReceiver::RecordIncomingPacket(
28 QuicByteCount /*bytes*/,
29 QuicPacketSequenceNumber /*sequence_number*/,
30 QuicTime /*timestamp*/,
31 bool /*recovered*/) {
32 // Nothing to do for this simple implementation.
35 } // namespace net