| 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 ea58aad815aea2f738dd9b33757f4a6d5a731f29..14633d4dc3c4082921e2cc3c2483593cd0f5ffa8 100644
|
| --- a/chrome/browser/ui/intents/web_intent_picker_model.h
|
| +++ b/chrome/browser/ui/intents/web_intent_picker_model.h
|
| @@ -9,6 +9,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/string16.h"
|
| +#include "chrome/browser/extensions/extension_install_prompt.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "ui/gfx/image/image.h"
|
| #include "webkit/glue/web_intent_service_data.h"
|
| @@ -172,6 +173,22 @@ class WebIntentPickerModel {
|
| return pending_install_status_string_;
|
| }
|
|
|
| + // Sets the extension install delegate.
|
| + void SetPendingInstallDelegate(ExtensionInstallPrompt::Delegate* delegate);
|
| +
|
| + // Gets the extension install delegate.
|
| + ExtensionInstallPrompt::Delegate* pending_install_delegate() const {
|
| + return pending_install_delegate_;
|
| + }
|
| +
|
| + // Sets the extension install prompt.
|
| + void SetPendingInstallPrompt(const ExtensionInstallPrompt::Prompt& prompt);
|
| +
|
| + // Gets the extension install prompt.
|
| + const ExtensionInstallPrompt::Prompt* pending_install_prompt() const {
|
| + return pending_install_prompt_.get();
|
| + }
|
| +
|
| // Removes any pending extension install state.
|
| void ClearPendingInstall();
|
|
|
| @@ -214,6 +231,8 @@ class WebIntentPickerModel {
|
| std::string pending_install_extension_id_;
|
| int pending_install_download_percent_;
|
| string16 pending_install_status_string_;
|
| + ExtensionInstallPrompt::Delegate* pending_install_delegate_;
|
| + scoped_ptr<ExtensionInstallPrompt::Prompt> pending_install_prompt_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
|
| };
|
|
|