summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill_manager.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 06:00:36 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-14 06:00:36 +0000
commit842936a15c38e85162eda5bd992f3d1758a1fe7f (patch)
tree9b13ced3c5ec2875cdb992b1b1fdb3e531bf78b9 /chrome/browser/autofill_manager.h
parent1f50182afc7635811a55a47bcd8218275e7acfae (diff)
downloadchromium_src-842936a15c38e85162eda5bd992f3d1758a1fe7f.zip
chromium_src-842936a15c38e85162eda5bd992f3d1758a1fe7f.tar.gz
chromium_src-842936a15c38e85162eda5bd992f3d1758a1fe7f.tar.bz2
Make the acknowledgement message for querying form autofill data always
be sent. I plan to make use of this to have the RenderView hold onto a WebNode instead of a node_id in a future CL. R=jcampan BUG=24595 TEST=none Review URL: http://codereview.chromium.org/270082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill_manager.h')
-rw-r--r--chrome/browser/autofill_manager.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/autofill_manager.h b/chrome/browser/autofill_manager.h
index 8fa241e..acea4d7 100644
--- a/chrome/browser/autofill_manager.h
+++ b/chrome/browser/autofill_manager.h
@@ -26,16 +26,13 @@ class AutofillManager : public RenderViewHostDelegate::Autofill,
explicit AutofillManager(TabContents* tab_contents);
virtual ~AutofillManager();
- void CancelPendingQuery();
-
Profile* profile();
// RenderViewHostDelegate::Autofill implementation.
virtual void AutofillFormSubmitted(const webkit_glue::AutofillForm& form);
- virtual void GetAutofillSuggestions(const std::wstring& name,
- const std::wstring& prefix,
- int64 node_id,
- int request_id);
+ virtual bool GetAutofillSuggestions(int request_id,
+ const std::wstring& name,
+ const std::wstring& prefix);
virtual void RemoveAutofillEntry(const std::wstring& name,
const std::wstring& value);
@@ -46,7 +43,9 @@ class AutofillManager : public RenderViewHostDelegate::Autofill,
static void RegisterUserPrefs(PrefService* prefs);
private:
+ void CancelPendingQuery();
void StoreFormEntriesInWebDatabase(const webkit_glue::AutofillForm& form);
+ void SendSuggestions(const WDTypedResult* suggestions);
TabContents* tab_contents_;
@@ -56,7 +55,6 @@ class AutofillManager : public RenderViewHostDelegate::Autofill,
// is queried on another thread, we record the query handle until we
// get called back.
WebDataService::Handle pending_query_handle_;
- int64 node_id_;
int request_id_;
DISALLOW_COPY_AND_ASSIGN(AutofillManager);