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

Unified Diff: chrome/browser/intents/web_intents_registry.cc

Issue 7633011: Added WebIntents GetAll support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix review nits Created 9 years, 4 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/intents/web_intents_registry.cc
diff --git a/chrome/browser/intents/web_intents_registry.cc b/chrome/browser/intents/web_intents_registry.cc
index fb515799b8d307023330c54e4d9504efb453d13d..0e59ebff0aec13bc3713c7f478da46450d553a31 100644
--- a/chrome/browser/intents/web_intents_registry.cc
+++ b/chrome/browser/intents/web_intents_registry.cc
@@ -70,6 +70,20 @@ WebIntentsRegistry::QueryID WebIntentsRegistry::GetIntentProviders(
return query->query_id_;
}
+WebIntentsRegistry::QueryID WebIntentsRegistry::GetAllIntentProviders(
+ Consumer* consumer) {
+ DCHECK(consumer);
+ DCHECK(wds_.get());
+
+ IntentsQuery* query = new IntentsQuery;
+ query->query_id_ = next_query_id_++;
+ query->consumer_ = consumer;
+ query->pending_query_ = wds_->GetAllWebIntents(this);
+ queries_[query->pending_query_] = query;
+
+ return query->query_id_;
+}
+
void WebIntentsRegistry::RegisterIntentProvider(const WebIntentData& intent) {
DCHECK(wds_.get());
wds_->AddWebIntent(intent);

Powered by Google App Engine
This is Rietveld 408576698