Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: components/payments/content/payments_validators.h

Issue 2811593009: [Payments] move //components/payments/content/*.mojom files to //components/payments/mojom (Closed)
Patch Set: Reland after updating chrome_content_browser_client.cc to fix android build Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/content/payment_request.mojom.h" 11 #include "components/payments/mojom/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
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_
OLDNEW
« no previous file with comments | « components/payments/content/payment_response_helper_unittest.cc ('k') | components/payments/content/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698