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

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: Remove unneeded includes 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
« no previous file with comments | « no previous file | chrome/browser/autofill/validation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 autofill { 10 namespace autofill {
11 11
12 // Returns true if |text| looks like a valid credit card number. 12 // Returns true if |text| looks like a valid credit card number.
13 // Uses the Luhn formula to validate the number. 13 // Uses the Luhn formula to validate the number.
14 bool IsValidCreditCardNumber(const string16& text); 14 bool IsValidCreditCardNumber(const string16& text);
15 15
16 // Returns true if |text| looks like a valid credit card security code.
17 bool IsValidCreditCardSecurityCode(const string16& text);
18
16 } // namespace autofill 19 } // namespace autofill
17 20
18 #endif // CHROME_BROWSER_AUTOFILL_VALIDATION_H_ 21 #endif // CHROME_BROWSER_AUTOFILL_VALIDATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/validation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698