OLD | NEW |
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_ESTIMATOR_PARAMS_H_ | 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ |
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ | 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/optional.h" | 12 #include "base/optional.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "net/base/net_export.h" |
14 #include "net/base/network_change_notifier.h" | 15 #include "net/base/network_change_notifier.h" |
15 #include "net/nqe/effective_connection_type.h" | 16 #include "net/nqe/effective_connection_type.h" |
16 #include "net/nqe/network_quality.h" | 17 #include "net/nqe/network_quality.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 | 20 |
| 21 // Forces NQE to return a specific effective connection type. Set using the |
| 22 // |params| provided to the NetworkQualityEstimatorParams constructor. |
| 23 NET_EXPORT extern const char kForceEffectiveConnectionType[]; |
| 24 |
20 namespace nqe { | 25 namespace nqe { |
21 | 26 |
22 namespace internal { | 27 namespace internal { |
23 | 28 |
24 // NetworkQualityEstimatorParams computes the configuration parameters for | 29 // NetworkQualityEstimatorParams computes the configuration parameters for |
25 // the network quality estimator. | 30 // the network quality estimator. |
26 class NET_EXPORT_PRIVATE NetworkQualityEstimatorParams { | 31 class NET_EXPORT_PRIVATE NetworkQualityEstimatorParams { |
27 public: | 32 public: |
28 // |params| is the map containing all field trial parameters related to | 33 // |params| is the map containing all field trial parameters related to |
29 // NetworkQualityEstimator field trial. | 34 // NetworkQualityEstimator field trial. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorParams); | 120 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorParams); |
116 }; | 121 }; |
117 | 122 |
118 } // namespace internal | 123 } // namespace internal |
119 | 124 |
120 } // namespace nqe | 125 } // namespace nqe |
121 | 126 |
122 } // namespace net | 127 } // namespace net |
123 | 128 |
124 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ | 129 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ |
OLD | NEW |