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

Side by Side Diff: net/quic/congestion_control/time_loss_algorithm.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
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm.h ('k') | net/quic/crypto/aead_base_decrypter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_ 5 #ifndef NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
6 #define NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_ 6 #define NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // Returns the time the next packet will be lost, or zero if there 37 // Returns the time the next packet will be lost, or zero if there
38 // are no nacked pending packets outstanding. 38 // are no nacked pending packets outstanding.
39 // TODO(ianswett): Ideally the RTT variance and the RTT would be used to 39 // TODO(ianswett): Ideally the RTT variance and the RTT would be used to
40 // determine the time a packet is considered lost. 40 // determine the time a packet is considered lost.
41 // TODO(ianswett): Consider using Max(1.25 * srtt, 1.125 * last_rtt). 41 // TODO(ianswett): Consider using Max(1.25 * srtt, 1.125 * last_rtt).
42 virtual QuicTime GetLossTimeout() const OVERRIDE; 42 virtual QuicTime GetLossTimeout() const OVERRIDE;
43 43
44 private: 44 private:
45 QuicTime loss_detection_timeout_; 45 QuicTime loss_detection_timeout_;
46
47 DISALLOW_COPY_AND_ASSIGN(TimeLossAlgorithm);
46 }; 48 };
47 49
48 } // namespace net 50 } // namespace net
49 51
50 #endif // NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_ 52 #endif // NET_QUIC_CONGESTION_CONTROL_TIME_LOSS_ALGORITHM_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_loss_algorithm.h ('k') | net/quic/crypto/aead_base_decrypter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698