| Index: chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h
|
| diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h b/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fb025bf3a235596390b1649c6b1ff8bad29b3a13
|
| --- /dev/null
|
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2016 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_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_FACTORY_H_
|
| +#define CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_FACTORY_H_
|
| +
|
| +#include "base/memory/singleton.h"
|
| +#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| +
|
| +class Profile;
|
| +class UINetworkQualityEstimatorService;
|
| +
|
| +namespace content {
|
| +class BrowserContext;
|
| +}
|
| +
|
| +class UINetworkQualityEstimatorServiceFactory
|
| + : public BrowserContextKeyedServiceFactory {
|
| + public:
|
| + static UINetworkQualityEstimatorService* GetForProfile(Profile* profile);
|
| +
|
| + static UINetworkQualityEstimatorServiceFactory* GetInstance();
|
| +
|
| + private:
|
| + friend struct base::DefaultSingletonTraits<
|
| + UINetworkQualityEstimatorServiceFactory>;
|
| +
|
| + UINetworkQualityEstimatorServiceFactory();
|
| + ~UINetworkQualityEstimatorServiceFactory() override;
|
| +
|
| + // BrowserContextKeyedServiceFactory:
|
| + KeyedService* BuildServiceInstanceFor(
|
| + content::BrowserContext* context) const override;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_FACTORY_H_
|
|
|