| Index: components/autofill/core/browser/autofill_client.h
|
| diff --git a/components/autofill/core/browser/autofill_client.h b/components/autofill/core/browser/autofill_client.h
|
| index 354610bbcd112bfa29c3e1150feed3c81de259f7..fc195707d6a9fa6d11a69a4ed1117572d8bde74e 100644
|
| --- a/components/autofill/core/browser/autofill_client.h
|
| +++ b/components/autofill/core/browser/autofill_client.h
|
| @@ -27,6 +27,12 @@ class Rect;
|
| class RectF;
|
| }
|
|
|
| +#if defined(OS_ANDROID)
|
| +namespace infobars {
|
| +class InfoBar;
|
| +}
|
| +#endif
|
| +
|
| namespace rappor {
|
| class RapporService;
|
| }
|
| @@ -40,6 +46,9 @@ class PrefService;
|
|
|
| namespace autofill {
|
|
|
| +#if defined(OS_ANDROID)
|
| +class AutofillCreditCardFillingInfoBarDelegateMobile;
|
| +#endif
|
| class AutofillPopupDelegate;
|
| class AutofillWebDataService;
|
| class CardUnmaskDelegate;
|
| @@ -132,6 +141,19 @@ class AutofillClient {
|
| std::unique_ptr<base::DictionaryValue> legal_message,
|
| const base::Closure& callback) = 0;
|
|
|
| + // Will show an infobar to get user consent for Credit Card assistive filling.
|
| + // Will run |callback| on success.
|
| + virtual void ConfirmCreditCardFillAssist(const CreditCard& card,
|
| + const base::Closure& callback) = 0;
|
| +
|
| +#if defined(OS_ANDROID)
|
| + // Creates an infobar to prompt the user for credit card assisted filling.
|
| + // See autofill_credit_card_filling_infobar.h for details.
|
| + virtual std::unique_ptr<infobars::InfoBar> CreateCreditCardFillingInfoBar(
|
| + std::unique_ptr<AutofillCreditCardFillingInfoBarDelegateMobile>
|
| + delegate) = 0;
|
| +#endif
|
| +
|
| // Gathers risk data and provides it to |callback|.
|
| virtual void LoadRiskData(
|
| const base::Callback<void(const std::string&)>& callback) = 0;
|
|
|