| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 using GetAllPaymentAppsCallback = base::OnceCallback<void(PaymentApps)>; | 38 using GetAllPaymentAppsCallback = base::OnceCallback<void(PaymentApps)>; |
| 39 using InvokePaymentAppCallback = | 39 using InvokePaymentAppCallback = |
| 40 base::Callback<void(payments::mojom::PaymentAppResponsePtr)>; | 40 base::Callback<void(payments::mojom::PaymentAppResponsePtr)>; |
| 41 | 41 |
| 42 // Should be accessed only on the UI thread. | 42 // Should be accessed only on the UI thread. |
| 43 virtual void GetAllPaymentApps(BrowserContext* browser_context, | 43 virtual void GetAllPaymentApps(BrowserContext* browser_context, |
| 44 GetAllPaymentAppsCallback callback) = 0; | 44 GetAllPaymentAppsCallback callback) = 0; |
| 45 virtual void InvokePaymentApp( | 45 virtual void InvokePaymentApp( |
| 46 BrowserContext* browser_context, | 46 BrowserContext* browser_context, |
| 47 int64_t registration_id, | 47 int64_t registration_id, |
| 48 payments::mojom::PaymentAppRequestPtr app_request, | 48 payments::mojom::PaymentRequestEventDataPtr event_data, |
| 49 const InvokePaymentAppCallback& callback) = 0; | 49 const InvokePaymentAppCallback& callback) = 0; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual ~PaymentAppProvider() {} | 52 virtual ~PaymentAppProvider() {} |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace content | 55 } // namespace content |
| 56 | 56 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ | 57 #endif // CONTENT_PUBLIC_BROWSER_PAYMENT_APP_PROVIDER_H_ |
| OLD | NEW |