Index: chrome/browser/intents/web_intents_registry.h |
diff --git a/chrome/browser/intents/web_intents_registry.h b/chrome/browser/intents/web_intents_registry.h |
index 5b0a710818f9a18d592c88368c0aed7ee24ba5f7..404d6822f46ba67100d0d3252eeff1dabfbd35b4 100644 |
--- a/chrome/browser/intents/web_intents_registry.h |
+++ b/chrome/browser/intents/web_intents_registry.h |
@@ -24,12 +24,20 @@ class Extension; |
class WebIntentsRegistry : public ProfileKeyedService { |
public: |
typedef std::vector<webkit_glue::WebIntentServiceData> IntentServiceList; |
+ typedef std::vector<DefaultWebIntentService> DefaultIntentServiceList; |
- // Callback used by WebIntentsRegistry to return results of data fetch. |
+ // Callback used by callers to accept results of a query for |
+ // a list of |WebIntentServiceData|. |
typedef base::Callback<void(const IntentServiceList&)> |
QueryCallback; |
- // Callback to return results of a defaults query. |
+ // Callback used by callers to accept results of a query for |
+ // a list of |DefaultWebIntentService|. |
+ typedef base::Callback<void(const DefaultIntentServiceList&)> |
+ DefaultIntentServicesCallback; |
+ |
+ // Callback used by callers to accept results of a query for |
+ // a |DefaultWebIntentService|. |
typedef base::Callback<void(const DefaultWebIntentService&)> |
DefaultQueryCallback; |
@@ -56,6 +64,11 @@ class WebIntentsRegistry : public ProfileKeyedService { |
// |callback| must not be null. |
void GetAllIntentServices(const QueryCallback& callback); |
+ // Requests all default services. |
+ // |callback| must not be null. |
+ void GetAllDefaultIntentServices( |
+ const DefaultIntentServicesCallback& callback); |
+ |
// Tests for the existence of the given |service|. Calls the |
// provided |callback| with true if it exists, false if it does not. |
// Checks for |service| equality with ==. |
@@ -118,6 +131,12 @@ class WebIntentsRegistry : public ProfileKeyedService { |
const QueryCallback& callback, |
const WDTypedResult* result); |
+ // Handles default services loaded, supplying an unfiltered list |
+ // to the callback. |
+ void OnAllDefaultIntentServicesReceived( |
+ const DefaultIntentServicesCallback& callback, |
+ const WDTypedResult* result); |
+ |
// Handles default services loaded |
void OnWebIntentsDefaultsResultReceived( |
const QueryParams& params, |