| Index: components/autofill/core/browser/autofill_manager_delegate.h
|
| diff --git a/components/autofill/core/browser/autofill_manager_delegate.h b/components/autofill/core/browser/autofill_manager_delegate.h
|
| index 2ad85d078ce57785fb307278fbf2ba5bf4b7e14b..b236ea2643483e86d79438113262a1b66c64c711 100644
|
| --- a/components/autofill/core/browser/autofill_manager_delegate.h
|
| +++ b/components/autofill/core/browser/autofill_manager_delegate.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/i18n/rtl.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/strings/string16.h"
|
| +#include "third_party/WebKit/public/web/WebFormElement.h"
|
|
|
| namespace gfx {
|
| class Rect;
|
| @@ -43,6 +44,10 @@ struct PasswordForm;
|
| // attached to).
|
| class AutofillManagerDelegate {
|
| public:
|
| + typedef base::Callback<
|
| + void(blink::WebFormElement::AutocompleteResult,
|
| + const FormStructure*)> ResultCallback;
|
| +
|
| virtual ~AutofillManagerDelegate() {}
|
|
|
| // Gets the PersonalDataManager instance associated with the delegate.
|
| @@ -70,7 +75,7 @@ class AutofillManagerDelegate {
|
| virtual void ShowRequestAutocompleteDialog(
|
| const FormData& form,
|
| const GURL& source_url,
|
| - const base::Callback<void(const FormStructure*)>& callback) = 0;
|
| + const ResultCallback& callback) = 0;
|
|
|
| // Shows an Autofill popup with the given |values|, |labels|, |icons|, and
|
| // |identifiers| for the element at |element_bounds|. |delegate| will be
|
|
|