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

Unified Diff: chrome/browser/autofill/validation.h

Issue 12213077: [Autofill] Credit Card validation for rAc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address line 2 is always valid. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autofill/validation.cc » ('j') | chrome/browser/autofill/validation.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/validation.h
diff --git a/chrome/browser/autofill/validation.h b/chrome/browser/autofill/validation.h
index f8e923bc837b283ce99814833d646f4af56c0611..c11a672d13f7ba2ee8b392f857bc1b56e8030ac3 100644
--- a/chrome/browser/autofill/validation.h
+++ b/chrome/browser/autofill/validation.h
@@ -7,12 +7,21 @@
#include "base/string16.h"
+namespace base {
+
+class Time;
+
+} // namespace base;
Ilya Sherman 2013/02/11 05:39:51 nit: Not needed?
groby-ooo-7-16 2013/02/11 22:47:53 Done.
+
namespace autofill {
// Returns true if |text| looks like a valid credit card number.
// Uses the Luhn formula to validate the number.
bool IsValidCreditCardNumber(const string16& text);
+// Returns true if |text| looks like a valid CSC.
+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.
+
} // namespace autofill
#endif // CHROME_BROWSER_AUTOFILL_VALIDATION_H_
« no previous file with comments | « no previous file | chrome/browser/autofill/validation.cc » ('j') | chrome/browser/autofill/validation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698