| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_PHONE_FIELD_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_PHONE_FIELD_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_PHONE_FIELD_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_PHONE_FIELD_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 RegexType regex; // Field matching reg-ex. | 70 RegexType regex; // Field matching reg-ex. |
| 71 PhonePart phone_part; // Index of the field. | 71 PhonePart phone_part; // Index of the field. |
| 72 size_t max_size; // Max size of the field to match. 0 means any. | 72 size_t max_size; // Max size of the field to match. 0 means any. |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 static const Parser kPhoneFieldGrammars[]; | 75 static const Parser kPhoneFieldGrammars[]; |
| 76 | 76 |
| 77 PhoneField(); | 77 PhoneField(); |
| 78 | 78 |
| 79 // Returns the regular expression string correspoding to |regex_id| | 79 // Returns the regular expression string correspoding to |regex_id| |
| 80 static string16 GetRegExp(RegexType regex_id); | 80 static base::string16 GetRegExp(RegexType regex_id); |
| 81 | 81 |
| 82 // FIELD_PHONE is always present; holds suffix if prefix is present. | 82 // FIELD_PHONE is always present; holds suffix if prefix is present. |
| 83 // The rest could be NULL. | 83 // The rest could be NULL. |
| 84 const AutofillField* parsed_phone_fields_[FIELD_MAX]; | 84 const AutofillField* parsed_phone_fields_[FIELD_MAX]; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(PhoneField); | 86 DISALLOW_COPY_AND_ASSIGN(PhoneField); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // COMPONENTS_AUTOFILL_BROWSER_PHONE_FIELD_H_ | 89 #endif // COMPONENTS_AUTOFILL_BROWSER_PHONE_FIELD_H_ |
| OLD | NEW |