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

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

Issue 10204010: Handling default service in the web intents picker controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to head Created 8 years, 8 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 fda5ef3ee634a5f6e08ee598613ef8862429b4ed..1d5a207e52ca5ba3dcf99edeb12b81387748faa1 100644
--- a/chrome/browser/ui/intents/web_intent_picker_model.h
+++ b/chrome/browser/ui/intents/web_intent_picker_model.h
@@ -83,6 +83,12 @@ class WebIntentPickerModel {
const string16& mimetype() { return mimetype_; }
+ void set_default_service_url(const std::string& default_url) {
+ default_service_url_ = default_url;
groby-ooo-7-16 2012/05/01 15:28:33 See previous comment on keeping an InstalledServic
+ }
+
+ const std::string& default_service_url() { return default_service_url_; }
+
// Add a new installed service with |title|, |url| and |disposition| to the
// picker.
void AddInstalledService(const string16& title,
@@ -164,6 +170,10 @@ class WebIntentPickerModel {
// A cached copy of the mimetype that instantiated the picker.
string16 mimetype_;
+ // The non-empty url of the default service if the WebIntentsRegistry
+ // finds a default service matching the intent being dispatched.
+ std::string default_service_url_;
groby-ooo-7-16 2012/05/01 15:28:33 If it's an URL, shouldn't it be a GURL, not std::s
Greg Billock 2012/05/01 19:17:54 Done.
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};

Powered by Google App Engine
This is Rietveld 408576698