blob: 5815eb1d33aae5445c296b84e62df6b974a610e0 [file] [log] [blame]
// 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_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_FACTORY_H_
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "chrome/browser/chromeos/printing/printer_pref_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
namespace content {
class BrowserContext;
}
namespace chromeos {
class PrinterPrefManagerFactory : public BrowserContextKeyedServiceFactory {
public:
static PrinterPrefManager* GetForBrowserContext(
content::BrowserContext* context);
static PrinterPrefManagerFactory* GetInstance();
private:
friend struct base::DefaultLazyInstanceTraits<PrinterPrefManagerFactory>;
PrinterPrefManagerFactory();
~PrinterPrefManagerFactory() override;
// BrowserContextKeyedServiceFactory implementation:
PrinterPrefManager* BuildServiceInstanceFor(
content::BrowserContext* browser_context) const override;
DISALLOW_COPY_AND_ASSIGN(PrinterPrefManagerFactory);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_PRINTING_PRINTER_PREF_MANAGER_FACTORY_H_