Index: third_party/WebKit/Source/platform/payments/PlatformPaymentOptions.h |
diff --git a/third_party/WebKit/Source/platform/payments/PlatformPaymentOptions.h b/third_party/WebKit/Source/platform/payments/PlatformPaymentOptions.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d0d17e2b099a09579be35802ddd44148bc03324 |
--- /dev/null |
+++ b/third_party/WebKit/Source/platform/payments/PlatformPaymentOptions.h |
@@ -0,0 +1,29 @@ |
+// 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 PlatformPaymentOptions_h |
+#define PlatformPaymentOptions_h |
+ |
+#include "components/payments/payment_request.mojom.h" |
+#include "mojo/public/cpp/bindings/type_converter.h" |
+#include "platform/PlatformExport.h" |
+ |
+namespace blink { |
+ |
+struct PLATFORM_EXPORT PlatformPaymentOptions { |
+ bool requestShipping; |
+}; |
+ |
+} // namespace blink |
+ |
+namespace mojo { |
+ |
+template <> |
+struct TypeConverter<payments::mojom::PaymentOptionsPtr, blink::PlatformPaymentOptions> { |
+ static payments::mojom::PaymentOptionsPtr Convert(const blink::PlatformPaymentOptions& input); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // PlatformPaymentOptions_h |