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

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

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/extensions/webstore_installer.h
diff --git a/chrome/browser/extensions/webstore_installer.h b/chrome/browser/extensions/webstore_installer.h
index 1555234db7aeda274638f67ebd3788731041d3f2..c908af98c73ed4b54754999a31ab1ba6caad2a88 100644
--- a/chrome/browser/extensions/webstore_installer.h
+++ b/chrome/browser/extensions/webstore_installer.h
@@ -46,9 +46,14 @@ class WebstoreInstaller :public content::NotificationObserver,
class Delegate {
public:
+ virtual void OnExtensionDownloadStarted(const std::string& id,
+ content::DownloadItem* item) {}
+ virtual void OnExtensionDownloadProgress(const std::string& id,
+ content::DownloadItem* item) {}
virtual void OnExtensionInstallSuccess(const std::string& id) = 0;
virtual void OnExtensionInstallFailure(const std::string& id,
- const std::string& error) = 0;
+ const std::string& error,
+ bool cancelled) = 0;
protected:
virtual ~Delegate() {}
@@ -145,7 +150,7 @@ class WebstoreInstaller :public content::NotificationObserver,
// Reports an install |error| to the delegate for the given extension if this
// managed its installation. This also removes the associated PendingInstall.
- void ReportFailure(const std::string& error);
+ void ReportFailure(const std::string& error, bool cancelled);
// Reports a successful install to the delegate for the given extension if
// this managed its installation. This also removes the associated

Powered by Google App Engine
This is Rietveld 408576698