OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NET_NQE_NETWORK_QUALITY_RTT_THROUGHPUT_ESTIMATES_OBSERVER_H_ | |
6 #define NET_NQE_NETWORK_QUALITY_RTT_THROUGHPUT_ESTIMATES_OBSERVER_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/compiler_specific.h" | |
11 #include "base/gtest_prod_util.h" | |
mmenke
2017/06/06 15:56:58
Not used?
tbansal1
2017/06/06 16:55:51
Done.
| |
12 #include "base/macros.h" | |
13 | |
14 namespace net { | |
15 | |
16 // Observes changes in the network quality. | |
17 class NET_EXPORT RTTAndThroughputEstimatesObserver { | |
mmenke
2017/06/06 15:56:58
include net/base/net_export.h
tbansal1
2017/06/06 16:55:51
Done.
| |
18 public: | |
19 // Notifies the observer when estimated HTTP RTT, estimated transport RTT or | |
20 // estimated downstream throughput is computed. NetworkQualityEstimator | |
21 // computes the RTT and throughput estimates at regular intervals. | |
22 // Additionally, when there is a change in the connection type of the | |
23 // device, then the estimates are immediately computed. | |
24 // | |
25 // |http_rtt|, |transport_rtt| and |downstream_throughput_kbps| are the | |
26 // computed estimates of the HTTP RTT, transport RTT and downstream | |
27 // throughput (in kilobits per second), respectively. If an estimate of the | |
28 // HTTP or transport RTT is unavailable, it will be set to | |
29 // nqe::internal::InvalidRTT(). If the throughput estimate is unavailable, | |
30 // it will be set to nqe::internal::kInvalidThroughput. | |
31 virtual void OnRTTOrThroughputEstimatesComputed( | |
32 base::TimeDelta http_rtt, | |
33 base::TimeDelta transport_rtt, | |
mmenke
2017/06/06 15:56:58
should include base/time.h
tbansal1
2017/06/06 16:55:51
Done.
| |
34 int32_t downstream_throughput_kbps) = 0; | |
35 | |
36 virtual ~RTTAndThroughputEstimatesObserver() {} | |
37 | |
38 protected: | |
39 RTTAndThroughputEstimatesObserver() {} | |
40 | |
41 private: | |
42 DISALLOW_COPY_AND_ASSIGN(RTTAndThroughputEstimatesObserver); | |
43 }; | |
44 | |
45 } // namespace net | |
46 | |
47 #endif // NET_NQE_NETWORK_QUALITY_RTT_THROUGHPUT_ESTIMATES_OBSERVER_H_ | |
OLD | NEW |