Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: third_party/libaddressinput/chromium/load_rules_delegate.h

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of https://codereview.chromium.org/359213002/ Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698