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 COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ |
6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ | 6 #define COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/payments/mojom/payment_request.mojom.h" | 11 #include "components/payments/content/payment_request.mojom.h" |
12 | 12 |
13 namespace payments { | 13 namespace payments { |
14 | 14 |
15 class PaymentsValidators { | 15 class PaymentsValidators { |
16 public: | 16 public: |
17 // The most common identifiers are three-letter alphabetic codes as | 17 // The most common identifiers are three-letter alphabetic codes as |
18 // defined by [ISO4217] (for example, "USD" for US Dollars). |system| is | 18 // defined by [ISO4217] (for example, "USD" for US Dollars). |system| is |
19 // a URL that indicates the currency system that the currency identifier | 19 // a URL that indicates the currency system that the currency identifier |
20 // belongs to. By default, the value is urn:iso:std:iso:4217 indicating | 20 // belongs to. By default, the value is urn:iso:std:iso:4217 indicating |
21 // that currency is defined by [[ISO4217]], however any string of at most | 21 // that currency is defined by [[ISO4217]], however any string of at most |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 static bool isValidErrorMsgFormat(const std::string& code, | 54 static bool isValidErrorMsgFormat(const std::string& code, |
55 std::string* optional_error_message); | 55 std::string* optional_error_message); |
56 | 56 |
57 private: | 57 private: |
58 DISALLOW_IMPLICIT_CONSTRUCTORS(PaymentsValidators); | 58 DISALLOW_IMPLICIT_CONSTRUCTORS(PaymentsValidators); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace payments | 61 } // namespace payments |
62 | 62 |
63 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ | 63 #endif // COMPONENTS_PAYMENTS_CONTENT_PAYMENTS_VALIDATORS_H_ |
OLD | NEW |