Index: chrome/browser/notifications/notification_display_service_factory.h |
diff --git a/chrome/browser/notifications/notification_display_service_factory.h b/chrome/browser/notifications/notification_display_service_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ecaf7d03c2a738d1cc8de00bcc73c9bb715abc4f |
--- /dev/null |
+++ b/chrome/browser/notifications/notification_display_service_factory.h |
@@ -0,0 +1,30 @@ |
+// 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_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ |
+ |
+#include "base/macros.h" |
+#include "chrome/browser/notifications/notification_display_service.h" |
+#include "components/keyed_service/content/browser_context_dependency_manager.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+class NotificationDisplayServiceFactory |
+ : public BrowserContextKeyedServiceFactory { |
+ public: |
+ // Probably move to cc file |
Peter Beverloo
2016/03/21 15:57:04
Yes.
|
+ NotificationDisplayServiceFactory() |
+ : BrowserContextKeyedServiceFactory( |
+ "NotificationDisplayService", |
+ BrowserContextDependencyManager::GetInstance()) {} |
+ |
+ static NotificationDisplayService* GetForProfile(Profile* profile); |
+ static NotificationDisplayServiceFactory* GetInstance(); |
+ |
+ private: |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const override; |
+}; |
+ |
+#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_FACTORY_H_ |