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

Side by Side 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: SyncedNotifications - first round of CR comment fixes. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #ifndef CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
11
12 class ChromeNotifierService;
13
14 // Singleton that owns all ChromeNotifierService and associates them with
15 // Profiles.
dcheng 2013/01/18 21:56:13 I'm not really sure this comment adds anything. Re
Pete Williamson 2013/01/23 01:45:55 Done.
Pete Williamson 2013/01/23 01:45:55 Done.
16 class ChromeNotifierServiceFactory : public ProfileKeyedServiceFactory {
17 public:
18 static ChromeNotifierService* GetForProfile(
19 Profile* profile, Profile::ServiceAccessType sat);
20
21 static ChromeNotifierService* GetForProfileIfExists(
dcheng 2013/01/18 21:56:13 Is there a reason we need GetForProfileIfExists()
Pete Williamson 2013/01/23 01:45:55 Nope, removed. I thought it was inherited from th
22 Profile* profile, Profile::ServiceAccessType sat);
23
24 static ChromeNotifierService* GetForProfileWithoutCreating(
25 Profile* profile);
26
27 static ChromeNotifierServiceFactory* GetInstance();
28
29 private:
30 friend struct DefaultSingletonTraits<ChromeNotifierServiceFactory>;
31
32 ChromeNotifierServiceFactory();
33 virtual ~ChromeNotifierServiceFactory();
34
35 // ProfileKeyedServiceFactory:
36 virtual ProfileKeyedService* BuildServiceInstanceFor(
37 Profile* profile) const OVERRIDE;
38 virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
39 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
40 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
41 };
42
43 #endif // CHROME_BROWSER_NOTIFIER_CHROME_NOTIFIER_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698