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

Unified Diff: components/payments/payment_request_delegate.h

Issue 2611253004: [Payment Request] Change the lifetime management of PaymentRequestImpl (Closed)
Patch Set: fix ios dependency Created 3 years, 11 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: components/payments/payment_request_delegate.h
diff --git a/components/payments/payment_request_delegate.h b/components/payments/payment_request_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..4c63211891f399ee41c0430e2a494f95ae302b03
--- /dev/null
+++ b/components/payments/payment_request_delegate.h
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_
+#define COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_
+
+namespace payments {
+
+class PaymentRequestImpl;
+
+class PaymentRequestDelegate {
+ public:
+ virtual ~PaymentRequestDelegate() {}
+
+ // Shows the Payment Request dialog for the given |impl|.
+ virtual void ShowPaymentRequestDialog(PaymentRequestImpl* impl) = 0;
+};
+
+} // namespace payments
+
+#endif // COMPONENTS_PAYMENTS_PAYMENT_REQUEST_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698