| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TYPE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | |
| 12 | 11 |
| 13 #include "base/string16.h" | 12 #include "base/string16.h" |
| 14 #include "chrome/browser/autofill/field_types.h" | 13 #include "chrome/browser/autofill/field_types.h" |
| 15 | 14 |
| 16 // The high-level description of AutoFill types, used to categorize form fields | 15 // The high-level description of AutoFill types, used to categorize form fields |
| 17 // and for associating form fields with form values in the Web Database. | 16 // and for associating form fields with form values in the Web Database. |
| 18 class AutoFillType { | 17 class AutoFillType { |
| 19 public: | 18 public: |
| 20 enum FieldTypeGroup { | 19 enum FieldTypeGroup { |
| 21 NO_GROUP, | 20 NO_GROUP, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 private: | 61 private: |
| 63 AutoFillFieldType field_type_; | 62 AutoFillFieldType field_type_; |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 typedef AutoFillType::FieldTypeGroup FieldTypeGroup; | 65 typedef AutoFillType::FieldTypeGroup FieldTypeGroup; |
| 67 typedef AutoFillType::FieldTypeSubGroup FieldTypeSubGroup; | 66 typedef AutoFillType::FieldTypeSubGroup FieldTypeSubGroup; |
| 68 typedef std::set<AutoFillFieldType> FieldTypeSet; | 67 typedef std::set<AutoFillFieldType> FieldTypeSet; |
| 69 typedef std::map<string16, AutoFillFieldType> FieldTypeMap; | 68 typedef std::map<string16, AutoFillFieldType> FieldTypeMap; |
| 70 | 69 |
| 71 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ | 70 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_ |
| OLD | NEW |