Chromium Code Reviews| Index: components/autofill/core/browser/autofill_provider.h |
| diff --git a/components/autofill/core/browser/autofill_provider.h b/components/autofill/core/browser/autofill_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7d488aaa6cfba695c79c1a03d5f503086a74c029 |
| --- /dev/null |
| +++ b/components/autofill/core/browser/autofill_provider.h |
| @@ -0,0 +1,55 @@ |
| +// 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_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |
|
sebsg
2017/05/24 13:32:42
This should be in the android folder.
michaelbai
2017/05/26 23:12:08
As we discussed, we will not use ifdef
|
| +#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |
| + |
| +#include "base/time/time.h" |
| +#include "components/autofill/core/common/form_data.h" |
| + |
| +namespace gfx { |
| +class RectF; |
| +} |
| + |
| +namespace autofill { |
| + |
| +class AutofillHandlerProxy; |
| + |
| +// This class is native peer of AutofillProvider, see AutofillProvider.java |
| +// for details. |
| +class AutofillProvider { |
| + public: |
| + AutofillProvider(); |
| + virtual ~AutofillProvider(); |
| + |
| + virtual void OnQueryFormFieldAutofill(AutofillHandlerProxy* handler, |
| + int32_t id, |
| + const FormData& form, |
| + const FormFieldData& field, |
| + const gfx::RectF& bounding_box) = 0; |
| + |
| + virtual void OnTextFieldDidChange(AutofillHandlerProxy* handler, |
| + const FormData& form, |
| + const FormFieldData& field, |
| + const base::TimeTicks& timestamp) = 0; |
| + |
| + virtual void OnWillSubmitForm(AutofillHandlerProxy* handler, |
| + const FormData& form, |
| + const base::TimeTicks& timestamp) = 0; |
| + |
| + virtual void OnFocusNoLongerOnForm(AutofillHandlerProxy* handler) = 0; |
| + |
| + virtual void OnDidFillAutofillFormData(AutofillHandlerProxy* handler, |
| + const FormData& form, |
| + base::TimeTicks timestamp) = 0; |
| + |
| + virtual void Reset(AutofillHandlerProxy* handler) = 0; |
| + |
| + void SendFormDataToRenderer(AutofillHandlerProxy* handler, |
| + int requestId, |
| + const FormData& formData); |
| +}; |
| +} |
|
Mathieu
2017/05/24 18:02:02
// namespace autofill
|
| + |
| +#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_ |