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

Unified Diff: content/shell/browser/layout_test/layout_test_payment_app_provider_impl.h

Issue 2647243002: PaymentApp: Implement PaymentAppProvider for LayoutTest.
Patch Set: PaymentApp: Implement PaymentAppProvider for LayoutTest. 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/shell/browser/layout_test/layout_test_payment_app_provider_impl.h
diff --git a/content/shell/browser/layout_test/layout_test_payment_app_provider_impl.h b/content/shell/browser/layout_test/layout_test_payment_app_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e75ad09db046395f8c7bdf03ef95979f79cea92
--- /dev/null
+++ b/content/shell/browser/layout_test/layout_test_payment_app_provider_impl.h
@@ -0,0 +1,32 @@
+// 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_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PAYMENT_APP_PROVIDER_IMPL_H_
+#define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PAYMENT_APP_PROVIDER_IMPL_H_
+
+#include "base/macros.h"
+#include "content/shell/common/layout_test/layout_test_payment_app_provider.mojom.h"
+
+namespace content {
+
+class LayoutTestPaymentAppProviderImpl
+ : public mojom::LayoutTestPaymentAppProvider {
+ public:
+ LayoutTestPaymentAppProviderImpl();
+ ~LayoutTestPaymentAppProviderImpl() override;
+
+ static void Create(mojom::LayoutTestPaymentAppProviderRequest request);
+
+ private:
+ // Implmenetation of LayoutTestPaymentAppProvider
+ void GetAllPaymentAppIDs(
+ const GetAllPaymentAppIDsCallback& callback) override;
+ void InvokePaymentApp(int64_t registration_id) override;
+
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestPaymentAppProviderImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_PAYMENT_APP_PROVIDER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698