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

Unified Diff: chrome/browser/payments/chrome_payment_request_delegate.h

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: Fix components_unittests 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
Index: chrome/browser/payments/chrome_payment_request_delegate.h
diff --git a/chrome/browser/payments/chrome_payment_request_delegate.h b/chrome/browser/payments/chrome_payment_request_delegate.h
index 9d955bf5ceb332195c21b7c8fe58bf34cd0ee39b..8f84e56896cbfbbbc5ef7960e40b7f8138ad8962 100644
--- a/chrome/browser/payments/chrome_payment_request_delegate.h
+++ b/chrome/browser/payments/chrome_payment_request_delegate.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
#define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
+#include <string>
+
#include "base/macros.h"
#include "components/payments/content/payment_request_delegate.h"
@@ -14,7 +16,6 @@ class WebContents;
namespace payments {
-class PaymentRequest;
class PaymentRequestDialog;
class ChromePaymentRequestDelegate : public PaymentRequestDelegate {
@@ -22,12 +23,20 @@ class ChromePaymentRequestDelegate : public PaymentRequestDelegate {
explicit ChromePaymentRequestDelegate(content::WebContents* web_contents);
~ChromePaymentRequestDelegate() override {}
+ // PaymentRequestDelegate:
void ShowDialog(PaymentRequest* request) override;
void CloseDialog() override;
void ShowErrorMessage() override;
autofill::PersonalDataManager* GetPersonalDataManager() override;
const std::string& GetApplicationLocale() const override;
bool IsIncognito() const override;
+ content::WebContents* GetWebContents() override;
+
+ // AutofillPaymentInstrument::FullCardRequestDelegate:
+ void DoFullCardRequest(
+ const autofill::CreditCard& credit_card,
+ base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
+ result_delegate) override;
protected:
// Reference to the dialog so that we can satisfy calls to CloseDialog(). This

Powered by Google App Engine
This is Rietveld 408576698