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 "chrome/browser/extensions/image_loading_tracker.h" | 8 #include "chrome/browser/extensions/image_loading_tracker.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 18 matching lines...) Expand all Loading... |
29 const std::string& extension_id, | 29 const std::string& extension_id, |
30 int index) OVERRIDE; | 30 int index) OVERRIDE; |
31 | 31 |
32 // content::NotificationObserver | 32 // content::NotificationObserver |
33 virtual void Observe(int type, | 33 virtual void Observe(int type, |
34 const content::NotificationSource& source, | 34 const content::NotificationSource& source, |
35 const content::NotificationDetails& details) OVERRIDE; | 35 const content::NotificationDetails& details) OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 void UpdateApplicationShortcuts(const Extension* extension); | 38 void UpdateApplicationShortcuts(const Extension* extension); |
| 39 void OnAppHostInstallationComplete(const Extension* extension, |
| 40 bool app_host_install_success); |
39 void DeleteApplicationShortcuts(const Extension* extension); | 41 void DeleteApplicationShortcuts(const Extension* extension); |
40 | 42 |
41 content::NotificationRegistrar registrar_; | 43 content::NotificationRegistrar registrar_; |
42 Profile* profile_; | 44 Profile* profile_; |
43 | 45 |
44 // Fields used when installing application shortcuts. | 46 // Fields used when installing application shortcuts. |
45 ShellIntegration::ShortcutInfo shortcut_info_; | 47 ShellIntegration::ShortcutInfo shortcut_info_; |
46 ImageLoadingTracker tracker_; | 48 ImageLoadingTracker tracker_; |
47 | 49 |
48 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 50 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
49 }; | 51 }; |
50 | 52 |
51 } // namespace extensions | 53 } // namespace extensions |
52 | 54 |
53 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
OLD | NEW |