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

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

Issue 2609103002: PaymentApp: Add PaymentAppProvider class. (Closed)
Patch Set: PaymentApp: Add PaymentAppProvider class. 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
(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.
please use gerrit instead 2017/01/04 16:55:43 "Should be accessed only on the UI thread." -- Thi
zino 2017/01/04 17:29:59 I already left a comment at the top of the class d
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698