| 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 <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "components/payments/content/payment_app.mojom.h" | 13 #include "components/payments/mojom/payment_app.mojom.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class BrowserContext; | 18 class BrowserContext; |
| 19 | 19 |
| 20 // This is providing the service worker based payment app related APIs to | 20 // This is providing the service worker based payment app related APIs to |
| 21 // Chrome layer. This class is a singleton, the instance of which can be | 21 // Chrome layer. This class is a singleton, the instance of which can be |
| 22 // retrieved using the static GetInstance() method. | 22 // retrieved using the static GetInstance() method. |
| 23 // All methods must be called on the UI thread. | 23 // All methods must be called on the UI thread. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 48 payments::mojom::PaymentAppRequestPtr app_request, | 48 payments::mojom::PaymentAppRequestPtr app_request, |
| 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 |