| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/congestion_control/fix_rate_sender.h" | 5 #include "net/quic/congestion_control/fix_rate_sender.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 QuicTime::Delta FixRateSender::RetransmissionDelay() const { | 94 QuicTime::Delta FixRateSender::RetransmissionDelay() const { |
| 95 // TODO(pwestin): Calculate and return retransmission delay. | 95 // TODO(pwestin): Calculate and return retransmission delay. |
| 96 // Use 2 * the latest RTT for now. | 96 // Use 2 * the latest RTT for now. |
| 97 return latest_rtt_.Add(latest_rtt_); | 97 return latest_rtt_.Add(latest_rtt_); |
| 98 } | 98 } |
| 99 | 99 |
| 100 QuicByteCount FixRateSender::GetCongestionWindow() const { | 100 QuicByteCount FixRateSender::GetCongestionWindow() const { |
| 101 return 0; | 101 return 0; |
| 102 } | 102 } |
| 103 | 103 |
| 104 QuicByteCount FixRateSender::GetSlowStartThreshold() const { |
| 105 return 0; |
| 106 } |
| 107 |
| 104 } // namespace net | 108 } // namespace net |
| OLD | NEW |