1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_APP_INFO_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_APP_INFO_SERVICE_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
14 class SyncedNotificationAppInfoService;
16 class SyncedNotificationAppInfoServiceFactory
17 : public BrowserContextKeyedServiceFactory {
19 // Return the SyncedNotificationAppInfoService for this profile.
20 static SyncedNotificationAppInfoService* GetForProfile(
22 Profile::ServiceAccessType service_access_type);
25 static SyncedNotificationAppInfoServiceFactory* GetInstance();
28 friend struct DefaultSingletonTraits<SyncedNotificationAppInfoServiceFactory>;
30 SyncedNotificationAppInfoServiceFactory();
31 virtual ~SyncedNotificationAppInfoServiceFactory();
33 // BrowserContextKeyedServiceFactory:
34 virtual KeyedService* BuildServiceInstanceFor(
35 content::BrowserContext* profile) const OVERRIDE;
38 } // namespace notifier
40 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_APP_INFO_SERVICE_FACTORY_H_