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

Side by Side Diff: net/nqe/network_quality.h

Issue 2128793003: Factor out NetworkID and caching mechanism from n_q_e.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_NQE_NETWORK_QUALITY_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_H_
6 #define NET_NQE_NETWORK_QUALITY_H_ 6 #define NET_NQE_NETWORK_QUALITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 25 matching lines...) Expand all
36 // layer. |downstream_throughput_kbps| is the estimate of the downstream 36 // layer. |downstream_throughput_kbps| is the estimate of the downstream
37 // throughput in kilobits per second. 37 // throughput in kilobits per second.
38 NetworkQuality(const base::TimeDelta& http_rtt, 38 NetworkQuality(const base::TimeDelta& http_rtt,
39 const base::TimeDelta& transport_rtt, 39 const base::TimeDelta& transport_rtt,
40 int32_t downstream_throughput_kbps); 40 int32_t downstream_throughput_kbps);
41 NetworkQuality(const NetworkQuality& other); 41 NetworkQuality(const NetworkQuality& other);
42 ~NetworkQuality(); 42 ~NetworkQuality();
43 43
44 NetworkQuality& operator=(const NetworkQuality& other); 44 NetworkQuality& operator=(const NetworkQuality& other);
45 45
46 bool operator==(const NetworkQuality& other) const;
47
46 // Returns the estimate of the round trip time at the HTTP layer. 48 // Returns the estimate of the round trip time at the HTTP layer.
47 const base::TimeDelta& http_rtt() const { return http_rtt_; } 49 const base::TimeDelta& http_rtt() const { return http_rtt_; }
48 50
49 void set_http_rtt(const base::TimeDelta& http_rtt) { http_rtt_ = http_rtt; } 51 void set_http_rtt(const base::TimeDelta& http_rtt) { http_rtt_ = http_rtt; }
50 52
51 // Returns the estimate of the round trip time at the transport layer. 53 // Returns the estimate of the round trip time at the transport layer.
52 const base::TimeDelta& transport_rtt() const { return transport_rtt_; } 54 const base::TimeDelta& transport_rtt() const { return transport_rtt_; }
53 55
54 void set_transport_rtt(const base::TimeDelta& transport_rtt) { 56 void set_transport_rtt(const base::TimeDelta& transport_rtt) {
55 transport_rtt_ = transport_rtt; 57 transport_rtt_ = transport_rtt;
(...skipping 20 matching lines...) Expand all
76 int32_t downstream_throughput_kbps_; 78 int32_t downstream_throughput_kbps_;
77 }; 79 };
78 80
79 } // namespace internal 81 } // namespace internal
80 82
81 } // namespace nqe 83 } // namespace nqe
82 84
83 } // namespace net 85 } // namespace net
84 86
85 #endif // NET_NQE_NETWORK_QUALITY_H_ 87 #endif // NET_NQE_NETWORK_QUALITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698