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

Unified Diff: chrome/browser/payments/chrome_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: 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
new file mode 100644
index 0000000000000000000000000000000000000000..27722d5fcb6fd60a69e7b223117318e85b990374
--- /dev/null
+++ b/chrome/browser/payments/chrome_payment_request_delegate.h
@@ -0,0 +1,28 @@
+// 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 CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
+#define CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_
+
+#include "base/macros.h"
+#include "components/payments/payment_request_delegate.h"
+
+namespace payments {
+
+class PaymentRequestImpl;
+
+class ChromePaymentRequestDelegate : public PaymentRequestDelegate {
+ public:
+ ChromePaymentRequestDelegate() {}
+ ~ChromePaymentRequestDelegate() override {}
+
+ void ShowPaymentRequestDialog(PaymentRequestImpl* impl) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromePaymentRequestDelegate);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_PAYMENTS_CHROME_PAYMENT_REQUEST_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698