Chromium Code Reviews| Index: third_party/libaddressinput/chromium/chrome_address_validator.h |
| diff --git a/third_party/libaddressinput/chromium/chrome_address_validator.h b/third_party/libaddressinput/chromium/chrome_address_validator.h |
| index 43a4a4061ccbe3d5bf1caa2d99808341d71201dd..0470bf58a63cb405011da5ced9904bd703edf762 100644 |
| --- a/third_party/libaddressinput/chromium/chrome_address_validator.h |
| +++ b/third_party/libaddressinput/chromium/chrome_address_validator.h |
| @@ -46,8 +46,8 @@ class LoadRulesListener { |
| // then these are also loaded. |
| // |
| // The |success| parameter is true when the rules were loaded successfully. |
| - virtual void OnAddressValidationRulesLoaded(const std::string& region_code, |
| - bool success) = 0; |
| + virtual void OnAddressRulesLoaded(const std::string& region_code, |
| + bool success) = 0; |
| }; |
| // Interface to the libaddressinput AddressValidator for Chromium Autofill. The |
| @@ -94,6 +94,13 @@ class AddressValidator { |
| // Invokes |load_rules_listener| when the loading has finished. |
| virtual void LoadRules(const std::string& region_code); |
| + // Returns the list of sub-regions (recorded as sub-keys) of the region |
| + // (recorded as rule) indicated by |region_code|. So, if the |region_code| is |
| + // a country code, sub-region means the country's admin area. |
| + // This function is called when the rules are ready. |
|
sebsg
2017/03/21 15:29:52
nit: "This function should be called when the rule
Parastoo
2017/03/21 20:05:52
Done.
|
| + virtual std::vector<std::string> GetRegionSubKeys( |
| + const std::string& region_code); |
| + |
| // Validates the |address| and populates |problems| with the validation |
| // problems, filtered according to the |filter| parameter. |
| // |