summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete_history_manager.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 01:51:14 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 01:51:14 +0000
commit9b363a7a56db6a9f92b7fc5c5bc2f45cf07f2abe (patch)
treedaef15328973735efc8ed52dbdcd5a66bc92d685 /chrome/browser/autocomplete_history_manager.h
parent7ac5af92621fc1c0bc930254ca52de6095643034 (diff)
downloadchromium_src-9b363a7a56db6a9f92b7fc5c5bc2f45cf07f2abe.zip
chromium_src-9b363a7a56db6a9f92b7fc5c5bc2f45cf07f2abe.tar.gz
chromium_src-9b363a7a56db6a9f92b7fc5c5bc2f45cf07f2abe.tar.bz2
AutoFill: Don't save credit card numbers from Autocomplete to the WebDB.
BUG=8026 TEST=AutocompleteHistoryManagerTest Review URL: http://codereview.chromium.org/2676003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete_history_manager.h')
-rw-r--r--chrome/browser/autocomplete_history_manager.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete_history_manager.h b/chrome/browser/autocomplete_history_manager.h
index 2f8fe5e..4e87bd6 100644
--- a/chrome/browser/autocomplete_history_manager.h
+++ b/chrome/browser/autocomplete_history_manager.h
@@ -5,8 +5,6 @@
#ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
#define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_MANAGER_H_
-#include <string>
-
#include "chrome/browser/pref_member.h"
#include "chrome/browser/renderer_host/render_view_host_delegate.h"
#include "chrome/browser/webdata/web_data_service.h"
@@ -27,8 +25,6 @@ class AutocompleteHistoryManager
explicit AutocompleteHistoryManager(TabContents* tab_contents);
virtual ~AutocompleteHistoryManager();
- Profile* profile();
-
// RenderViewHostDelegate::Autocomplete implementation.
virtual void FormSubmitted(const webkit_glue::FormData& form);
virtual bool GetAutocompleteSuggestions(int query_id,
@@ -41,14 +37,22 @@ class AutocompleteHistoryManager
virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
const WDTypedResult* result);
+ protected:
+ friend class AutocompleteHistoryManagerTest;
+
+ // For tests.
+ AutocompleteHistoryManager(Profile* profile, WebDataService* wds);
+
private:
void CancelPendingQuery();
void StoreFormEntriesInWebDatabase(const webkit_glue::FormData& form);
void SendSuggestions(const WDTypedResult* suggestions);
TabContents* tab_contents_;
+ Profile* profile_;
+ scoped_refptr<WebDataService> web_data_service_;
- BooleanPrefMember form_autofill_enabled_;
+ BooleanPrefMember autofill_enabled_;
// When the manager makes a request from WebDataService, the database
// is queried on another thread, we record the query handle until we