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

Side by Side Diff: content/browser/payments/payment_app_provider_impl.h

Issue 2615063002: PaymentApp: Add interfaces for implementing InvokePaymentApp(). (Closed)
Patch Set: PaymentApp: Add interfaces for implementing InvokePaymentApp(). 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 unified diff | Download patch
OLDNEW
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"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "components/payments/payment_app.mojom.h" 12 #include "components/payments/payment_app.mojom.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/payment_app_provider.h" 14 #include "content/public/browser/payment_app_provider.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class BrowserContext; 18 class BrowserContext;
19 19
20 class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider { 20 class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider {
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(
29 BrowserContext* browser_context,
30 int64_t registration_id,
31 payments::mojom::PaymentAppRequestDataPtr data) override;
28 32
29 private: 33 private:
30 PaymentAppProviderImpl(); 34 PaymentAppProviderImpl();
31 ~PaymentAppProviderImpl() override; 35 ~PaymentAppProviderImpl() override;
32 36
33 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>; 37 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>;
34 38
35 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl); 39 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl);
36 }; 40 };
37 41
38 } // namespace content 42 } // namespace content
39 43
40 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ 44 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « components/payments/payment_app.mojom ('k') | content/browser/payments/payment_app_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698