[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / font_pref_change_notifier_factory.h
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.
4
5 #ifndef CHROME_BROWSER_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_
6 #define CHROME_BROWSER_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_
7
8 #include "base/no_destructor.h"
9 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
10
11 class FontPrefChangeNotifier;
12 class Profile;
13
14 // Keyed service factory for a FontPrefChangeNotifier.
15 class FontPrefChangeNotifierFactory : public ProfileKeyedServiceFactory {
16  public:
17   static FontPrefChangeNotifier* GetForProfile(Profile* profile);
18
19   static FontPrefChangeNotifierFactory* GetInstance();
20
21  private:
22   friend base::NoDestructor<FontPrefChangeNotifierFactory>;
23
24   FontPrefChangeNotifierFactory();
25   ~FontPrefChangeNotifierFactory() override;
26
27   // BrowserContextKeyedServiceFactory overrides:
28   std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext(
29       content::BrowserContext* context) const override;
30 };
31
32 #endif  // CHROME_BROWSER_FONT_PREF_CHANGE_NOTIFIER_FACTORY_H_