OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebPaymentAppRequestData_h | 5 #ifndef WebPaymentAppRequest_h |
6 #define WebPaymentAppRequestData_h | 6 #define WebPaymentAppRequest_h |
7 | 7 |
8 #include "public/platform/WebString.h" | 8 #include "public/platform/WebString.h" |
9 #include "public/platform/WebVector.h" | 9 #include "public/platform/WebVector.h" |
10 #include "public/platform/modules/payments/WebPaymentDetailsModifier.h" | 10 #include "public/platform/modules/payments/WebPaymentDetailsModifier.h" |
11 #include "public/platform/modules/payments/WebPaymentItem.h" | 11 #include "public/platform/modules/payments/WebPaymentItem.h" |
12 #include "public/platform/modules/payments/WebPaymentMethodData.h" | 12 #include "public/platform/modules/payments/WebPaymentMethodData.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 // https://w3c.github.io/webpayments-payment-apps-api/#sec-app-request-data | 16 // https://w3c.github.io/webpayments-payment-apps-api/#idl-def-paymentapprequest |
17 struct WebPaymentAppRequestData { | 17 struct WebPaymentAppRequest { |
18 WebString origin; | 18 WebString origin; |
19 WebVector<WebPaymentMethodData> methodData; | 19 WebVector<WebPaymentMethodData> methodData; |
20 WebPaymentItem total; | 20 WebPaymentItem total; |
21 WebVector<WebPaymentDetailsModifier> modifiers; | 21 WebVector<WebPaymentDetailsModifier> modifiers; |
22 WebString optionId; | 22 WebString optionId; |
23 }; | 23 }; |
24 | 24 |
25 } // namespace blink | 25 } // namespace blink |
26 | 26 |
27 #endif // WebPaymentAppRequestData_h | 27 #endif // WebPaymentAppRequest_h |
OLD | NEW |