| Index: chrome/browser/metrics/network_quality_estimator_provider_impl.h
|
| diff --git a/chrome/browser/metrics/network_quality_estimator_provider_impl.h b/chrome/browser/metrics/network_quality_estimator_provider_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9495d8d9e8ae9e4f91992f37aab3c6e50e950fa9
|
| --- /dev/null
|
| +++ b/chrome/browser/metrics/network_quality_estimator_provider_impl.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_
|
| +#define CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/threading/thread_checker.h"
|
| +#include "components/metrics/net/network_metrics_provider.h"
|
| +
|
| +class IOThread;
|
| +
|
| +namespace metrics {
|
| +
|
| +// Implements NetworkMetricsProvider::NetworkQualityEstimatorProvider. Provides
|
| +// NetworkQualityEstimator by querying the IOThread.
|
| +class NetworkQualityEstimatorProviderImpl
|
| + : public NetworkMetricsProvider::NetworkQualityEstimatorProvider {
|
| + public:
|
| + explicit NetworkQualityEstimatorProviderImpl(IOThread* io_thread);
|
| + ~NetworkQualityEstimatorProviderImpl() override;
|
| +
|
| + private:
|
| + // NetworkMetricsProvider::NetworkQualityEstimatorProvider:
|
| + scoped_refptr<base::SequencedTaskRunner> GetTaskRunner() override;
|
| + net::NetworkQualityEstimator* GetNetworkQualityEstimator() override;
|
| +
|
| + IOThread* io_thread_;
|
| +
|
| + base::ThreadChecker thread_checker_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimatorProviderImpl);
|
| +};
|
| +
|
| +} // namespace metrics
|
| +
|
| +#endif // CHROME_BROWSER_METRICS_NETWORK_QUALITY_ESTIMATOR_PROVIDER_IMPL_H_
|
|
|