Chromium Code Reviews| 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_CORE_SUBKEY_REQUESTER_H_ | 5 #ifndef COMPONENTS_PAYMENTS_CORE_SUBKEY_REQUESTER_H_ |
| 6 #define COMPONENTS_PAYMENTS_CORE_SUBKEY_REQUESTER_H_ | 6 #define COMPONENTS_PAYMENTS_CORE_SUBKEY_REQUESTER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/libaddressinput/chromium/chrome_address_validator.h" | 9 #include "third_party/libaddressinput/chromium/chrome_address_validator.h" |
| 10 | 10 |
| 11 namespace payments { | 11 namespace payments { |
| 12 | 12 |
| 13 using SubKeyReceiverCallback = | 13 using SubKeyReceiverCallback = |
|
Mathieu
2017/07/05 16:07:15
add a comment about what each parameter is
Mathieu
2017/07/07 13:10:01
this is still not resolved?
Parastoo
2017/07/07 15:53:23
Done.
| |
| 14 base::OnceCallback<void(const std::vector<std::string>&)>; | 14 base::OnceCallback<void(const std::vector<std::string>&, |
| 15 const std::vector<std::string>&)>; | |
| 15 | 16 |
| 16 // SubKeyRequester Loads Rules from the server and extracts the subkeys. | 17 // SubKeyRequester Loads Rules from the server and extracts the subkeys. |
| 17 // For a given key (region code for a country, such as US), the list of its | 18 // For a given key (region code for a country, such as US), the list of its |
| 18 // corresponding subkeys is the list of that countries admin areas (states, | 19 // corresponding subkeys is the list of that countries admin areas (states, |
| 19 // provinces, ..). | 20 // provinces, ..). |
| 20 class SubKeyRequester : public autofill::LoadRulesListener { | 21 class SubKeyRequester : public autofill::LoadRulesListener { |
| 21 public: | 22 public: |
| 22 // The interface for the subkey request. | 23 // The interface for the subkey request. |
| 23 class Request { | 24 class Request { |
| 24 public: | 25 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 | 65 |
| 65 // The address validator used to load subkeys. | 66 // The address validator used to load subkeys. |
| 66 autofill::AddressValidator address_validator_; | 67 autofill::AddressValidator address_validator_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(SubKeyRequester); | 69 DISALLOW_COPY_AND_ASSIGN(SubKeyRequester); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace payments | 72 } // namespace payments |
| 72 | 73 |
| 73 #endif // COMPONENTS_PAYMENTS_CORE_SUBKEY_REQUESTER_H_ | 74 #endif // COMPONENTS_PAYMENTS_CORE_SUBKEY_REQUESTER_H_ |
| OLD | NEW |