| Index: third_party/WebKit/Source/platform/payments/PlatformPaymentDetails.h
|
| diff --git a/third_party/WebKit/Source/platform/payments/PlatformPaymentDetails.h b/third_party/WebKit/Source/platform/payments/PlatformPaymentDetails.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ae7c0573d25874d789a733b80de9737bb6c41fc5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/payments/PlatformPaymentDetails.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 PlatformPaymentDetails_h
|
| +#define PlatformPaymentDetails_h
|
| +
|
| +#include "components/payments/payment_request.mojom.h"
|
| +#include "mojo/public/cpp/bindings/type_converter.h"
|
| +#include "platform/PlatformExport.h"
|
| +#include "platform/payments/PlatformPaymentItem.h"
|
| +#include "platform/payments/PlatformShippingOption.h"
|
| +#include "wtf/Vector.h"
|
| +
|
| +namespace blink {
|
| +
|
| +struct PLATFORM_EXPORT PlatformPaymentDetails {
|
| + Vector<PlatformPaymentItem> items;
|
| + Vector<PlatformShippingOption> shippingOptions;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +namespace mojo {
|
| +
|
| +template <>
|
| +struct TypeConverter<payments::mojom::PaymentDetailsPtr, blink::PlatformPaymentDetails> {
|
| + static payments::mojom::PaymentDetailsPtr Convert(const blink::PlatformPaymentDetails& input);
|
| +};
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // PlatformPaymentDetails_h
|
|
|