Chromium Code Reviews| Index: third_party/libaddressinput/chromium/load_rules_delegate.h |
| diff --git a/third_party/libaddressinput/chromium/load_rules_delegate.h b/third_party/libaddressinput/chromium/load_rules_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6c0dc5aa4de7891f9586a9e8fcdb3b9e343e3a4f |
| --- /dev/null |
| +++ b/third_party/libaddressinput/chromium/load_rules_delegate.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ |
| +#define THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ |
| + |
| +#include <string> |
| + |
| +namespace autofill { |
| + |
| +// The object to be notified when loading of address validation rules is |
| +// finished. |
| +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.
|
| + public: |
| + virtual ~LoadRulesDelegate() {} |
| + |
| + // Called when the validation rules for the |country_code| have been loaded. |
| + // The validation rules include the generic rules for the |country_code| and |
| + // specific rules for the country's administrative areas, localities, and |
| + // dependent localities. If a country has language-specific validation rules, |
| + // then these are also loaded. |
| + // |
| + // The |success| parameter is true when the rules were loaded successfully. |
| + virtual void OnAddressValidationRulesLoaded(const std::string& country_code, |
| + bool success) = 0; |
| +}; |
| + |
| +} // namespace autofill |
| + |
| +#endif // THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_LOAD_RULES_DELEGATE_H_ |