| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOFILL_FIELD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_FIELD_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_FIELD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_FIELD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "chrome/browser/autofill/field_types.h" | 12 #include "chrome/browser/autofill/field_types.h" |
| 13 #include "chrome/common/form_field_data.h" | 13 #include "components/autofill/common/form_field_data.h" |
| 14 | 14 |
| 15 class AutofillField : public FormFieldData { | 15 class AutofillField : public FormFieldData { |
| 16 public: | 16 public: |
| 17 enum PhonePart { | 17 enum PhonePart { |
| 18 IGNORED = 0, | 18 IGNORED = 0, |
| 19 PHONE_PREFIX = 1, | 19 PHONE_PREFIX = 1, |
| 20 PHONE_SUFFIX = 2, | 20 PHONE_SUFFIX = 2, |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 AutofillField(); | 23 AutofillField(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Used to track whether this field is a phone prefix or suffix. | 79 // Used to track whether this field is a phone prefix or suffix. |
| 80 PhonePart phone_part_; | 80 PhonePart phone_part_; |
| 81 | 81 |
| 82 // The default value returned by the Autofill server. | 82 // The default value returned by the Autofill server. |
| 83 std::string default_value_; | 83 std::string default_value_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(AutofillField); | 85 DISALLOW_COPY_AND_ASSIGN(AutofillField); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_FIELD_H_ | 88 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_FIELD_H_ |
| OLD | NEW |