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

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

Issue 2529733002: [WebPayments] Move views-specific code to c/b/ui/views/ (Closed)
Patch Set: Rebase Created 4 years 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 | « chrome/browser/payments/BUILD.gn ('k') | chrome/browser/payments/payment_request_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2057aeb587fb97501ff7e52c30eb2193e72ccd63..39ee68f5398e5a6ac3122696408dc08051604658 100644
--- a/chrome/browser/payments/payment_request_impl.h
+++ b/chrome/browser/payments/payment_request_impl.h
@@ -14,8 +14,6 @@ class WebContents;
namespace payments {
-class PaymentRequestDialog;
-
class PaymentRequestImpl : payments::mojom::PaymentRequest,
public base::RefCounted<PaymentRequestImpl> {
public:
@@ -34,15 +32,19 @@ class PaymentRequestImpl : payments::mojom::PaymentRequest,
void Complete(payments::mojom::PaymentComplete result) override {}
void CanMakePayment() 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);
};
« no previous file with comments | « chrome/browser/payments/BUILD.gn ('k') | chrome/browser/payments/payment_request_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698