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

Unified Diff: chrome/browser/webdata/web_intents_table.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: More updates Created 9 years, 2 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/webdata/web_intents_table.h
diff --git a/chrome/browser/webdata/web_intents_table.h b/chrome/browser/webdata/web_intents_table.h
index a54293090b6178ee6b85739a36ee6210c303dae8..f9402f32ebacb686f69712b221b51512701be327 100644
--- a/chrome/browser/webdata/web_intents_table.h
+++ b/chrome/browser/webdata/web_intents_table.h
@@ -38,18 +38,22 @@ class WebIntentsTable : public WebDatabaseTable {
virtual bool Init();
virtual bool IsSyncable();
- // Adds a web intent to the WebIntents table. If intent already exists,
- // replaces it.
+ // Adds a web intent service to the WebIntents table. If service
+ // already exists, replaces it.
bool SetWebIntent(const WebIntentServiceData& intent);
- // Retrieve all intents from WebIntents table that match |action|.
+ // Retrieves all services from WebIntents table that match |action|.
bool GetWebIntents(const string16& action,
std::vector<WebIntentServiceData>* intents);
- // Retrieve all intents from WebIntents table.
+ // Retrieves all services from WebIntents table that match |service_url|.
+ bool GetWebIntentsForURL(const string16& service_url,
+ std::vector<WebIntentServiceData>* intents);
+
+ // Retrieves all services from WebIntents table.
bool GetAllWebIntents(std::vector<WebIntentServiceData>* intents);
- // Removes intent from WebIntents table - must match all parameters exactly.
+ // Removes service from WebIntents table - must match all parameters exactly.
bool RemoveWebIntent(const WebIntentServiceData& intent);
private:

Powered by Google App Engine
This is Rietveld 408576698