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); |
}; |