// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/payments/core/payment_currency_amount.h" #include "base/values.h" namespace payments { namespace { // These are defined as part of the spec at: // https://w3c.github.io/browser-payment-api/#dom-paymentcurrencyamount static const char kPaymentCurrencyAmountCurrency[] = …; static const char kPaymentCurrencyAmountValue[] = …; } // namespace bool PaymentCurrencyAmountFromValueDict( const base::Value::Dict& dictionary_value, mojom::PaymentCurrencyAmount* amount) { … } base::Value::Dict PaymentCurrencyAmountToValueDict( const mojom::PaymentCurrencyAmount& amount) { … } } // namespace payments