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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/fix_rate_receiver.cc
diff --git a/net/quic/congestion_control/fix_rate_receiver.cc b/net/quic/congestion_control/fix_rate_receiver.cc
deleted file mode 100644
index a13362ff226b14266cd24e0cf0144494080a9931..0000000000000000000000000000000000000000
--- a/net/quic/congestion_control/fix_rate_receiver.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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; // In bytes per second.
-}
-
-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 /*bytes*/,
- QuicPacketSequenceNumber /*sequence_number*/,
- QuicTime /*timestamp*/) {
- // Nothing to do for this simple implementation.
-}
-
-} // namespace net
« 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