| 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 |
| 40 #if defined(OS_WIN) |
| 41 void OnAppHostInstallationComplete(const Extension* extension, |
| 42 bool app_host_install_success); |
| 43 #endif |
| 44 |
| 39 void DeleteApplicationShortcuts(const Extension* extension); | 45 void DeleteApplicationShortcuts(const Extension* extension); |
| 40 | 46 |
| 41 content::NotificationRegistrar registrar_; | 47 content::NotificationRegistrar registrar_; |
| 42 Profile* profile_; | 48 Profile* profile_; |
| 43 | 49 |
| 44 // Fields used when installing application shortcuts. | 50 // Fields used when installing application shortcuts. |
| 45 ShellIntegration::ShortcutInfo shortcut_info_; | 51 ShellIntegration::ShortcutInfo shortcut_info_; |
| 46 ImageLoadingTracker tracker_; | 52 ImageLoadingTracker tracker_; |
| 47 | 53 |
| 48 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 54 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
| 49 }; | 55 }; |
| 50 | 56 |
| 51 } // namespace extensions | 57 } // namespace extensions |
| 52 | 58 |
| 53 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 59 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
| OLD | NEW |