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

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

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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 // 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_CORE_CONGESTION_CONTROL_RTT_STATS_H_ 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "net/base/net_export.h"
16 #include "net/quic/core/quic_bug_tracker.h" 15 #include "net/quic/core/quic_bug_tracker.h"
17 #include "net/quic/core/quic_packets.h" 16 #include "net/quic/core/quic_packets.h"
18 #include "net/quic/core/quic_time.h" 17 #include "net/quic/core/quic_time.h"
18 #include "net/quic/platform/api/quic_export.h"
19 19
20 namespace net { 20 namespace net {
21 21
22 namespace test { 22 namespace test {
23 class RttStatsPeer; 23 class RttStatsPeer;
24 } // namespace test 24 } // namespace test
25 25
26 class NET_EXPORT_PRIVATE RttStats { 26 class QUIC_EXPORT_PRIVATE RttStats {
27 public: 27 public:
28 RttStats(); 28 RttStats();
29 29
30 // Updates the RTT from an incoming ack which is received |send_delta| after 30 // Updates the RTT from an incoming ack which is received |send_delta| after
31 // the packet is sent and the peer reports the ack being delayed |ack_delay|. 31 // the packet is sent and the peer reports the ack being delayed |ack_delay|.
32 void UpdateRtt(QuicTime::Delta send_delta, 32 void UpdateRtt(QuicTime::Delta send_delta,
33 QuicTime::Delta ack_delay, 33 QuicTime::Delta ack_delay,
34 QuicTime now); 34 QuicTime now);
35 35
36 // Causes the smoothed_rtt to be increased to the latest_rtt if the latest_rtt 36 // Causes the smoothed_rtt to be increased to the latest_rtt if the latest_rtt
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // larger than the standard deviation, for a normally distributed signal. 81 // larger than the standard deviation, for a normally distributed signal.
82 QuicTime::Delta mean_deviation_; 82 QuicTime::Delta mean_deviation_;
83 int64_t initial_rtt_us_; 83 int64_t initial_rtt_us_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(RttStats); 85 DISALLOW_COPY_AND_ASSIGN(RttStats);
86 }; 86 };
87 87
88 } // namespace net 88 } // namespace net
89 89
90 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_ 90 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_RTT_STATS_H_
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/prr_sender.h ('k') | net/quic/core/congestion_control/send_algorithm_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698