OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "base/memory/singleton.h" |
| 12 #include "components/payments/payment_app.mojom.h" |
| 13 #include "content/common/content_export.h" |
| 14 #include "content/public/browser/payment_app_provider.h" |
| 15 |
| 16 namespace content { |
| 17 |
| 18 class BrowserContext; |
| 19 |
| 20 class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider { |
| 21 public: |
| 22 static PaymentAppProviderImpl* GetInstance(); |
| 23 |
| 24 // PaymentAppProvider implementation: |
| 25 // Should be accessed only on the UI thread. |
| 26 void GetAllManifests(BrowserContext* browser_context, |
| 27 const GetAllManifestsCallback& callback) override; |
| 28 |
| 29 private: |
| 30 PaymentAppProviderImpl(); |
| 31 ~PaymentAppProviderImpl() override; |
| 32 |
| 33 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl); |
| 36 }; |
| 37 |
| 38 } // namespace content |
| 39 |
| 40 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ |
OLD | NEW |