Chromium Code Reviews| 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..0d9b413a0060c8f4e6a3409687cd66ff43fd3dbe |
| --- /dev/null |
| +++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h |
| @@ -0,0 +1,41 @@ |
| +// 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; |
| + |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| +namespace chrome_browser_net { |
| +class UINetworkQualityEstimatorService; |
|
tbansal1
2016/07/13 00:07:28
A linebreak after namespace.
RyanSturm
2016/07/13 17:28:15
Done.
|
| + |
| +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; |
| +}; |
| + |
| +} // namespace chrome_browser_net |
| + |
| +#endif // CHROME_BROWSER_NET_NQE_UI_NETWORK_QUALITY_ESTIMATOR_SERVICE_FACTORY_H_ |