Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_AUTOFILL_VALIDATION_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_VALIDATION_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_VALIDATION_H_ | 6 #define CHROME_BROWSER_AUTOFILL_VALIDATION_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 | 9 |
| 10 namespace base { | |
| 11 | |
| 12 class Time; | |
| 13 | |
| 14 } // namespace base; | |
|
Ilya Sherman
2013/02/11 05:39:51
nit: Not needed?
groby-ooo-7-16
2013/02/11 22:47:53
Done.
| |
| 15 | |
| 10 namespace autofill { | 16 namespace autofill { |
| 11 | 17 |
| 12 // Returns true if |text| looks like a valid credit card number. | 18 // Returns true if |text| looks like a valid credit card number. |
| 13 // Uses the Luhn formula to validate the number. | 19 // Uses the Luhn formula to validate the number. |
| 14 bool IsValidCreditCardNumber(const string16& text); | 20 bool IsValidCreditCardNumber(const string16& text); |
| 15 | 21 |
| 22 // Returns true if |text| looks like a valid CSC. | |
| 23 bool IsValidCreditCardCSC(const string16& text); | |
|
Ilya Sherman
2013/02/11 05:39:51
nit: Let's spell out "(card) security code" rather
groby-ooo-7-16
2013/02/11 22:47:53
Done.
| |
| 24 | |
| 16 } // namespace autofill | 25 } // namespace autofill |
| 17 | 26 |
| 18 #endif // CHROME_BROWSER_AUTOFILL_VALIDATION_H_ | 27 #endif // CHROME_BROWSER_AUTOFILL_VALIDATION_H_ |
| OLD | NEW |