Index: chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h |
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..999606af31c9f95db7de93a03db0c8f81f3484e9 |
--- /dev/null |
+++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h |
@@ -0,0 +1,36 @@ |
+// Copyright (c) 2013 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_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_ |
+ |
+#include "base/memory/singleton.h" |
+#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/profiles/profile_keyed_service_factory.h" |
+ |
+namespace notifier { |
+ |
+class ChromeNotifierService; |
+ |
+class ChromeNotifierServiceFactory : public ProfileKeyedServiceFactory { |
+ public: |
+ static ChromeNotifierService* GetForProfile( |
+ Profile* profile, Profile::ServiceAccessType sat); |
+ |
+ static ChromeNotifierServiceFactory* GetInstance(); |
+ |
+ private: |
+ friend struct DefaultSingletonTraits<ChromeNotifierServiceFactory>; |
+ |
+ ChromeNotifierServiceFactory(); |
+ virtual ~ChromeNotifierServiceFactory(); |
+ |
+ // ProfileKeyedServiceFactory: |
+ virtual ProfileKeyedService* BuildServiceInstanceFor( |
+ Profile* profile) const OVERRIDE; |
+}; |
+ |
+} // namespace notifier |
+ |
+#endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_ |