| 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 PaymentsValidators_h | 5 #ifndef PaymentsValidators_h |
| 6 #define PaymentsValidators_h | 6 #define PaymentsValidators_h |
| 7 | 7 |
| 8 #include "components/payments/payment_request.mojom-blink.h" |
| 8 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 9 #include "public/platform/modules/payments/payment_request.mojom-blink.h" | |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class MODULES_EXPORT PaymentsValidators final { | 15 class MODULES_EXPORT PaymentsValidators final { |
| 16 STATIC_ONLY(PaymentsValidators); | 16 STATIC_ONLY(PaymentsValidators); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 // The most common identifiers are three-letter alphabetic codes as defined by | 19 // The most common identifiers are three-letter alphabetic codes as defined by |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 String* optionalErrorMessage); | 49 String* optionalErrorMessage); |
| 50 | 50 |
| 51 // Returns false if |error| is too long (greater than 2048). | 51 // Returns false if |error| is too long (greater than 2048). |
| 52 static bool isValidErrorMsgFormat(const String& code, | 52 static bool isValidErrorMsgFormat(const String& code, |
| 53 String* optionalErrorMessage); | 53 String* optionalErrorMessage); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 #endif // PaymentsValidators_h | 58 #endif // PaymentsValidators_h |
| OLD | NEW |