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 0b7a706f163922270dd26d3e6e8384e744530307..571cc2454dd92c89f916fe9d2166cc96f10c9c3b 100644 |
--- a/chrome/browser/intents/web_intents_registry.h |
+++ b/chrome/browser/intents/web_intents_registry.h |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_INTENTS_WEB_INTENTS_REGISTRY_H_ |
#pragma once |
+#include "base/callback.h" |
#include "base/hash_tables.h" |
#include "base/memory/ref_counted.h" |
#include "chrome/browser/extensions/extension_service.h" |
@@ -59,6 +60,13 @@ class WebIntentsRegistry |
// Requests all intent providers. |consumer| must not be NULL |
QueryID GetAllIntentProviders(Consumer* consumer); |
+ // Tests for the existence of the given intent |provider|. Calls the |
+ // provided |callback| with true if it exists, false if it does not. |
+ // Checks for |provider| equality with ==. |
+ QueryID IntentProviderExists( |
+ const webkit_glue::WebIntentServiceData& provider, |
+ const base::Callback<void(bool)>& callback); |
+ |
protected: |
// Make sure that only WebIntentsRegistryFactory can create an instance of |
// WebIntentsRegistry. |