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

Side by Side 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 unified diff | Download patch
OLDNEW
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_
OLDNEW
« 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