| 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 | 29 |
| 30 // content::NotificationObserver | 30 // content::NotificationObserver |
| 31 virtual void Observe(int type, | 31 virtual void Observe(int type, |
| 32 const content::NotificationSource& source, | 32 const content::NotificationSource& source, |
| 33 const content::NotificationDetails& details) OVERRIDE; | 33 const content::NotificationDetails& details) OVERRIDE; |
| 34 | 34 |
| 35 static void SetShortcutCreationDisabledForTesting(bool disabled); | 35 static void SetShortcutCreationDisabledForTesting(bool disabled); |
| 36 private: | 36 private: |
| 37 // Install the shortcuts for an application. | 37 // Install the shortcuts for an application. |
| 38 void InstallApplicationShortcuts(const extensions::Extension* extension); | 38 void InstallApplicationShortcuts(const extensions::Extension* extension); |
| 39 void DeleteApplicationShortcuts(const extensions::Extension* extension); |
| 39 | 40 |
| 40 content::NotificationRegistrar registrar_; | 41 content::NotificationRegistrar registrar_; |
| 41 Profile* profile_; | 42 Profile* profile_; |
| 42 | 43 |
| 43 // Fields used when installing application shortcuts. | 44 // Fields used when installing application shortcuts. |
| 44 ShellIntegration::ShortcutInfo shortcut_info_; | 45 ShellIntegration::ShortcutInfo shortcut_info_; |
| 45 ImageLoadingTracker tracker_; | 46 ImageLoadingTracker tracker_; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 48 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 51 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
| OLD | NEW |