OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |
| 7 |
| 8 #include "base/time/time.h" |
| 9 #include "components/autofill/core/common/form_data.h" |
| 10 |
| 11 namespace gfx { |
| 12 class RectF; |
| 13 } |
| 14 |
| 15 namespace autofill { |
| 16 |
| 17 class AutofillHandlerProxy; |
| 18 |
| 19 // This class defines the interface for the autofill implementation other than |
| 20 // default AutofillManager. |
| 21 class AutofillProvider { |
| 22 public: |
| 23 AutofillProvider(); |
| 24 virtual ~AutofillProvider(); |
| 25 |
| 26 virtual void OnQueryFormFieldAutofill(AutofillHandlerProxy* handler, |
| 27 int32_t id, |
| 28 const FormData& form, |
| 29 const FormFieldData& field, |
| 30 const gfx::RectF& bounding_box) = 0; |
| 31 |
| 32 virtual void OnTextFieldDidChange(AutofillHandlerProxy* handler, |
| 33 const FormData& form, |
| 34 const FormFieldData& field, |
| 35 const base::TimeTicks timestamp) = 0; |
| 36 |
| 37 virtual bool OnWillSubmitForm(AutofillHandlerProxy* handler, |
| 38 const FormData& form, |
| 39 const base::TimeTicks timestamp) = 0; |
| 40 |
| 41 virtual void OnFocusNoLongerOnForm(AutofillHandlerProxy* handler) = 0; |
| 42 |
| 43 virtual void OnDidFillAutofillFormData(AutofillHandlerProxy* handler, |
| 44 const FormData& form, |
| 45 base::TimeTicks timestamp) = 0; |
| 46 |
| 47 virtual void Reset(AutofillHandlerProxy* handler) = 0; |
| 48 |
| 49 void SendFormDataToRenderer(AutofillHandlerProxy* handler, |
| 50 int requestId, |
| 51 const FormData& formData); |
| 52 }; |
| 53 } |
| 54 |
| 55 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |
OLD | NEW |