| Index: components/autofill/content/browser/request_autocomplete_manager.h
|
| diff --git a/components/autofill/content/browser/request_autocomplete_manager.h b/components/autofill/content/browser/request_autocomplete_manager.h
|
| index 058790f42e8332cbb95931c0e026b9cb0fc9a374..ef0767f70ba498d8ca261cb70d1b6c0a16b1d77c 100644
|
| --- a/components/autofill/content/browser/request_autocomplete_manager.h
|
| +++ b/components/autofill/content/browser/request_autocomplete_manager.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/callback_forward.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "components/autofill/core/browser/autofill_manager_delegate.h"
|
| #include "third_party/WebKit/public/web/WebFormElement.h"
|
|
|
| class GURL;
|
| @@ -31,25 +32,20 @@ class RequestAutocompleteManager {
|
| void OnCancelRequestAutocomplete();
|
|
|
| private:
|
| + // FIXME
|
| // Tells the renderer that the current interactive autocomplete dialog
|
| // finished with the |result| saying if it was successfull or not, and
|
| // |form_data| containing the filled form data.
|
| void ReturnAutocompleteResult(
|
| blink::WebFormElement::AutocompleteResult result,
|
| - const FormData& form_data);
|
| + const FormStructure* form_structure);
|
|
|
| // Shows the requestAutocomplete dialog for |source_url| with data from |form|
|
| // and calls |callback| once the interaction is complete.
|
| void ShowRequestAutocompleteDialog(
|
| const FormData& form,
|
| const GURL& source_url,
|
| - const base::Callback<void(const FormStructure*)>& callback);
|
| -
|
| - // If |result| is not null, derives a FormData object from it and passes it
|
| - // back to the page along an |AutocompleteResultSuccess| result. Otherwise, it
|
| - // passes to the page an empty FormData along an
|
| - // |AutocompleteResultErrorCancel| result.
|
| - void ReturnAutocompleteData(const FormStructure* result);
|
| + const AutofillManagerDelegate::ResultCallback& callback);
|
|
|
| // The autofill driver owns and outlives |this|.
|
| ContentAutofillDriver* const autofill_driver_; // weak.
|
|
|