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

Unified Diff: content/browser/payments/payment_app_provider_impl.h

Issue 2609103002: PaymentApp: Add PaymentAppProvider class. (Closed)
Patch Set: Remove override keyword 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/payments/payment_app_provider_impl.h
diff --git a/content/browser/payments/payment_app_provider_impl.h b/content/browser/payments/payment_app_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..127e181eef875d853b89a0b38181c618485692a1
--- /dev/null
+++ b/content/browser/payments/payment_app_provider_impl.h
@@ -0,0 +1,40 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
+#define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "base/memory/singleton.h"
+#include "components/payments/payment_app.mojom.h"
+#include "content/common/content_export.h"
+#include "content/public/browser/payment_app_provider.h"
+
+namespace content {
+
+class BrowserContext;
+
+class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider {
+ public:
+ static PaymentAppProviderImpl* GetInstance();
+
+ // PaymentAppProvider implementation:
+ // Should be accessed only on the UI thread.
+ void GetAllManifests(BrowserContext* browser_context,
+ const GetAllManifestsCallback& callback) override;
+
+ private:
+ PaymentAppProviderImpl();
+ ~PaymentAppProviderImpl() override;
+
+ friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
« no previous file with comments | « content/browser/payments/payment_app_context_impl_unittest.cc ('k') | content/browser/payments/payment_app_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698