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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 6965018: Install CRX updates one at a time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Polish Created 9 years, 7 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 | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 1771e4e9dcfd51cef830a4b2c8f92825c684b969..7367255b758a6b17e32a8802b34b9d1d520c0c80 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -64,9 +64,14 @@ class ExtensionServiceInterface {
virtual ~ExtensionServiceInterface() {}
virtual const ExtensionList* extensions() const = 0;
virtual PendingExtensionManager* pending_extension_manager() = 0;
- virtual void UpdateExtension(const std::string& id,
- const FilePath& path,
- const GURL& download_url) = 0;
+
+ // Install an update. Return true if the install can be started.
+ // Set out_crx_installer to the installer if one was started.
+ virtual bool UpdateExtension(
+ const std::string& id,
+ const FilePath& path,
+ const GURL& download_url,
+ CrxInstaller** out_crx_installer) = 0;
virtual const Extension* GetExtensionById(const std::string& id,
bool include_disabled) const = 0;
virtual const Extension* GetInstalledExtension(
@@ -262,9 +267,11 @@ class ExtensionService
// |extension_path|.
// TODO(aa): This method can be removed. ExtensionUpdater could use
// CrxInstaller directly instead.
- virtual void UpdateExtension(const std::string& id,
- const FilePath& extension_path,
- const GURL& download_url) OVERRIDE;
+ virtual bool UpdateExtension(
+ const std::string& id,
+ const FilePath& extension_path,
+ const GURL& download_url,
+ CrxInstaller** out_crx_installer) OVERRIDE;
// Reloads the specified extension.
void ReloadExtension(const std::string& extension_id);
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698