diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 18:42:07 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 18:42:07 +0000 |
commit | 1b59118a8d97672d41bf37fac17e57a2be9da284 (patch) | |
tree | 7cbcd7474e60b90e7e62bedeffb053a44ed57437 /webkit | |
parent | 73b3ac867d8131aa5affcd8b74e083062fc3057e (diff) | |
download | chromium_src-1b59118a8d97672d41bf37fac17e57a2be9da284.zip chromium_src-1b59118a8d97672d41bf37fac17e57a2be9da284.tar.gz chromium_src-1b59118a8d97672d41bf37fac17e57a2be9da284.tar.bz2 |
Support MIME types for intent selection.
BUG=101414
TEST=WebIntentsRegistryTest.GetIntentsWithMimeMatching
Review URL: http://codereview.chromium.org/8390027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/web_intent_service_data.cc | 11 | ||||
-rw-r--r-- | webkit/glue/web_intent_service_data.h | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/webkit/glue/web_intent_service_data.cc b/webkit/glue/web_intent_service_data.cc index 67849db..09933c5 100644 --- a/webkit/glue/web_intent_service_data.cc +++ b/webkit/glue/web_intent_service_data.cc @@ -11,6 +11,17 @@ WebIntentServiceData::WebIntentServiceData() : disposition(WebIntentServiceData::DISPOSITION_WINDOW) { } +WebIntentServiceData::WebIntentServiceData(const GURL& svc_url, + const string16& svc_action, + const string16& svc_type, + const string16& svc_title) + : service_url(svc_url), + action(svc_action), + type(svc_type), + title(svc_title), + disposition(WebIntentServiceData::DISPOSITION_WINDOW) { +} + WebIntentServiceData::~WebIntentServiceData() {} bool WebIntentServiceData::operator==(const WebIntentServiceData& other) const { diff --git a/webkit/glue/web_intent_service_data.h b/webkit/glue/web_intent_service_data.h index aa42256..532aa03 100644 --- a/webkit/glue/web_intent_service_data.h +++ b/webkit/glue/web_intent_service_data.h @@ -19,6 +19,10 @@ struct WebIntentServiceData { }; WebIntentServiceData(); + WebIntentServiceData(const GURL& service_url, + const string16& action, + const string16& type, + const string16& title); ~WebIntentServiceData(); bool operator==(const WebIntentServiceData& other) const; |