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

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

Issue 9595031: [Web Intents] Inline installation of extensions in web intents picker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 c560cd9b2a0c5c93b3c5a7704bfa197175bdbb7c..148a682ebbe4ebe5bcc6f76cb437e33b5e880805 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -74,6 +74,14 @@ class WebIntentPickerModel {
observer_ = observer;
}
+ void set_action(const string16& action) { action_ = action; }
+
+ const string16& action() { return action_; }
+
+ void set_mimetype(const string16& mimetype) { mimetype_ = mimetype; }
+
+ const string16& mimetype() { return mimetype_; }
+
// Add a new installed service with |title|, |url| and |disposition| to the
// picker.
void AddInstalledService(const string16& title,
@@ -146,6 +154,12 @@ class WebIntentPickerModel {
// GURL::EmptyGURL() if none.
GURL inline_disposition_url_;
+ // A cached copy of the action that instantiated the picker.
+ string16 action_;
+
+ // A cached copy of the mimetype that instantiated the picker.
+ string16 mimetype_;
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_delegate.h ('k') | chrome/browser/ui/intents/web_intent_picker_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698