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

Side by Side Diff: apps/shortcut_manager_factory.h

Issue 12378037: Move apps_shortcut_manager into src/apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hmmmm Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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 APPS_SHORTCUT_MANAGER_FACTORY_H_
6 #define APPS_SHORTCUT_MANAGER_FACTORY_H_
7
8 #include "base/memory/singleton.h"
tfarina 2013/03/03 23:57:49 forward declare this: template <typename T> struc
benwells 2013/03/04 01:30:03 Done.
9 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
10
11 class Profile;
tfarina 2013/03/03 23:57:49 no need to forward declare this, it comes from pro
benwells 2013/03/04 01:30:03 Done.
12
13 namespace apps {
14
15 class ShortcutManager;
16
17 // Singleton that owns all ShortcutManagers and associates them with
18 // Profiles. Listens for the Profile's destruction notification and cleans up
19 // the associated ShortcutManager.
20 // ShortcutManagers should not exist in incognito profiles.
21 class ShortcutManagerFactory : public ProfileKeyedServiceFactory {
22 public:
23 static ShortcutManager* GetForProfile(Profile* profile);
24
25 static void ResetForProfile(Profile* profile);
26
27 static ShortcutManagerFactory* GetInstance();
28
29 private:
30 friend struct DefaultSingletonTraits<ShortcutManagerFactory>;
31
32 ShortcutManagerFactory();
33 virtual ~ShortcutManagerFactory();
34
35 // ProfileKeyedServiceFactory:
36 virtual ProfileKeyedService* BuildServiceInstanceFor(
37 Profile* profile) const OVERRIDE;
38 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
39 };
40
41 } // namespace apps
42
43 #endif // APPS_SHORTCUT_MANAGER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698