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_FORM_GROUP_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ |
6 #define CHROME_BROWSER_AUTOFILL_FORM_GROUP_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "chrome/browser/autofill/field_types.h" | 13 #include "components/autofill/browser/field_types.h" |
14 | 14 |
15 class AutofillField; | 15 class AutofillField; |
16 struct FormFieldData; | 16 struct FormFieldData; |
17 | 17 |
18 // This class is an interface for collections of form fields, grouped by type. | 18 // This class is an interface for collections of form fields, grouped by type. |
19 // The information in objects of this class is managed by the | 19 // The information in objects of this class is managed by the |
20 // PersonalDataManager. | 20 // PersonalDataManager. |
21 class FormGroup { | 21 class FormGroup { |
22 public: | 22 public: |
23 virtual ~FormGroup() {} | 23 virtual ~FormGroup() {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // Returns a set of AutofillFieldTypes for which this FormGroup can store | 83 // Returns a set of AutofillFieldTypes for which this FormGroup can store |
84 // data. This method is additive on |supported_types|. | 84 // data. This method is additive on |supported_types|. |
85 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const = 0; | 85 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const = 0; |
86 | 86 |
87 // Fills in a select control for a country from data in |this|. Returns true | 87 // Fills in a select control for a country from data in |this|. Returns true |
88 // for success. | 88 // for success. |
89 virtual bool FillCountrySelectControl(FormFieldData* field_data) const; | 89 virtual bool FillCountrySelectControl(FormFieldData* field_data) const; |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_AUTOFILL_FORM_GROUP_H_ | 92 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ |
OLD | NEW |