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

Unified Diff: chrome/browser/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 Notifications Change Processor - CR Created 7 years, 11 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/notifier/chrome_notifier_service_factory.h
diff --git a/chrome/browser/notifier/chrome_notifier_service_factory.h b/chrome/browser/notifier/chrome_notifier_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..1cd711c09968cc03a3236f7e66b7bba8fb0cfa74
--- /dev/null
+++ b/chrome/browser/notifier/chrome_notifier_service_factory.h
@@ -0,0 +1,39 @@
+// 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_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_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;
+ virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
+ virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
+ virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
dcheng 2013/01/25 22:23:48 I thought we were removing these 3 methods and jus
Pete Williamson 2013/01/26 02:17:09 Oops, done now, I forgot to revisit them once I ha
+};
+
+} // namespace notifier
+
+#endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698