Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors |
peter | c400791 | 2015-07-31 21:13:37 | [diff] [blame] | 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_NOTIFICATIONS_NOTIFIER_STATE_TRACKER_FACTORY_H_ |
| 6 | #define CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_STATE_TRACKER_FACTORY_H_ |
| 7 | |
Mikel Astiz | 5c30d00 | 2023-06-02 17:00:50 | [diff] [blame] | 8 | #include "base/no_destructor.h" |
Ryan Sultanem | 33ff6fb | 2022-08-16 09:38:38 | [diff] [blame] | 9 | #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
peter | c400791 | 2015-07-31 21:13:37 | [diff] [blame] | 10 | |
| 11 | class NotifierStateTracker; |
| 12 | class Profile; |
| 13 | |
Ryan Sultanem | 33ff6fb | 2022-08-16 09:38:38 | [diff] [blame] | 14 | class NotifierStateTrackerFactory : public ProfileKeyedServiceFactory { |
peter | c400791 | 2015-07-31 21:13:37 | [diff] [blame] | 15 | public: |
| 16 | static NotifierStateTracker* GetForProfile(Profile* profile); |
| 17 | static NotifierStateTrackerFactory* GetInstance(); |
| 18 | |
| 19 | private: |
Mikel Astiz | 5c30d00 | 2023-06-02 17:00:50 | [diff] [blame] | 20 | friend base::NoDestructor<NotifierStateTrackerFactory>; |
peter | c400791 | 2015-07-31 21:13:37 | [diff] [blame] | 21 | |
| 22 | NotifierStateTrackerFactory(); |
Sundoo Kim | dd91d95 | 2020-08-26 17:11:20 | [
|