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

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: Fix tests. 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_assistant.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4c42f5d7834c71320ae0212336a62c4cd9644bca 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 OnFullCardDetails(const CreditCard& card,
Evan Stade 2016/08/26 22:26:01 nit: OnFooBar doesn't make much sense when FooBar
please use gerrit instead 2016/08/26 23:27:51 How about OnFullCardResponse or OnFullCardResponde
+ const base::string16& cvc) override;
+ void OnFullCardError() override;
+
// Holds the FormData to be filled with a credit card.
std::unique_ptr<FormData> credit_card_form_data_;
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_assistant.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698