1 // Copyright 2017 The Chromium Authors
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_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_
6 #define CHROME_BROWSER_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_
8 #include "base/no_destructor.h"
9 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
11 class FontPrefChangeNotifier;
14 // Keyed service factory for a FontPrefChangeNotifier.
15 class FontPrefChangeNotifierFactory : public ProfileKeyedServiceFactory {
17 static FontPrefChangeNotifier* GetForProfile(Profile* profile);
19 static FontPrefChangeNotifierFactory* GetInstance();
22 friend base::NoDestructor<FontPrefChangeNotifierFactory>;
24 FontPrefChangeNotifierFactory();
25 ~FontPrefChangeNotifierFactory() override;
27 // BrowserContextKeyedServiceFactory overrides:
28 std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext(
29 content::BrowserContext* context) const override;
32 #endif // CHROME_BROWSER_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_