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..ec77f6c5a51b7a144f01ee306f12a85404aa30ed 100644 |
--- a/chrome/browser/intents/web_intents_registry.h |
+++ b/chrome/browser/intents/web_intents_registry.h |
@@ -24,11 +24,16 @@ 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. |
typedef base::Callback<void(const IntentServiceList&)> |
QueryCallback; |
+ // Callback used by WebIntentsRegistry to return results of data fetch. |
Greg Billock
2012/07/31 21:43:36
Put what kind of data here and in :29 to different
Steve McKay
2012/07/31 22:09:59
Done. Revised docs.
|
+ typedef base::Callback<void(const DefaultIntentServiceList&)> |
+ DefaultIntentServicesCallback; |
+ |
// Callback to return results of a defaults query. |
typedef base::Callback<void(const DefaultWebIntentService&)> |
DefaultQueryCallback; |
@@ -56,6 +61,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 +128,12 @@ class WebIntentsRegistry : public ProfileKeyedService { |
const QueryCallback& callback, |
const WDTypedResult* result); |
+ // Handles derfault services loaded, supplying an unfiltered list |
Greg Billock
2012/07/31 21:43:36
default
Steve McKay
2012/07/31 22:09:59
Done.
|
+ // to the callback. |
+ void OnAllDefaultIntentServicesReceived( |
+ const DefaultIntentServicesCallback& callback, |
+ const WDTypedResult* result); |
+ |
// Handles default services loaded |
void OnWebIntentsDefaultsResultReceived( |
const QueryParams& params, |