| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/common/extensions/extension_constants.h" | 10 #include "chrome/common/extensions/extension_constants.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 class ExtensionSet; | |
| 14 class Profile; | 13 class Profile; |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 class FilePath; | 16 class FilePath; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace extensions { | 19 namespace extensions { |
| 21 class Extension; | 20 class Extension; |
| 21 class ExtensionSet; |
| 22 class InstallTracker; | 22 class InstallTracker; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace gfx { | 25 namespace gfx { |
| 26 class ImageSkia; | 26 class ImageSkia; |
| 27 } | 27 } |
| 28 | 28 |
| 29 // Interface to allow the view delegate to call out to whatever is controlling | 29 // Interface to allow the view delegate to call out to whatever is controlling |
| 30 // the app list. This will have different implementations for different | 30 // the app list. This will have different implementations for different |
| 31 // platforms. | 31 // platforms. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 Profile* profile, | 136 Profile* profile, |
| 137 const std::string& extension_id, | 137 const std::string& extension_id, |
| 138 extensions::LaunchType launch_type); | 138 extensions::LaunchType launch_type); |
| 139 | 139 |
| 140 // Returns true if the given extension is installed. | 140 // Returns true if the given extension is installed. |
| 141 bool IsExtensionInstalled(Profile* profile, const std::string& app_id); | 141 bool IsExtensionInstalled(Profile* profile, const std::string& app_id); |
| 142 | 142 |
| 143 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 143 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
| 144 | 144 |
| 145 // Get the list of installed apps for the given profile. | 145 // Get the list of installed apps for the given profile. |
| 146 void GetApps(Profile* profile, ExtensionSet* out_apps); | 146 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 149 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |