Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3356)

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h

Issue 11745024: Synced Notification Sync Change Processor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced Notification Change Processor - remove unused header Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698