OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ | 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 static PaymentAppProviderImpl* GetInstance(); | 22 static PaymentAppProviderImpl* GetInstance(); |
23 | 23 |
24 // PaymentAppProvider implementation: | 24 // PaymentAppProvider implementation: |
25 // Should be accessed only on the UI thread. | 25 // Should be accessed only on the UI thread. |
26 void GetAllManifests(BrowserContext* browser_context, | 26 void GetAllManifests(BrowserContext* browser_context, |
27 const GetAllManifestsCallback& callback) override; | 27 const GetAllManifestsCallback& callback) override; |
28 void InvokePaymentApp( | 28 void InvokePaymentApp( |
29 BrowserContext* browser_context, | 29 BrowserContext* browser_context, |
30 int64_t registration_id, | 30 int64_t registration_id, |
31 payments::mojom::PaymentAppRequestDataPtr data) override; | 31 payments::mojom::PaymentAppRequestPtr app_request) override; |
32 | 32 |
33 private: | 33 private: |
34 PaymentAppProviderImpl(); | 34 PaymentAppProviderImpl(); |
35 ~PaymentAppProviderImpl() override; | 35 ~PaymentAppProviderImpl() override; |
36 | 36 |
37 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>; | 37 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl); | 39 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace content | 42 } // namespace content |
43 | 43 |
44 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ | 44 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
OLD | NEW |