| Index: components/autofill/content/browser/autofill_provider.h
|
| diff --git a/components/autofill/content/browser/autofill_provider.h b/components/autofill/content/browser/autofill_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f661d3111b89370eda42a7c41635583d783ea7e8
|
| --- /dev/null
|
| +++ b/components/autofill/content/browser/autofill_provider.h
|
| @@ -0,0 +1,54 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_PROVIDER_H_
|
| +#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_PROVIDER_H_
|
| +
|
| +#include "base/time/time.h"
|
| +#include "components/autofill/core/common/form_data.h"
|
| +
|
| +namespace gfx {
|
| +class RectF;
|
| +}
|
| +
|
| +namespace autofill {
|
| +
|
| +class ContentAutofillDriver;
|
| +
|
| +class AutofillProvider {
|
| + public:
|
| + AutofillProvider();
|
| + virtual ~AutofillProvider();
|
| + virtual void OnQueryFormFieldAutofill(ContentAutofillDriver* driver,
|
| + int32_t id,
|
| + const FormData& form,
|
| + const FormFieldData& field,
|
| + const gfx::RectF& bounding_box) = 0;
|
| +
|
| + virtual void OnTextFieldDidChange(ContentAutofillDriver* driver,
|
| + const FormData& form,
|
| + const FormFieldData& field,
|
| + const base::TimeTicks& timestamp) = 0;
|
| +
|
| + virtual void OnWillSubmitForm(ContentAutofillDriver* driver,
|
| + const FormData& form,
|
| + const base::TimeTicks& timestamp) = 0;
|
| +
|
| + virtual void OnFocusNoLongerOnForm(ContentAutofillDriver* driver) = 0;
|
| +
|
| + virtual void OnContentAutofillDriverDestroyed(
|
| + ContentAutofillDriver* driver) = 0;
|
| +
|
| + virtual void OnDidFillAutofillFormData(ContentAutofillDriver* driver,
|
| + const FormData& form,
|
| + base::TimeTicks timestamp) = 0;
|
| +
|
| + void SendFormDataToRenderer(ContentAutofillDriver* driver,
|
| + int requestId,
|
| + const FormData& formData);
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOFILL_PROVIDER_H_
|
|
|