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 CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_ | |
6 #define CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "base/macros.h" | |
10 #include "base/threading/thread_checker.h" | |
11 #include "components/metrics/net/network_metrics_provider.h" | |
12 | |
13 class IOThread; | |
14 | |
15 namespace metrics { | |
16 | |
17 // Implements NetworkMetricsProvider::NetworkQualityEstimatorProvider. Provides | |
18 // NetworkQualityEstimator by querying the IOThread. | |
19 class NetworkQualityEstimatorProviderImpl | |
20 : public NetworkMetricsProvider::NetworkQualityEstimatorProvider { | |
21 public: | |
22 explicit NetworkQualityEstimatorProviderImpl(IOThread* io_thread); | |
23 ~NetworkQualityEstimatorProviderImpl() override; | |
24 | |
25 private: | |
26 // NetworkMetricsProvider::NetworkQualityEstimatorProvider implementation: | |
Alexei Svitkine (slow)
2017/01/04 20:54:21
Nit: For new code, I think this comment syntax is
tbansal1
2017/01/04 21:24:19
Done.
| |
27 scoped_refptr<base::SequencedTaskRunner> GetTaskRunner() override; | |
28 | |
Alexei Svitkine (slow)
2017/01/04 20:54:21
Nit: Remove blank line.
tbansal1
2017/01/04 21:24:19
Done.
| |
29 void ProvideEstimator( | |
30 const base::Callback<void(net::NetworkQualityEstimator*)>& callback) | |
31 override; | |
32 | |
33 IOThread* io_thread_; | |
34 | |
35 base::ThreadChecker thread_checker_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorProviderImpl); | |
38 }; | |
39 | |
40 } // namespace metrics | |
41 | |
42 #endif // CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_ | |
OLD | NEW |