diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-08 02:13:09 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-08 02:13:09 +0000 |
commit | d893ab9643e5284db08087bc7514f59e37d6b319 (patch) | |
tree | 862077a3e8acbb010157f8c3bdd45e95d7e40ecb /chrome/browser/render_view_host_delegate.h | |
parent | bab654788c013d4cdf3900fc43927e159362b5ed (diff) | |
download | chromium_src-d893ab9643e5284db08087bc7514f59e37d6b319.zip chromium_src-d893ab9643e5284db08087bc7514f59e37d6b319.tar.gz chromium_src-d893ab9643e5284db08087bc7514f59e37d6b319.tar.bz2 |
Entries in a form get recorded when the user submits the form. Database and pop-up menu talk to each other. Pop-up menu appears containing suggestions.
Review URL: http://codereview.chromium.org/9462
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5058 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_host_delegate.h')
-rw-r--r-- | chrome/browser/render_view_host_delegate.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/browser/render_view_host_delegate.h b/chrome/browser/render_view_host_delegate.h index 4230438..63e2eaa 100644 --- a/chrome/browser/render_view_host_delegate.h +++ b/chrome/browser/render_view_host_delegate.h @@ -9,6 +9,7 @@ #include <vector> #include "base/basictypes.h" +#include "chrome/browser/autofill_manager.h" #include "chrome/common/render_messages.h" #include "webkit/glue/webpreferences.h" @@ -283,10 +284,21 @@ class RenderViewHostDelegate { // Password forms have been detected in the page. virtual void PasswordFormsSeen(const std::vector<PasswordForm>& forms) { } - + // Forms fillable by autofill have been detected in the page. virtual void AutofillFormSubmitted(const AutofillForm& form) { } + // Called to retrieve a list of suggestions from the web database given + // the name of the field |field_name| and what the user has already typed in + // the field |user_text|. Appeals to the database thead to perform the query. + // When the database thread is finished, the autofill manager retrieves the + // calling RenderViewHost and then passes the vector of suggestions to + // RenderViewHost::AutofillSuggestionsReturned. + virtual void GetAutofillSuggestions(const std::wstring& field_name, + const std::wstring& user_text, + int64 node_id, + int request_id) { } + // Notification that the page has an OpenSearch description document. virtual void PageHasOSDD(RenderViewHost* render_view_host, int32 page_id, const GURL& doc_url, |