| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/rtt_stats.h" | 5 #include "net/quic/core/congestion_control/rtt_stats.h" |
| 6 | 6 |
| 7 #include <cstdlib> // std::abs | 7 #include <cstdlib> // std::abs |
| 8 | 8 |
| 9 #include "net/quic/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
| 10 | 10 |
| 11 using std::max; | 11 using std::max; |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Default initial rtt used before any samples are received. | 17 // Default initial rtt used before any samples are received. |
| 18 const int kInitialRttMs = 100; | 18 const int kInitialRttMs = 100; |
| 19 const float kAlpha = 0.125f; | 19 const float kAlpha = 0.125f; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 latest_rtt_ = QuicTime::Delta::Zero(); | 121 latest_rtt_ = QuicTime::Delta::Zero(); |
| 122 min_rtt_ = QuicTime::Delta::Zero(); | 122 min_rtt_ = QuicTime::Delta::Zero(); |
| 123 smoothed_rtt_ = QuicTime::Delta::Zero(); | 123 smoothed_rtt_ = QuicTime::Delta::Zero(); |
| 124 mean_deviation_ = QuicTime::Delta::Zero(); | 124 mean_deviation_ = QuicTime::Delta::Zero(); |
| 125 initial_rtt_us_ = kInitialRttMs * kNumMicrosPerMilli; | 125 initial_rtt_us_ = kInitialRttMs * kNumMicrosPerMilli; |
| 126 num_samples_for_forced_min_ = 0; | 126 num_samples_for_forced_min_ = 0; |
| 127 windowed_min_rtt_.Reset(QuicTime::Delta::Zero(), QuicTime::Zero()); | 127 windowed_min_rtt_.Reset(QuicTime::Delta::Zero(), QuicTime::Zero()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace net | 130 } // namespace net |
| OLD | NEW |