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

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

Issue 2529733002: [WebPayments] Move views-specific code to c/b/ui/views/ (Closed)
Patch Set: Implement ShowWebPaymentsDialog in TestBrowserWindow Created 4 years, 1 month 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/payment_request_impl.h
diff --git a/chrome/browser/payments/payment_request_impl.h b/chrome/browser/payments/payment_request_impl.h
index fdc3d47558748d4a538065a5afc8245e1a01bdd9..d03d964153e51fef68533327d7da8bee8497e692 100644
--- a/chrome/browser/payments/payment_request_impl.h
+++ b/chrome/browser/payments/payment_request_impl.h
@@ -34,15 +34,19 @@ class PaymentRequestImpl : payments::mojom::PaymentRequest,
void Complete(payments::mojom::PaymentComplete result) override {}
void CanMakeActivePayment() override {}
+ void Cancel();
void OnError();
+ content::WebContents* web_contents() { return web_contents_; }
+
private:
friend class base::RefCounted<PaymentRequestImpl>;
~PaymentRequestImpl() override;
content::WebContents* web_contents_;
mojo::Binding<payments::mojom::PaymentRequest> binding_;
- PaymentRequestDialog* dialog_;
+ payments::mojom::PaymentRequestClientPtr client_;
+
DISALLOW_COPY_AND_ASSIGN(PaymentRequestImpl);
};

Powered by Google App Engine
This is Rietveld 408576698