Index: third_party/WebKit/Source/platform/payments/PlatformPaymentItem.h |
diff --git a/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.h b/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..161a97b6e0852fed7b6b20c6e79fde87ba9d2056 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/payments/PlatformPaymentItem.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2016 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 PlatformPaymentItem_h |
+#define PlatformPaymentItem_h |
+ |
+#include "components/payments/payment_request.mojom.h" |
+#include "mojo/public/cpp/bindings/type_converter.h" |
+#include "platform/PlatformExport.h" |
+#include "platform/payments/PlatformCurrencyAmount.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+struct PLATFORM_EXPORT PlatformPaymentItem { |
+ String id; |
+ String label; |
+ PlatformCurrencyAmount amount; |
+}; |
+ |
+} // namespace blink |
+ |
+namespace mojo { |
+ |
+template <> |
+struct TypeConverter<payments::mojom::PaymentItemPtr, blink::PlatformPaymentItem> { |
+ static payments::mojom::PaymentItemPtr Convert(const blink::PlatformPaymentItem& input); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // PlatformPaymentItem_h |