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

Side by Side Diff: components/autofill/core/browser/validation.h

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 namespace base { 10 namespace base {
(...skipping 28 matching lines...) Expand all
39 39
40 // Returns true if |text| is a valid US state name or abbreviation. It is 40 // Returns true if |text| is a valid US state name or abbreviation. It is
41 // case insensitive. Valid for US states only. 41 // case insensitive. Valid for US states only.
42 bool IsValidState(const base::string16& text); 42 bool IsValidState(const base::string16& text);
43 43
44 // Returns true if |text| looks like a valid zip code. 44 // Returns true if |text| looks like a valid zip code.
45 // Valid for US zip codes only. 45 // Valid for US zip codes only.
46 bool IsValidZip(const base::string16& text); 46 bool IsValidZip(const base::string16& text);
47 47
48 // Returns true if |text| looks like an SSN, with or without separators. 48 // Returns true if |text| looks like an SSN, with or without separators.
49 bool IsSSN(const string16& text); 49 bool IsSSN(const base::string16& text);
50 50
51 } // namespace autofill 51 } // namespace autofill
52 52
53 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_ 53 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_VALIDATION_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/phone_field_unittest.cc ('k') | components/autofill/core/browser/validation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698