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"
19 class PrinterDetector
;
21 class PrinterDetectorFactory
: public BrowserContextKeyedServiceFactory
{
23 static PrinterDetectorFactory
* GetInstance();
25 PrinterDetector
* Get(content::BrowserContext
* context
);
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_