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

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

Issue 8144013: Add a check to the registry before the intent infobar is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix provider to service in comments. Created 9 years, 1 month 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.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.
« no previous file with comments | « chrome/browser/intents/register_intent_handler_infobar_delegate.cc ('k') | chrome/browser/intents/web_intents_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698