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

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

Issue 2775553004: [WebPayments] Implementing Profile filter and dedupe (Closed)
Patch Set: rebasing Created 3 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
« no previous file with comments | « no previous file | components/autofill/core/browser/form_group.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_BROWSER_FORM_GROUP_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_
6 #define COMPONENTS_AUTOFILL_CORE_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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // type of that field, localized to the given |app_locale| if appropriate. 46 // type of that field, localized to the given |app_locale| if appropriate.
47 virtual base::string16 GetInfo(const AutofillType& type, 47 virtual base::string16 GetInfo(const AutofillType& type,
48 const std::string& app_locale) const; 48 const std::string& app_locale) const;
49 49
50 // Used to populate this FormGroup object with data. Canonicalizes the data 50 // Used to populate this FormGroup object with data. Canonicalizes the data
51 // according to the specified |app_locale| prior to storing, if appropriate. 51 // according to the specified |app_locale| prior to storing, if appropriate.
52 virtual bool SetInfo(const AutofillType& type, 52 virtual bool SetInfo(const AutofillType& type,
53 const base::string16& value, 53 const base::string16& value,
54 const std::string& app_locale); 54 const std::string& app_locale);
55 55
56 // Returns true iff the string associated with |type| is nonempty.
57 bool HasInfo(ServerFieldType type) const;
58 bool HasInfo(const AutofillType& type) const;
59
56 protected: 60 protected:
57 // AutofillProfile needs to call into GetSupportedTypes() for objects of 61 // AutofillProfile needs to call into GetSupportedTypes() for objects of
58 // non-AutofillProfile type, for which mere inheritance is insufficient. 62 // non-AutofillProfile type, for which mere inheritance is insufficient.
59 friend class AutofillProfile; 63 friend class AutofillProfile;
60 64
61 // Returns a set of server field types for which this FormGroup can store 65 // Returns a set of server field types for which this FormGroup can store
62 // data. This method is additive on |supported_types|. 66 // data. This method is additive on |supported_types|.
63 virtual void GetSupportedTypes(ServerFieldTypeSet* supported_types) const = 0; 67 virtual void GetSupportedTypes(ServerFieldTypeSet* supported_types) const = 0;
64 }; 68 };
65 69
66 } // namespace autofill 70 } // namespace autofill
67 71
68 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_ 72 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_GROUP_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/form_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698