Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / printer_detector / printer_detector_factory.h
blob08a3097848f65e7df1044a5281015a16404a8d86
1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_PRINTER_DETECTOR_PRINTER_DETECTOR_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_PRINTER_DETECTOR_PRINTER_DETECTOR_FACTORY_H_
8 #include "base/lazy_instance.h"
9 #include "base/macros.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
11 #include "extensions/browser/extension_system_provider.h"
13 namespace content {
14 class BrowserContext;
17 namespace chromeos {
19 class PrinterDetector;
21 class PrinterDetectorFactory : public BrowserContextKeyedServiceFactory {
22 public:
23 static PrinterDetectorFactory* GetInstance();
25 PrinterDetector* Get(content::BrowserContext* context);
27 private:
28 friend struct base::DefaultLazyInstanceTraits<PrinterDetectorFactory>;
29 PrinterDetectorFactory();
30 ~PrinterDetectorFactory() override;
32 KeyedService* BuildServiceInstanceFor(
33 content::BrowserContext* browser_context) const override;
34 bool ServiceIsCreatedWithBrowserContext() const override;
35 bool ServiceIsNULLWhileTesting() const override;
37 DISALLOW_COPY_AND_ASSIGN(PrinterDetectorFactory);
40 } // namespace chromeos
42 #endif // CHROME_BROWSER_CHROMEOS_PRINTER_DETECTOR_PRINTER_DETECTOR_FACTORY_H_