summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/web_data_service.h
diff options
context:
space:
mode:
authorskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 16:13:09 +0000
committerskrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-16 16:13:09 +0000
commit5db3af57ca8994249f0ba0efbb60ac103f7f0934 (patch)
tree9447bf957fd4d3e2ab18b726a29626e4863bb8cd /chrome/browser/webdata/web_data_service.h
parent6ed318fb94e4cd8467ee2fc8b681b14668f6a76b (diff)
downloadchromium_src-5db3af57ca8994249f0ba0efbb60ac103f7f0934.zip
chromium_src-5db3af57ca8994249f0ba0efbb60ac103f7f0934.tar.gz
chromium_src-5db3af57ca8994249f0ba0efbb60ac103f7f0934.tar.bz2
Add details to autofill add notification
This change adds a details payload containing the list of modified keys to the autofill add notification. The existing mechanism for passing values back from query methods (WDResult) is reused here to pass the modified keys back to the caller. BUG=29606 Review URL: http://codereview.chromium.org/477009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_data_service.h')
-rw-r--r--chrome/browser/webdata/web_data_service.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/webdata/web_data_service.h b/chrome/browser/webdata/web_data_service.h
index 8735c45..74120a8 100644
--- a/chrome/browser/webdata/web_data_service.h
+++ b/chrome/browser/webdata/web_data_service.h
@@ -15,6 +15,7 @@
#include "third_party/skia/include/core/SkBitmap.h"
#include "webkit/glue/form_field.h"
+class AutofillKey;
#if defined(OS_WIN)
struct IE7PasswordInfo;
#endif
@@ -51,15 +52,16 @@ struct PasswordForm;
// Result types
//
typedef enum {
- BOOL_RESULT = 1, // WDResult<bool>
- KEYWORDS_RESULT, // WDResult<WDKeywordsResult>
- INT64_RESULT, // WDResult<int64>
- PASSWORD_RESULT, // WDResult<std::vector<PasswordForm*>>
+ BOOL_RESULT = 1, // WDResult<bool>
+ KEYWORDS_RESULT, // WDResult<WDKeywordsResult>
+ INT64_RESULT, // WDResult<int64>
+ PASSWORD_RESULT, // WDResult<std::vector<PasswordForm*>>
#if defined(OS_WIN)
- PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo>
+ PASSWORD_IE7_RESULT, // WDResult<IE7PasswordInfo>
#endif
- WEB_APP_IMAGES, // WDResult<WDAppImagesResult>
- AUTOFILL_VALUE_RESULT, // WDResult<std::vector<string16>>
+ WEB_APP_IMAGES, // WDResult<WDAppImagesResult>
+ AUTOFILL_VALUE_RESULT, // WDResult<std::vector<string16>>
+ AUTOFILL_AFFECTED_KEYS, // WDResult<std::vector<AutofillKey>>
} WDResultType;
// Result from GetWebAppImages.
@@ -373,9 +375,6 @@ class WebDataService : public base::RefCountedThreadSafe<WebDataService> {
// WebDataServiceConsumer is about to be deleted.
void CancelRequest(Handle h);
- // Sends a notification using the notification service.
- void Notify(NotificationType type);
-
//////////////////////////////////////////////////////////////////////////////
//
// Autofill.
@@ -428,6 +427,7 @@ class WebDataService : public base::RefCountedThreadSafe<WebDataService> {
typedef GenericRequest2<std::vector<const TemplateURL*>,
std::vector<TemplateURL*> > SetKeywordsRequest;
+ typedef std::vector<AutofillKey> AutofillKeyList;
~WebDataService();
// Initialize the database, if it hasn't already been initialized.