Chromium Code Reviews| Index: chrome/browser/chromeos/app_mode/kiosk_app_data.h |
| diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_data.h b/chrome/browser/chromeos/app_mode/kiosk_app_data.h |
| index d685e224955037311bcec798bbfe545cb51bc97d..246a7029061edfdbef89bab24cfad9dbabc4d253 100644 |
| --- a/chrome/browser/chromeos/app_mode/kiosk_app_data.h |
| +++ b/chrome/browser/chromeos/app_mode/kiosk_app_data.h |
| @@ -14,14 +14,21 @@ |
| #include "chrome/browser/extensions/webstore_data_fetcher_delegate.h" |
| #include "ui/gfx/image/image_skia.h" |
| +class Profile; |
| + |
| namespace base { |
| class RefCountedString; |
| } |
| namespace extensions { |
| +class Extension; |
| class WebstoreDataFetcher; |
| } |
| +namespace gfx { |
| +class Image; |
| +} |
| + |
| namespace net { |
| class URLRequestContextGetter; |
| } |
| @@ -54,6 +61,9 @@ class KioskAppData : public base::SupportsWeakPtr<KioskAppData>, |
| // Clears locally cached data. |
| void ClearCache(); |
| + // Updates app data from the app installed in the given profile. |
| + void UpdateFromProfile(Profile* profile, const extensions::Extension* app); |
|
Tim Song
2014/01/13 23:41:08
nit: I would change the name to LoadFromInstalledA
xiyuan
2014/01/14 00:15:07
Done.
|
| + |
| // Returns true if web store data fetching is in progress. |
| bool IsLoading() const; |
| @@ -81,6 +91,12 @@ class KioskAppData : public base::SupportsWeakPtr<KioskAppData>, |
| // Sets the cached data. |
| void SetCache(const std::string& name, const base::FilePath& icon_path); |
| + // Saves the bitmap as cached icon. |
| + void SetCachedIcon(const SkBitmap& icon); |
| + |
| + // Callback for extensions::ImageLoader. |
| + void OnExtensionIconLoaded(const gfx::Image& icon); |
| + |
| // Callbacks for IconLoader. |
| void OnIconLoadSuccess(const scoped_refptr<base::RefCountedString>& raw_icon, |
| const gfx::ImageSkia& icon); |