Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5044)

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_data.h

Issue 141803014: Merge 244632 "kiosk: Do update check during launch." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/kiosk_app_data.h
===================================================================
--- chrome/browser/chromeos/app_mode/kiosk_app_data.h (revision 246680)
+++ chrome/browser/chromeos/app_mode/kiosk_app_data.h (working copy)
@@ -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 @@
// Clears locally cached data.
void ClearCache();
+ // Loads app data from the app installed in the given profile.
+ void LoadFromInstalledApp(Profile* profile, const extensions::Extension* app);
+
// Returns true if web store data fetching is in progress.
bool IsLoading() const;
@@ -81,6 +91,12 @@
// Sets the cached data.
void SetCache(const std::string& name, const base::FilePath& icon_path);
+ // Helper to set the cached data using a SkBitmap icon.
+ void SetCache(const std::string& name, 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);
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698