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

Side by Side Diff: net/quic/congestion_control/rtt_stats.h

Issue 242643009: Added DISALLOW_COPY_AND_ASSIGN to disable copy/assign. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merging with TOT and internal CL: 65311983 Created 6 years, 8 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 | Annotate | Revision Log
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 // A convenience class to store rtt samples and calculate smoothed rtt. 5 // A convenience class to store rtt samples and calculate smoothed rtt.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_
8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private: 52 private:
53 QuicTime::Delta latest_rtt_; 53 QuicTime::Delta latest_rtt_;
54 QuicTime::Delta min_rtt_; 54 QuicTime::Delta min_rtt_;
55 QuicTime::Delta smoothed_rtt_; 55 QuicTime::Delta smoothed_rtt_;
56 // Mean RTT deviation during this session. 56 // Mean RTT deviation during this session.
57 // Approximation of standard deviation, the error is roughly 1.25 times 57 // Approximation of standard deviation, the error is roughly 1.25 times
58 // larger than the standard deviation, for a normally distributed signal. 58 // larger than the standard deviation, for a normally distributed signal.
59 QuicTime::Delta mean_deviation_; 59 QuicTime::Delta mean_deviation_;
60 int64 initial_rtt_us_; 60 int64 initial_rtt_us_;
61
62 DISALLOW_COPY_AND_ASSIGN(RttStats);
61 }; 63 };
62 64
63 } // namespace net 65 } // namespace net
64 66
65 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_ 67 #endif // NET_QUIC_CONGESTION_CONTROL_RTT_STATS_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/cube_root.h ('k') | net/quic/congestion_control/tcp_loss_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698