summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/web_data_service.h
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 22:28:17 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 22:28:17 +0000
commit4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd (patch)
treee384f04d2a7bc8403cf19929d84447782d6c7871 /chrome/browser/webdata/web_data_service.h
parente08a579d8d6701fa48eac6945248855bbb5a70a6 (diff)
downloadchromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.zip
chromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.tar.gz
chromium_src-4d2b6fb574d019dab4080b3713d3d5e5aa0a91bd.tar.bz2
Pressing the Del key while a item is selected in the autocomplete popup deletes that suggestion from the DB.
BUG=6176 TEST=Bring up the autofill popup in a form. Select an item and press the Del key. The item should be removed from the popup and should not show on subsequent autofill popups. Review URL: http://codereview.chromium.org/42258 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_data_service.h')
-rw-r--r--chrome/browser/webdata/web_data_service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/webdata/web_data_service.h b/chrome/browser/webdata/web_data_service.h
index e6fc18d..efeaf05 100644
--- a/chrome/browser/webdata/web_data_service.h
+++ b/chrome/browser/webdata/web_data_service.h
@@ -382,6 +382,8 @@ class WebDataService : public base::RefCountedThreadSafe<WebDataService> {
// Removes form elements recorded for autofill from the database.
void RemoveFormElementsAddedBetween(const base::Time& delete_begin,
const base::Time& delete_end);
+ void RemoveFormValueForElementName(const std::wstring& name,
+ const std::wstring& value);
protected:
friend class TemplateURLModelTest;
@@ -460,6 +462,8 @@ class WebDataService : public base::RefCountedThreadSafe<WebDataService> {
const std::wstring& name, const std::wstring& prefix, int limit);
void RemoveFormElementsAddedBetweenImpl(
GenericRequest2<base::Time, base::Time>* request);
+ void RemoveFormValueForElementNameImpl(
+ GenericRequest2<std::wstring, std::wstring>* request);
//////////////////////////////////////////////////////////////////////////////
//