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

Unified Diff: chrome/browser/webdata/web_data_service.h

Issue 9370043: Add default intents methods for web data service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 10 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_data_service.h
diff --git a/chrome/browser/webdata/web_data_service.h b/chrome/browser/webdata/web_data_service.h
index 5a1d4e7688374294d2b9bffc22c09a63c06c0d59..c3ade6e6817b1b179ed8a9afa451153a8bc7886b 100644
--- a/chrome/browser/webdata/web_data_service.h
+++ b/chrome/browser/webdata/web_data_service.h
@@ -25,6 +25,7 @@ class AutofillChange;
class AutofillProfile;
class AutofillProfileSyncableService;
class CreditCard;
+struct DefaultWebIntentService;
class GURL;
#if defined(OS_WIN)
struct IE7PasswordInfo;
@@ -85,7 +86,8 @@ typedef enum {
AUTOFILL_PROFILES_RESULT, // WDResult<std::vector<AutofillProfile*>>
AUTOFILL_CREDITCARD_RESULT, // WDResult<CreditCard>
AUTOFILL_CREDITCARDS_RESULT, // WDResult<std::vector<CreditCard*>>
- WEB_INTENTS_RESULT // WDResult<std::vector<string16>>
+ WEB_INTENTS_RESULT, // WDResult<std::vector<WebIntentServiceData>>
+ WEB_INTENTS_DEFAULTS_RESULT, // WDResult<std::vector<DefaultWebIntentService>>
} WDResultType;
typedef std::vector<AutofillChange> AutofillChangeList;
@@ -390,6 +392,22 @@ class WebDataService
// Get all web intent services registered. |consumer| must not be NULL.
Handle GetAllWebIntentServices(WebDataServiceConsumer* consumer);
+ // Adds a default web intent service entry.
+ void AddDefaultWebIntentService(const DefaultWebIntentService& service);
+
+ // Adds a default web intent service entry.
+ void RemoveDefaultWebIntentService(const DefaultWebIntentService& service);
+
+ // Get a list of all web intent service defaults for the given |action|.
+ // |consumer| must not be null.
+ Handle GetDefaultWebIntentServicesForAction(const string16& action,
+ WebDataServiceConsumer* consumer);
+
+ // Get a list of all registered web intent service defaults.
+ // |consumer| must not be null.
+ Handle GetAllDefaultWebIntentServices(WebDataServiceConsumer* consumer);
+
+
//////////////////////////////////////////////////////////////////////////////
//
// Token Service
@@ -642,6 +660,13 @@ class WebDataService
void GetWebIntentServicesImpl(GenericRequest<string16>* request);
void GetWebIntentServicesForURLImpl(GenericRequest<string16>* request);
void GetAllWebIntentServicesImpl(GenericRequest<std::string>* request);
+ void AddDefaultWebIntentServiceImpl(
+ GenericRequest<DefaultWebIntentService>* request);
+ void RemoveDefaultWebIntentServiceImpl(
+ GenericRequest<DefaultWebIntentService>* request);
+ void GetDefaultWebIntentServicesForActionImpl(
+ GenericRequest<string16>* request);
+ void GetAllDefaultWebIntentServicesImpl(GenericRequest<std::string>* request);
//////////////////////////////////////////////////////////////////////////////
//

Powered by Google App Engine
This is Rietveld 408576698