Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: components/autofill/core/browser/form_group.h

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/form_field_unittest.cc ('k') | components/autofill/core/browser/form_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698