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