| Index: components/autofill/core/browser/autofill_driver.h
|
| diff --git a/components/autofill/core/browser/autofill_driver.h b/components/autofill/core/browser/autofill_driver.h
|
| index 88ea7a81a93c872e034b169bff7d445006bec2d4..14620edf38bb77d20ca5c58ee5ae6e5335a63a71 100644
|
| --- a/components/autofill/core/browser/autofill_driver.h
|
| +++ b/components/autofill/core/browser/autofill_driver.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_
|
| #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DRIVER_H_
|
|
|
| +#include <vector>
|
| +
|
| #include "components/autofill/core/common/form_data.h"
|
|
|
| namespace content {
|
| @@ -13,6 +15,8 @@ class WebContents;
|
|
|
| namespace autofill {
|
|
|
| +class FormStructure;
|
| +
|
| // Interface that allows Autofill core code to interact with its driver (i.e.,
|
| // obtain information from it and give information to it). A concrete
|
| // implementation must be provided by the driver.
|
| @@ -31,6 +35,12 @@ class AutofillDriver {
|
| // original request for the data. This method is a no-op if the renderer is
|
| // not currently available.
|
| virtual void SendFormDataToRenderer(int query_id, const FormData& data) = 0;
|
| +
|
| + // Sends the field type predictions specified in |forms| to the renderer. This
|
| + // method is a no-op if the renderer is not available or the appropriate
|
| + // command-line flag is not set.
|
| + virtual void SendAutofillTypePredictionsToRenderer(
|
| + const std::vector<FormStructure*>& forms) = 0;
|
| };
|
|
|
| } // namespace autofill
|
|
|