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

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: Merge 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
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..29939b9bca11fb3c7f437402226f372706b7070f 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 GURL& default_url) {
+ default_service_url_ = default_url;
+ }
+
+ const GURL& 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.
+ GURL default_service_url_;
+
DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
};
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698