Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: components/autofill/core/browser/autofill_client.h

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove std::move Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698