OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 explicit AppShortcutManager(Profile* profile); | 21 explicit AppShortcutManager(Profile* profile); |
22 | 22 |
23 virtual ~AppShortcutManager(); | 23 virtual ~AppShortcutManager(); |
24 | 24 |
25 // content::NotificationObserver | 25 // content::NotificationObserver |
26 virtual void Observe(int type, | 26 virtual void Observe(int type, |
27 const content::NotificationSource& source, | 27 const content::NotificationSource& source, |
28 const content::NotificationDetails& details) OVERRIDE; | 28 const content::NotificationDetails& details) OVERRIDE; |
29 | 29 |
30 private: | 30 private: |
31 void UpdateApplicationShortcuts(const Extension* extension); | |
32 | |
33 #if defined(OS_WIN) | |
34 void OnAppHostInstallationComplete(scoped_refptr<Extension> extension, | |
35 bool app_host_install_success); | |
36 #endif | |
37 | |
38 void DeleteApplicationShortcuts(const Extension* extension); | 31 void DeleteApplicationShortcuts(const Extension* extension); |
39 | 32 |
40 content::NotificationRegistrar registrar_; | 33 content::NotificationRegistrar registrar_; |
41 Profile* profile_; | 34 Profile* profile_; |
42 | 35 |
43 // Fields used when installing application shortcuts. | 36 // Fields used when installing application shortcuts. |
44 base::WeakPtrFactory<AppShortcutManager> weak_factory_; | 37 base::WeakPtrFactory<AppShortcutManager> weak_factory_; |
45 | 38 |
46 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 39 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
47 }; | 40 }; |
48 | 41 |
49 } // namespace extensions | 42 } // namespace extensions |
50 | 43 |
51 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
OLD | NEW |