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

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

Issue 2254353002: Prompt for CVC in credit card assist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better callback names 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_assistant.h
diff --git a/components/autofill/core/browser/autofill_assistant.h b/components/autofill/core/browser/autofill_assistant.h
index 1a15b4c778ea6f1f39946a73d1e7f2b0c4fcd8fe..d546601d60d92f18cad25fb5241278eddd87df0c 100644
--- a/components/autofill/core/browser/autofill_assistant.h
+++ b/components/autofill/core/browser/autofill_assistant.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "components/autofill/core/browser/payments/full_card_request.h"
#include "components/autofill/core/common/form_data.h"
namespace autofill {
@@ -20,7 +21,7 @@ class FormStructure;
// This class encompasses the triggering rules and the logic for the autofill
// assisted filling mechanisms.
-class AutofillAssistant {
+class AutofillAssistant : public payments::FullCardRequest::Delegate {
public:
explicit AutofillAssistant(AutofillManager* autofill_manager);
~AutofillAssistant();
@@ -42,6 +43,11 @@ class AutofillAssistant {
// Called by the infobar delegate when the user accepts the infobar.
void OnUserDidAcceptCreditCardFill(const CreditCard& card);
+ // payments::FullCardRequest::Delegate:
+ void OnFullCardRequestSucceeded(const CreditCard& card,
+ const base::string16& cvc) override;
+ void OnFullCardRequestFailed() override;
+
// Holds the FormData to be filled with a credit card.
std::unique_ptr<FormData> credit_card_form_data_;

Powered by Google App Engine
This is Rietveld 408576698