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 COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_ |
6 #define COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "components/autofill/browser/field_types.h" | 11 #include "components/autofill/core/browser/field_types.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 | 14 |
15 // This class is an interface for collections of form fields, grouped by type. | 15 // This class is an interface for collections of form fields, grouped by type. |
16 class FormGroup { | 16 class FormGroup { |
17 public: | 17 public: |
18 virtual ~FormGroup() {} | 18 virtual ~FormGroup() {} |
19 | 19 |
20 // Used to determine the type of a field based on the text that a user enters | 20 // Used to determine the type of a field based on the text that a user enters |
21 // into the field, interpreted in the given |app_locale| if appropriate. The | 21 // into the field, interpreted in the given |app_locale| if appropriate. The |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // non-AutofillProfile type, for which mere inheritance is insufficient. | 56 // non-AutofillProfile type, for which mere inheritance is insufficient. |
57 friend class AutofillProfile; | 57 friend class AutofillProfile; |
58 | 58 |
59 // Returns a set of AutofillFieldTypes for which this FormGroup can store | 59 // Returns a set of AutofillFieldTypes for which this FormGroup can store |
60 // data. This method is additive on |supported_types|. | 60 // data. This method is additive on |supported_types|. |
61 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const = 0; | 61 virtual void GetSupportedTypes(FieldTypeSet* supported_types) const = 0; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace autofill | 64 } // namespace autofill |
65 | 65 |
66 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ | 66 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_ |
OLD | NEW |