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

Unified Diff: components/autofill/core/browser/address_i18n.h

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 6 years, 7 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
« no previous file with comments | « components/autofill/core/browser/address.cc ('k') | components/autofill/core/browser/address_i18n.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/address_i18n.h
diff --git a/components/autofill/core/browser/address_i18n.h b/components/autofill/core/browser/address_i18n.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a490f782cc032f03bdfdb31f5d837bc1ee5745c
--- /dev/null
+++ b/components/autofill/core/browser/address_i18n.h
@@ -0,0 +1,38 @@
+// 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 COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_
+
+#include "base/callback_forward.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/strings/string16.h"
+
+namespace i18n {
+namespace addressinput {
+struct AddressData;
+}
+}
+
+namespace autofill {
+
+class AutofillProfile;
+class AutofillType;
+
+namespace i18n {
+
+// Creates an AddressData object for internationalized address display or
+// validation using |get_info| for field values.
+scoped_ptr< ::i18n::addressinput::AddressData> CreateAddressData(
+ const base::Callback<base::string16(const AutofillType&)>& get_info);
+
+// Creates an |AddressData| from |profile|.
+scoped_ptr< ::i18n::addressinput::AddressData>
+ CreateAddressDataFromAutofillProfile(const AutofillProfile& profile,
+ const std::string& app_locale);
+
+} // namespace i18n
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_
« no previous file with comments | « components/autofill/core/browser/address.cc ('k') | components/autofill/core/browser/address_i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698