OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ |
6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ | 6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 9 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
10 #include "chrome/common/extensions/extension.h" | |
11 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 10 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
12 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
13 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 #include "extensions/common/extension.h" |
14 | 14 |
15 class PrefService; | 15 class PrefService; |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace user_prefs { | 18 namespace user_prefs { |
19 class PrefRegistrySyncable; | 19 class PrefRegistrySyncable; |
20 } | 20 } |
21 | 21 |
22 // This class manages the installation of shortcuts for platform apps. | 22 // This class manages the installation of shortcuts for platform apps. |
23 class AppShortcutManager : public BrowserContextKeyedService, | 23 class AppShortcutManager : public BrowserContextKeyedService, |
(...skipping 27 matching lines...) Expand all Loading... |
51 bool is_profile_info_cache_observer_; | 51 bool is_profile_info_cache_observer_; |
52 PrefService* prefs_; | 52 PrefService* prefs_; |
53 | 53 |
54 // Fields used when installing application shortcuts. | 54 // Fields used when installing application shortcuts. |
55 base::WeakPtrFactory<AppShortcutManager> weak_factory_; | 55 base::WeakPtrFactory<AppShortcutManager> weak_factory_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 57 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
58 }; | 58 }; |
59 | 59 |
60 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ | 60 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ |
OLD | NEW |