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

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

Issue 2110563002: Use AutofillProfileComparator in place of ad-hoc merge logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge
Patch Set: Rebase Created 4 years, 5 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/address.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_ADDRESS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/autofill/core/browser/form_group.h" 13 #include "components/autofill/core/browser/form_group.h"
14 14
15 namespace autofill { 15 namespace autofill {
16 16
17 // A form group that stores address information. 17 // A form group that stores address information.
18 class Address : public FormGroup { 18 class Address : public FormGroup {
19 public: 19 public:
20 Address(); 20 Address();
21 Address(const Address& address); 21 Address(const Address& address);
22 ~Address() override; 22 ~Address() override;
23 23
24 Address& operator=(const Address& address); 24 Address& operator=(const Address& address);
25 bool operator==(const Address& other) const;
26 bool operator!=(const Address& other) const { return !operator==(other); }
25 27
26 // FormGroup: 28 // FormGroup:
27 base::string16 GetRawInfo(ServerFieldType type) const override; 29 base::string16 GetRawInfo(ServerFieldType type) const override;
28 void SetRawInfo(ServerFieldType type, const base::string16& value) override; 30 void SetRawInfo(ServerFieldType type, const base::string16& value) override;
29 base::string16 GetInfo(const AutofillType& type, 31 base::string16 GetInfo(const AutofillType& type,
30 const std::string& app_locale) const override; 32 const std::string& app_locale) const override;
31 bool SetInfo(const AutofillType& type, 33 bool SetInfo(const AutofillType& type,
32 const base::string16& value, 34 const base::string16& value,
33 const std::string& app_locale) override; 35 const std::string& app_locale) override;
34 void GetMatchingTypes(const base::string16& text, 36 void GetMatchingTypes(const base::string16& text,
(...skipping 19 matching lines...) Expand all
54 base::string16 sorting_code_; 56 base::string16 sorting_code_;
55 57
56 // The ISO 3166 2-letter country code, or an empty string if there is no 58 // The ISO 3166 2-letter country code, or an empty string if there is no
57 // country data specified for this address. 59 // country data specified for this address.
58 std::string country_code_; 60 std::string country_code_;
59 }; 61 };
60 62
61 } // namespace autofill 63 } // namespace autofill
62 64
63 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_ 65 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/address.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698