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

Unified Diff: chrome/browser/ui/intents/web_intent_picker_model.h

Issue 11035017: Mac Web Intents Part 15: Inline extension install prompt (model) (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 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);
};

Powered by Google App Engine
This is Rietveld 408576698