| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ |
| 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "components/payments/content/payment_request.mojom.h" | |
| 15 #include "components/payments/core/currency_formatter.h" | 14 #include "components/payments/core/currency_formatter.h" |
| 16 #include "components/payments/core/payment_options_provider.h" | 15 #include "components/payments/core/payment_options_provider.h" |
| 16 #include "components/payments/mojom/payment_request.mojom.h" |
| 17 | 17 |
| 18 namespace payments { | 18 namespace payments { |
| 19 | 19 |
| 20 // Identifier for the basic card payment method in the PaymentMethodData. | 20 // Identifier for the basic card payment method in the PaymentMethodData. |
| 21 extern const char kBasicCardMethodName[]; | 21 extern const char kBasicCardMethodName[]; |
| 22 | 22 |
| 23 // The spec contains all the options that the merchant has specified about this | 23 // The spec contains all the options that the merchant has specified about this |
| 24 // Payment Request. It's a (mostly) read-only view, which can be updated in | 24 // Payment Request. It's a (mostly) read-only view, which can be updated in |
| 25 // certain occasions by the merchant (see API). | 25 // certain occasions by the merchant (see API). |
| 26 class PaymentRequestSpec : public PaymentOptionsProvider { | 26 class PaymentRequestSpec : public PaymentOptionsProvider { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // notified. | 154 // notified. |
| 155 base::ObserverList<Observer> observers_; | 155 base::ObserverList<Observer> observers_; |
| 156 Observer* observer_for_testing_; | 156 Observer* observer_for_testing_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSpec); | 158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestSpec); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace payments | 161 } // namespace payments |
| 162 | 162 |
| 163 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ | 163 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENT_REQUEST_SPEC_H_ |
| OLD | NEW |