Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/notifications/notification_display_service.h" | |
| 10 #include "components/keyed_service/content/browser_context_dependency_manager.h" | |
| 11 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
| 12 | |
| 13 class NotificationDisplayServiceFactory | |
| 14 : public BrowserContextKeyedServiceFactory { | |
| 15 public: | |
| 16 // Probably move to cc file | |
|
Peter Beverloo
2016/03/21 15:57:04
Yes.
| |
| 17 NotificationDisplayServiceFactory() | |
| 18 : BrowserContextKeyedServiceFactory( | |
| 19 "NotificationDisplayService", | |
| 20 BrowserContextDependencyManager::GetInstance()) {} | |
| 21 | |
| 22 static NotificationDisplayService* GetForProfile(Profile* profile); | |
| 23 static NotificationDisplayServiceFactory* GetInstance(); | |
| 24 | |
| 25 private: | |
| 26 KeyedService* BuildServiceInstanceFor( | |
| 27 content::BrowserContext* context) const override; | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ | |
| OLD | NEW |