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

Side by Side Diff: net/quic/congestion_control/fix_rate_receiver.cc

Issue 424903002: Remove FixRate congestion frame type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_quic_version_15_71718286
Patch Set: Created 6 years, 4 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
(Empty)
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.
4
5 #include "net/quic/congestion_control/fix_rate_receiver.h"
6
7 #include "base/basictypes.h"
8 #include "net/quic/congestion_control/receive_algorithm_interface.h"
9
10 namespace {
11 static const int kInitialBitrate = 100000; // In bytes per second.
12 }
13
14 namespace net {
15
16 FixRateReceiver::FixRateReceiver()
17 : configured_rate_(QuicBandwidth::FromBytesPerSecond(kInitialBitrate)) {
18 }
19
20 bool FixRateReceiver::GenerateCongestionFeedback(
21 QuicCongestionFeedbackFrame* feedback) {
22 feedback->type = kFixRate;
23 feedback->fix_rate.bitrate = configured_rate_;
24 return true;
25 }
26
27 void FixRateReceiver::RecordIncomingPacket(
28 QuicByteCount /*bytes*/,
29 QuicPacketSequenceNumber /*sequence_number*/,
30 QuicTime /*timestamp*/) {
31 // Nothing to do for this simple implementation.
32 }
33
34 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/fix_rate_receiver.h ('k') | net/quic/congestion_control/fix_rate_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698