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

Unified Diff: components/payments/core/payment_request_delegate.h

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: BUILD Created 3 years, 8 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 | « components/payments/core/autofill_payment_instrument.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/payment_request_delegate.h
diff --git a/components/payments/content/payment_request_delegate.h b/components/payments/core/payment_request_delegate.h
similarity index 78%
rename from components/payments/content/payment_request_delegate.h
rename to components/payments/core/payment_request_delegate.h
index 98040a6aa575dc3d1de708ffcd1ec7e0841cf2d4..1465d9b3fdf94fe8ef071e4404786899a6c1cfb6 100644
--- a/components/payments/content/payment_request_delegate.h
+++ b/components/payments/core/payment_request_delegate.h
@@ -7,7 +7,11 @@
#include <string>
+#include "base/memory/weak_ptr.h"
+#include "components/autofill/core/browser/payments/full_card_request.h"
+
namespace autofill {
+class CreditCard;
class PersonalDataManager;
}
@@ -38,6 +42,12 @@ class PaymentRequestDelegate {
// Returns whether the user is in Incognito mode.
virtual bool IsIncognito() const = 0;
+
+ // Starts a FullCardRequest to unmask |credit_card|.
+ virtual void DoFullCardRequest(
+ const autofill::CreditCard& credit_card,
+ base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
+ result_delegate) = 0;
};
} // namespace payments
« no previous file with comments | « components/payments/core/autofill_payment_instrument.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698