| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAYMENTS_ADDRESS_NORMALIZER_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CORE_ADDRESS_NORMALIZER_H_ |
| 6 #define COMPONENTS_PAYMENTS_ADDRESS_NORMALIZER_H_ | 6 #define COMPONENTS_PAYMENTS_CORE_ADDRESS_NORMALIZER_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <memory> |
| 10 #include <string> |
| 11 #include <vector> |
| 7 | 12 |
| 8 #include "base/macros.h" | 13 #include "base/macros.h" |
| 9 #include "components/autofill/core/browser/autofill_profile.h" | |
| 10 #include "third_party/libaddressinput/chromium/chrome_address_validator.h" | 14 #include "third_party/libaddressinput/chromium/chrome_address_validator.h" |
| 11 | 15 |
| 12 using autofill::AutofillProfile; | 16 namespace autofill { |
| 17 class AutofillProfile; |
| 18 } |
| 19 |
| 20 namespace i18n { |
| 21 namespace libadderssinput { |
| 22 class Source; |
| 23 class Storage; |
| 24 } |
| 25 } |
| 13 | 26 |
| 14 namespace payments { | 27 namespace payments { |
| 15 | 28 |
| 16 // A class used to normalize addresses. | 29 // A class used to normalize addresses. |
| 17 class AddressNormalizer : public autofill::LoadRulesListener { | 30 class AddressNormalizer : public autofill::LoadRulesListener { |
| 18 public: | 31 public: |
| 19 // The interface for the normalization delegates. | 32 // The interface for the normalization delegates. |
| 20 class Delegate { | 33 class Delegate { |
| 21 public: | 34 public: |
| 22 virtual void OnAddressNormalized( | 35 virtual void OnAddressNormalized( |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 pending_normalization_; | 84 pending_normalization_; |
| 72 | 85 |
| 73 // The address validator used to normalize addresses. | 86 // The address validator used to normalize addresses. |
| 74 autofill::AddressValidator address_validator_; | 87 autofill::AddressValidator address_validator_; |
| 75 | 88 |
| 76 DISALLOW_COPY_AND_ASSIGN(AddressNormalizer); | 89 DISALLOW_COPY_AND_ASSIGN(AddressNormalizer); |
| 77 }; | 90 }; |
| 78 | 91 |
| 79 } // namespace payments | 92 } // namespace payments |
| 80 | 93 |
| 81 #endif // COMPONENTS_PAYMENTS_ADDRESS_NORMALIZER_H_ | 94 #endif // COMPONENTS_PAYMENTS_CORE_ADDRESS_NORMALIZER_H_ |
| OLD | NEW |