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

Side by Side Diff: net/quic/core/congestion_control/rtt_stats.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/rtt_stats.h ('k') | net/quic/core/congestion_control/rtt_stats_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698