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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentsValidators.h

Issue 1753543002: PaymentRequest Mojo bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface
Patch Set: platform depends on mojo/wtf_support Created 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PaymentsValidators_h
6 #define PaymentsValidators_h
7
8 #include "modules/ModulesExport.h"
9 #include "wtf/text/WTFString.h"
10
11 namespace blink {
12
13 class MODULES_EXPORT PaymentsValidators final {
haraken 2016/03/31 02:19:34 Add STATIC_ONLY.
esprehn 2016/03/31 04:44:58 I'd prefer we just used namespaces tbh, but we can
please use gerrit instead 2016/03/31 20:43:08 Done.
please use gerrit instead 2016/03/31 20:43:09 Acknowledged.
14 public:
15 // Returns true if |code| is a valid ISO 4217 currency code.
16 static bool isValidCurrencyCodeFormat(const String& code, String* optionalEr rorMessage);
17
18 // Returns true if |amount| is a valid currency code as defined in ISO 20022 CurrencyAnd30Amount.
19 static bool isValidAmountFormat(const String& amount, String* optionalErrorM essage);
20
21 // Returns true if |code| is a valid ISO 3166 country code.
22 static bool isValidRegionCodeFormat(const String& code, String* optionalErro rMessage);
23
24 // Returns true if |code| is a valid ISO 639 language code.
25 static bool isValidLanguageCodeFormat(const String& code, String* optionalEr rorMessage);
26
27 // Returns true if |code| is a valid ISO 1524 script code.
28 static bool isValidScriptCodeFormat(const String& code, String* optionalErro rMessage);
29
30 private:
31 PaymentsValidators() {}
32 ~PaymentsValidators() {}
haraken 2016/03/31 02:19:34 Remove the constructor and destructor.
please use gerrit instead 2016/03/31 20:43:08 Done.
33 };
34
35 } // namespace blink
36
37 #endif // PaymentsValidators_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698