OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ | |
6 #define THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ | |
7 | |
8 #include <string> | |
9 | |
10 namespace autofill { | |
11 | |
12 // The object to be notified when loading of address validation rules is | |
13 // finished. | |
14 class LoadRulesDelegate { | |
Evan Stade
2014/06/30 18:49:38
nit: LoadRulesObserver or LoadRulesListener
A "de
please use gerrit instead
2014/07/01 04:53:50
Done.
| |
15 public: | |
16 virtual ~LoadRulesDelegate() {} | |
17 | |
18 // Called when the validation rules for the |country_code| have been loaded. | |
19 // The validation rules include the generic rules for the |country_code| and | |
20 // specific rules for the country's administrative areas, localities, and | |
21 // dependent localities. If a country has language-specific validation rules, | |
22 // then these are also loaded. | |
23 // | |
24 // The |success| parameter is true when the rules were loaded successfully. | |
25 virtual void OnAddressValidationRulesLoaded(const std::string& country_code, | |
26 bool success) = 0; | |
27 }; | |
28 | |
29 } // namespace autofill | |
30 | |
31 #endif // THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ | |
OLD | NEW |