Chromium Code Reviews| 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_ |