| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RECOMMENDED_APPS_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 void AddObserver(RecommendedAppsObserver* observer); | 31 void AddObserver(RecommendedAppsObserver* observer); |
| 32 void RemoveObserver(RecommendedAppsObserver* observer); | 32 void RemoveObserver(RecommendedAppsObserver* observer); |
| 33 | 33 |
| 34 const Apps& apps() const { return apps_; } | 34 const Apps& apps() const { return apps_; } |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 void Update(); | 37 void Update(); |
| 38 | 38 |
| 39 // extensions::InstallObserver overrides: | 39 // extensions::InstallObserver overrides: |
| 40 virtual void OnBeginExtensionInstall(const std::string& extension_id, | 40 virtual void OnBeginExtensionInstall( |
| 41 const std::string& extension_name, | 41 const ExtensionInstallParams& params) OVERRIDE; |
| 42 const gfx::ImageSkia& installing_icon, | |
| 43 bool is_app, | |
| 44 bool is_platform_app) OVERRIDE; | |
| 45 virtual void OnDownloadProgress(const std::string& extension_id, | 42 virtual void OnDownloadProgress(const std::string& extension_id, |
| 46 int percent_downloaded) OVERRIDE; | 43 int percent_downloaded) OVERRIDE; |
| 47 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; | 44 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE; |
| 48 virtual void OnExtensionInstalled( | 45 virtual void OnExtensionInstalled( |
| 49 const extensions::Extension* extension) OVERRIDE; | 46 const extensions::Extension* extension) OVERRIDE; |
| 50 virtual void OnExtensionLoaded( | 47 virtual void OnExtensionLoaded( |
| 51 const extensions::Extension* extension) OVERRIDE; | 48 const extensions::Extension* extension) OVERRIDE; |
| 52 virtual void OnExtensionUnloaded( | 49 virtual void OnExtensionUnloaded( |
| 53 const extensions::Extension* extension) OVERRIDE; | 50 const extensions::Extension* extension) OVERRIDE; |
| 54 virtual void OnExtensionUninstalled( | 51 virtual void OnExtensionUninstalled( |
| 55 const extensions::Extension* extension) OVERRIDE; | 52 const extensions::Extension* extension) OVERRIDE; |
| 56 virtual void OnAppsReordered() OVERRIDE; | 53 virtual void OnAppsReordered() OVERRIDE; |
| 57 virtual void OnAppInstalledToAppList( | 54 virtual void OnAppInstalledToAppList( |
| 58 const std::string& extension_id) OVERRIDE; | 55 const std::string& extension_id) OVERRIDE; |
| 59 virtual void OnShutdown() OVERRIDE; | 56 virtual void OnShutdown() OVERRIDE; |
| 60 | 57 |
| 61 Profile* profile_; | 58 Profile* profile_; |
| 62 PrefChangeRegistrar pref_change_registrar_; | 59 PrefChangeRegistrar pref_change_registrar_; |
| 63 | 60 |
| 64 Apps apps_; | 61 Apps apps_; |
| 65 ObserverList<RecommendedAppsObserver, true> observers_; | 62 ObserverList<RecommendedAppsObserver, true> observers_; |
| 66 | 63 |
| 67 DISALLOW_COPY_AND_ASSIGN(RecommendedApps); | 64 DISALLOW_COPY_AND_ASSIGN(RecommendedApps); |
| 68 }; | 65 }; |
| 69 | 66 |
| 70 } // namespace app_list | 67 } // namespace app_list |
| 71 | 68 |
| 72 #endif // CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ | 69 #endif // CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ |
| OLD | NEW |