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

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

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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_BROWSER_FORM_GROUP_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_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 "components/autofill/browser/field_types.h" 13 #include "components/autofill/browser/field_types.h"
14 #include "components/autofill/common/autofill_export.h"
14 15
15 namespace autofill { 16 namespace autofill {
16 17
17 class AutofillField; 18 class AutofillField;
18 struct FormFieldData; 19 struct FormFieldData;
19 20
20 // This class is an interface for collections of form fields, grouped by type. 21 // This class is an interface for collections of form fields, grouped by type.
21 // The information in objects of this class is managed by the 22 // The information in objects of this class is managed by the
22 // PersonalDataManager. 23 // PersonalDataManager.
23 class FormGroup { 24 class AUTOFILL_EXPORT FormGroup {
24 public: 25 public:
25 virtual ~FormGroup() {} 26 virtual ~FormGroup() {}
26 27
27 // Returns a globally unique ID for this object. It is an error to call the 28 // Returns a globally unique ID for this object. It is an error to call the
28 // default implementation. 29 // default implementation.
29 virtual std::string GetGUID() const; 30 virtual std::string GetGUID() const;
30 31
31 // Used to determine the type of a field based on the text that a user enters 32 // Used to determine the type of a field based on the text that a user enters
32 // into the field, interpreted in the given |app_locale| if appropriate. The 33 // into the field, interpreted in the given |app_locale| if appropriate. The
33 // field types can then be reported back to the server. This method is 34 // field types can then be reported back to the server. This method is
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 // Fills in a select control for a country from data in |this|. Returns true 88 // Fills in a select control for a country from data in |this|. Returns true
88 // for success. 89 // for success.
89 virtual bool FillCountrySelectControl(const std::string& app_locale, 90 virtual bool FillCountrySelectControl(const std::string& app_locale,
90 FormFieldData* field_data) const; 91 FormFieldData* field_data) const;
91 }; 92 };
92 93
93 } // namespace autofill 94 } // namespace autofill
94 95
95 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_ 96 #endif // COMPONENTS_AUTOFILL_BROWSER_FORM_GROUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698