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

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

Issue 2850003002: Add flag to override Effective Connection Type (Closed)
Patch Set: ryansturm nits Created 3 years, 7 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_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/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "net/base/net_export.h"
13 #include "net/base/network_change_notifier.h" 14 #include "net/base/network_change_notifier.h"
14 #include "net/nqe/effective_connection_type.h" 15 #include "net/nqe/effective_connection_type.h"
15 #include "net/nqe/network_quality.h" 16 #include "net/nqe/network_quality.h"
16 17
17 namespace net { 18 namespace net {
18 19
20 // Forces NQE to return a specific effective connection type. Set using the
21 // |params| provided to the NetworkQualityEstimatorParams constructor.
22 NET_EXPORT extern const char kForceEffectiveConnectionType[];
23
19 namespace nqe { 24 namespace nqe {
20 25
21 namespace internal { 26 namespace internal {
22 27
23 // NetworkQualityEstimatorParams computes the configuration parameters for 28 // NetworkQualityEstimatorParams computes the configuration parameters for
24 // the network quality estimator. 29 // the network quality estimator.
25 class NetworkQualityEstimatorParams { 30 class NetworkQualityEstimatorParams {
26 public: 31 public:
27 // |params| is the map containing all field trial parameters related to 32 // |params| is the map containing all field trial parameters related to
28 // NetworkQualityEstimator field trial. 33 // NetworkQualityEstimator field trial.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorParams); 101 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorParams);
97 }; 102 };
98 103
99 } // namespace internal 104 } // namespace internal
100 105
101 } // namespace nqe 106 } // namespace nqe
102 107
103 } // namespace net 108 } // namespace net
104 109
105 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ 110 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698