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

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

Issue 137343003: kiosk: Do update check during launch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for #1 comments, use default for empty update url and skip for bad update url 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
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_data.h b/chrome/browser/chromeos/app_mode/kiosk_app_data.h
index d685e224955037311bcec798bbfe545cb51bc97d..4bf061c4ae1e604bcf1b97f157882a98e4626c99 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();
+ // 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 @@ class KioskAppData : public base::SupportsWeakPtr<KioskAppData>,
// 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