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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_model.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/ui/intents/web_intent_picker_model.h
diff --git a/chrome/browser/ui/intents/web_intent_picker_model.h b/chrome/browser/ui/intents/web_intent_picker_model.h
index e55c677baa12f2335a623b56afd4c4158038cbeb..4c5500f47eb6ac3ee7e99fc18264adbe3ac97dd4 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -143,6 +143,33 @@ class WebIntentPickerModel {
// GURL::EmptyGURL() if none.
const GURL& inline_disposition_url() const { return inline_disposition_url_; }
+ // Sets the ID of the extension currently being installed.
+ void SetPendingInstallExtensionId(const std::string& id);
+
+ // Gets the ID of the extension currently being installed.
+ const std::string& pending_install_extension_id() const {
+ return pending_install_extension_id_;
+ }
+
+ // Sets the download progress of the extension currently being downloaded.
+ void SetPendingInstallDownloadPercent(int percent);
+
+ // Gets the download progress of the extension currently being downloaded.
+ int pending_install_download_percent() const {
+ return pending_install_download_percent_;
+ }
+
+ // Sets the status of extension install process.
+ void SetPendingInstallStatusString(const string16& status);
+
+ // Gets the status of extension install process.
+ const string16& pending_install_status_string() const {
+ return pending_install_status_string_;
+ }
+
+ // Removes any pending extension install state.
+ void ClearPendingInstall();
+
private:
// Delete all elements in |installed_services_| and |suggested_extensions_|.
// Note that this method does not reset the observer.
@@ -178,6 +205,11 @@ class WebIntentPickerModel {
// The hash context for the default service, if there is one.
int64 default_service_hash_;
+ // Information about the pending extension install.
+ std::string pending_install_extension_id_;
+ int pending_install_download_percent_;
+ string16 pending_install_status_string_;
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};

Powered by Google App Engine
This is Rietveld 408576698