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

Unified Diff: chrome/browser/chromeos/extensions/external_cache.h

Issue 269573010: Download and cache kiosk app extension when it is added via kiosk mamangement ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the change from chromeos_path.cc/h. Created 6 years, 8 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
Index: chrome/browser/chromeos/extensions/external_cache.h
diff --git a/chrome/browser/chromeos/extensions/external_cache.h b/chrome/browser/chromeos/extensions/external_cache.h
index 7fa81fedce6de563e80feba7a38e8174d18f47f7..83834a05a1bbd13c0d1455f967533d32ce8b492d 100644
--- a/chrome/browser/chromeos/extensions/external_cache.h
+++ b/chrome/browser/chromeos/extensions/external_cache.h
@@ -44,6 +44,12 @@ class ExternalCache : public content::NotificationObserver,
// Caller owns |prefs|.
virtual void OnExtensionListsUpdated(
const base::DictionaryValue* prefs) = 0;
+ // Called after extension with |id| is loaded in cache.
+ virtual void OnExtensionLoadedInCache(const std::string& id) {}
+ // Called when extension with |id| is failed with downloading for |error|.
+ virtual void OnExtensionDownloadFailed(
+ const std::string& id,
+ extensions::ExtensionDownloaderDelegate::Error error) {}
// Cache needs to provide already installed extensions otherwise they
// will be removed. Cache calls this function to get version of installed
@@ -110,6 +116,10 @@ class ExternalCache : public content::NotificationObserver,
// the cache and retry to download it after a restart.
void OnDamagedFileDetected(const base::FilePath& path);
+ // Removes extensions listed in |ids| from external cache, corresponding crx
+ // files will be removed from disk too.
+ void RemoveExtensions(const std::vector<std::string>& ids);
+
private:
// Notifies the that the cache has been updated, providing
// extensions loader with an updated list of extensions.
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_manager.cc ('k') | chrome/browser/chromeos/extensions/external_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698