| 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 "apps/shell_integration.h" |
| 8 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/shell_integration.h" | |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| 11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
| 12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 // This class manages the installation of shortcuts for platform apps. | 18 // This class manages the installation of shortcuts for platform apps. |
| 19 class AppShortcutManager : public content::NotificationObserver { | 19 class AppShortcutManager : public content::NotificationObserver { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Fields used when installing application shortcuts. | 36 // Fields used when installing application shortcuts. |
| 37 base::WeakPtrFactory<AppShortcutManager> weak_factory_; | 37 base::WeakPtrFactory<AppShortcutManager> weak_factory_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); | 39 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace extensions | 42 } // namespace extensions |
| 43 | 43 |
| 44 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ |
| OLD | NEW |